Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 108.1 kB / 18.45 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 184.2 kB / 19.38 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 243.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2028/0.2028, allocations: 44.19 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 67.89 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3121, allocations: 60.82 MB / 0.5196 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01826/0.3304, allocations: 18.74 MB / 0.5379 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.3448, allocations: 5.309 MB / 0.5431 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004167/0.3491, allocations: 119.3 kB / 0.5432 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01071/0.3598, allocations: 4.794 MB / 0.5478 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009081/0.369, allocations: 3.105 MB / 0.5509 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002797/0.3718, allocations: 0.897 MB / 0.5518 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01272/0.3845, allocations: 8.409 MB / 0.56 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01003/0.3946, allocations: 6.434 MB / 0.5663 GB, free: 12.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005904/0.4006, allocations: 2.951 MB / 0.5691 GB, free: 9.133 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006152/0.4068, allocations: 3.984 MB / 0.573 GB, free: 5.137 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002303/0.4091, allocations: 0.625 MB / 0.5736 GB, free: 4.512 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00432/0.4135, allocations: 1.463 MB / 0.5751 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004768/0.4183, allocations: 3.705 MB / 0.5787 GB, free: 15.33 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007132/0.4254, allocations: 4.287 MB / 0.5829 GB, free: 11.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01622/0.4417, allocations: 13.64 MB / 0.5962 GB, free: 13.33 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4417, allocations: 0 / 0.5962 GB, free: 13.33 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.4417, allocations: 4 kB / 0.5962 GB, free: 13.33 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004876/0.4422, allocations: 0 / 0.5962 GB, free: 13.33 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3026 * Number of variables: 3026 Notification: Performance of Generate backend data structure: time 0.02173/0.464, allocations: 8.826 MB / 0.6048 GB, free: 4.418 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.464, allocations: 8.031 kB / 0.6048 GB, free: 4.41 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0205/0.4845, allocations: 5.429 MB / 0.6101 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01256/0.4971, allocations: 4.992 MB / 0.615 GB, free: 9.91 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004308/0.4976, allocations: 439.6 kB / 0.6154 GB, free: 9.48 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002505/0.5001, allocations: 0.5817 MB / 0.616 GB, free: 8.898 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0357/0.5358, allocations: 20.02 MB / 0.6355 GB, free: 3.844 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002625/0.5361, allocations: 75.3 kB / 0.6356 GB, free: 3.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001727/0.5379, allocations: 275.7 kB / 0.6359 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00644/0.5443, allocations: 4.235 MB / 0.64 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03326/0.5776, allocations: 17.79 MB / 0.6574 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6125/1.19, allocations: 73.58 MB / 0.7292 GB, free: 121.1 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01567/1.206, allocations: 7.933 MB / 0.737 GB, free: 119.8 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006109/1.212, allocations: 5.186 MB / 0.742 GB, free: 118.6 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002215/1.212, allocations: 63.66 kB / 0.7421 GB, free: 118.6 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/1.212, allocations: 72.94 kB / 0.7422 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=429): time 7.003e-06/1.212, allocations: 3.906 kB / 0.7422 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=476): time 0.08566/1.298, allocations: 41.75 MB / 0.783 GB, free: 94.15 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.399e-05/1.298, allocations: 226.8 kB / 0.7832 GB, free: 93.89 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006815/1.305, allocations: 6.398 MB / 0.7894 GB, free: 87.48 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008344/1.306, allocations: 93.38 kB / 0.7895 GB, free: 87.39 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002315/1.308, allocations: 5.529 MB / 0.7949 GB, free: 81.86 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001658/1.31, allocations: 1.732 MB / 0.7966 GB, free: 80.14 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002731/1.313, allocations: 2.26 MB / 0.7988 GB, free: 77.88 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 6.056e-05/1.313, allocations: 305.1 kB / 0.7991 GB, free: 77.57 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005959/1.319, allocations: 5.034 MB / 0.804 GB, free: 72.54 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007873/1.326, allocations: 11.11 MB / 0.8149 GB, free: 58.63 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01529/1.342, allocations: 17.45 MB / 0.8319 GB, free: 38.41 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001417/1.342, allocations: 64 kB / 0.832 GB, free: 38.34 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.02675/1.369, allocations: 17.88 MB / 0.8494 GB, free: 20.44 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.369, allocations: 99.98 kB / 0.8495 GB, free: 20.34 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001713/1.369, allocations: 212.9 kB / 0.8497 GB, free: 20.13 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005083/1.374, allocations: 2.344 MB / 0.852 GB, free: 17.77 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007703/1.382, allocations: 2.566 MB / 0.8545 GB, free: 15.2 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01579/1.398, allocations: 17.43 MB / 0.8715 GB, free: 13.23 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007462/1.405, allocations: 0.6592 MB / 0.8722 GB, free: 12.57 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001777/1.407, allocations: 0.6212 MB / 0.8728 GB, free: 11.95 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 53 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1362): * Single equations (assignments): 1349 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (3,40,77.8%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00705/1.414, allocations: 4.103 MB / 0.8768 GB, free: 7.84 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001231/1.415, allocations: 0.5938 MB / 0.8774 GB, free: 7.238 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01647/1.432, allocations: 10.2 MB / 0.8873 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/1.432, allocations: 87.97 kB / 0.8874 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/1.432, allocations: 12 kB / 0.8874 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.326e-05/1.432, allocations: 19.94 kB / 0.8875 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04427/1.476, allocations: 21.88 MB / 0.9088 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-05/1.476, allocations: 8 kB / 0.9088 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00432/1.481, allocations: 0.7471 MB / 0.9096 GB, free: 6.086 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006053/1.487, allocations: 2.025 MB / 0.9115 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009879/1.488, allocations: 87.27 kB / 0.9116 GB, free: 3.965 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0186/1.506, allocations: 16.19 MB / 0.9274 GB, free: 3.211 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/1.506, allocations: 15.94 kB / 0.9275 GB, free: 3.195 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02457/1.531, allocations: 16.1 MB / 0.9432 GB, free: 2.855 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001801/1.533, allocations: 0.6221 MB / 0.9438 GB, free: 2.207 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001726/1.535, allocations: 79.98 kB / 0.9439 GB, free: 2.129 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003443/1.538, allocations: 315.5 kB / 0.9442 GB, free: 1.82 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008758/1.539, allocations: 289.3 kB / 0.9444 GB, free: 1.539 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000319/1.539, allocations: 116 kB / 0.9445 GB, free: 1.426 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.006692/1.546, allocations: 3.995 MB / 0.9484 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.81e-07/1.546, allocations: 0 / 0.9484 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01031/1.556, allocations: 2.045 MB / 0.9504 GB, free: 11.4 MB / 0.6544 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 (359): * Single equations (assignments): 346 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,37,77.8%), (1,2,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/1.557, allocations: 241.8 kB / 0.9507 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.2873/1.845, allocations: 12.36 MB / 0.9627 GB, free: 239.3 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/1.845, allocations: 1.219 kB / 0.9627 GB, free: 239.3 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.008078/1.853, allocations: 4.937 MB / 0.9676 GB, free: 238.7 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004655/1.858, allocations: 0.7825 MB / 0.9683 GB, free: 238.6 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03481/1.892, allocations: 20.99 MB / 0.9888 GB, free: 230.3 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007781/1.9, allocations: 5.943 MB / 0.9946 GB, free: 228.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002202/1.902, allocations: 0.5101 MB / 0.9951 GB, free: 228.3 MB / 0.6544 GB Notification: Performance of SimCode: time 1.223e-06/1.902, allocations: 3.812 kB / 0.9951 GB, free: 228.3 MB / 0.6544 GB Notification: Performance of Templates: time 0.5198/2.422, allocations: 266.7 MB / 1.256 GB, free: 198.5 MB / 0.6544 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches