Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001391/0.001391, allocations: 178.8 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 94.28 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3562/0.3562, allocations: 43.56 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004076/0.0004076, allocations: 12 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1187, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3023/0.4211, allocations: 74.63 MB / 0.5516 GB, free: 13.44 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04686/0.468, allocations: 15.23 MB / 0.5665 GB, free: 3.047 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02424/0.4923, allocations: 354.9 kB / 0.5668 GB, free: 2.992 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01732/0.5097, allocations: 3.953 MB / 0.5707 GB, free: 1.609 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03955/0.5493, allocations: 11.54 MB / 0.582 GB, free: 11.58 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005847/0.5551, allocations: 0.801 MB / 0.5828 GB, free: 11.05 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04476/0.5999, allocations: 37.5 MB / 0.6194 GB, free: 6.363 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01484/0.6148, allocations: 7.858 MB / 0.627 GB, free: 14.47 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006055/0.6209, allocations: 2.421 MB / 0.6294 GB, free: 12.04 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006561/0.6275, allocations: 3.801 MB / 0.6331 GB, free: 8.23 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002301/0.6299, allocations: 292 kB / 0.6334 GB, free: 7.945 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004162/0.6341, allocations: 1.01 MB / 0.6344 GB, free: 6.934 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005708/0.6398, allocations: 3.323 MB / 0.6376 GB, free: 3.602 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003744/0.6436, allocations: 1.637 MB / 0.6392 GB, free: 1.953 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01497/0.6586, allocations: 10.84 MB / 0.6498 GB, free: 7.09 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.201e-05/0.6586, allocations: 4 kB / 0.6498 GB, free: 7.086 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.6587, allocations: 0 / 0.6498 GB, free: 7.086 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0006974/0.6594, allocations: 0 / 0.6498 GB, free: 7.086 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.02251/0.6819, allocations: 7.455 MB / 0.6571 GB, free: 15.54 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.237e-05/0.682, allocations: 12.03 kB / 0.6571 GB, free: 15.53 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02306/0.7051, allocations: 5.6 MB / 0.6626 GB, free: 9.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01536/0.7205, allocations: 5.009 MB / 0.6675 GB, free: 4.844 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005243/0.721, allocations: 459.5 kB / 0.6679 GB, free: 4.395 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002751/0.7238, allocations: 0.5855 MB / 0.6685 GB, free: 3.809 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5215/1.245, allocations: 20.52 MB / 0.6885 GB, free: 129.2 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003322/1.246, allocations: 74.61 kB / 0.6886 GB, free: 129.2 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00178/1.247, allocations: 284.3 kB / 0.6889 GB, free: 129.1 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006607/1.254, allocations: 4.35 MB / 0.6931 GB, free: 128.3 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03791/1.292, allocations: 18.19 MB / 0.7109 GB, free: 122.6 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1002/1.392, allocations: 75.6 MB / 0.7847 GB, free: 57.01 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01517/1.407, allocations: 8.17 MB / 0.7927 GB, free: 48.6 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006214/1.414, allocations: 5.349 MB / 0.7979 GB, free: 43.24 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002423/1.414, allocations: 64.17 kB / 0.798 GB, free: 43.19 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/1.414, allocations: 85.12 kB / 0.798 GB, free: 43.1 MB / 490.8 MB Notification: Performance of pre-optimization done (n=450): time 6.903e-06/1.414, allocations: 0 / 0.798 GB, free: 43.1 MB / 490.8 MB Notification: Performance of matching and sorting (n=497): time 0.08964/1.504, allocations: 42.9 MB / 0.8399 GB, free: 124 kB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/1.504, allocations: 227 kB / 0.8401 GB, free: 15.86 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009638/1.514, allocations: 6.481 MB / 0.8465 GB, free: 9.371 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001023/1.515, allocations: 93.64 kB / 0.8466 GB, free: 9.273 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.004087/1.519, allocations: 5.647 MB / 0.8521 GB, free: 3.629 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002408/1.521, allocations: 1.813 MB / 0.8539 GB, free: 1.832 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006527/1.522, allocations: 226.8 kB / 0.8541 GB, free: 1.613 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006697/1.522, allocations: 0.8097 MB / 0.8549 GB, free: 0.7969 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007856/1.53, allocations: 5.155 MB / 0.8599 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2444/1.775, allocations: 11.35 MB / 0.871 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01663/1.791, allocations: 7.598 MB / 0.8784 GB, free: 140.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005374/1.792, allocations: 60.5 kB / 0.8784 GB, free: 140.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1524) (initialization): time 0.03774/1.83, allocations: 18.27 MB / 0.8963 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003826/1.83, allocations: 97.06 kB / 0.8964 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005617/1.831, allocations: 219.2 kB / 0.8966 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006282/1.837, allocations: 2.376 MB / 0.8989 GB, free: 134.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01012/1.847, allocations: 2.645 MB / 0.9015 GB, free: 133.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02075/1.868, allocations: 16.13 MB / 0.9172 GB, free: 124.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01004/1.878, allocations: 0.6857 MB / 0.9179 GB, free: 124.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003405/1.882, allocations: 0.6345 MB / 0.9185 GB, free: 124.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 51 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1400): * Single equations (assignments): 1387 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(3,77.8%) 40,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01083/1.893, allocations: 4.192 MB / 0.9226 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0021/1.895, allocations: 0.6124 MB / 0.9232 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/1.916, allocations: 10.57 MB / 0.9335 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001303/1.916, allocations: 97.02 kB / 0.9336 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.026e-05/1.916, allocations: 12.44 kB / 0.9337 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/1.916, allocations: 20.02 kB / 0.9337 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04337/1.959, allocations: 22.62 MB / 0.9558 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-05/1.959, allocations: 12 kB / 0.9558 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003871/1.963, allocations: 0.7871 MB / 0.9565 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005352/1.969, allocations: 2.027 MB / 0.9585 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001138/1.97, allocations: 91.27 kB / 0.9586 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.015/1.985, allocations: 15.02 MB / 0.9733 GB, free: 87.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.836e-06/1.985, allocations: 15.94 kB / 0.9733 GB, free: 87.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02309/2.008, allocations: 16.66 MB / 0.9896 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004445/2.012, allocations: 1.422 MB / 0.991 GB, free: 68.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001515/2.014, allocations: 85.39 kB / 0.991 GB, free: 68.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003626/2.018, allocations: 336.3 kB / 0.9914 GB, free: 68.48 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006668/2.018, allocations: 298.1 kB / 0.9916 GB, free: 68.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003014/2.019, allocations: 125.6 kB / 0.9918 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005728/2.024, allocations: 4.009 MB / 0.9957 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/2.024, allocations: 0 / 0.9957 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01097/2.035, allocations: 2.103 MB / 0.9977 GB, free: 61.97 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (381): * Single equations (assignments): 368 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 37,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001406/2.037, allocations: 245 kB / 0.998 GB, free: 61.72 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01861/2.055, allocations: 12.64 MB / 1.01 GB, free: 49.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/2.056, allocations: 4.312 kB / 1.01 GB, free: 49.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006508/2.062, allocations: 5.111 MB / 1.015 GB, free: 43.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004771/2.067, allocations: 0.7681 MB / 1.016 GB, free: 43.16 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03485/2.102, allocations: 25.19 MB / 1.041 GB, free: 17.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007326/2.109, allocations: 6.079 MB / 1.047 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002908/2.112, allocations: 0.5345 MB / 1.047 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of SimCode: time 1.342e-06/2.112, allocations: 0 / 1.047 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of Templates: time 0.8532/2.965, allocations: 271.4 MB / 1.312 GB, free: 149 MB / 0.5418 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches