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.0009326/0.0009323, allocations: 93.33 kB / 17.35 MB, free: 6.371 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.001183/0.001183, allocations: 172.2 kB / 18.25 MB, free: 5.527 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.47/1.47, allocations: 223.3 MB / 242.3 MB, free: 220 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2147/0.2147, allocations: 44.25 MB / 337.7 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004538/0.0004538, allocations: 12.75 kB / 410.3 MB, free: 27.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1496, allocations: 61.92 MB / 472.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3881/0.5378, allocations: 79.63 MB / 0.5389 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04649/0.5843, allocations: 15.79 MB / 0.5544 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02593/0.6103, allocations: 352.3 kB / 0.5547 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003483/0.6138, allocations: 0.8101 MB / 0.5555 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009727/0.6235, allocations: 2.944 MB / 0.5584 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.6262, allocations: 0.8313 MB / 0.5592 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01655/0.6427, allocations: 12.15 MB / 0.571 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0165/0.6593, allocations: 8.633 MB / 0.5795 GB, free: 6.527 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00717/0.6665, allocations: 2.178 MB / 0.5816 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007705/0.6743, allocations: 3.725 MB / 0.5852 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002723/0.6771, allocations: 280 kB / 0.5855 GB, free: 336 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004731/0.6818, allocations: 1.178 MB / 0.5867 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006047/0.6879, allocations: 3.322 MB / 0.5899 GB, free: 11.82 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008592/0.6965, allocations: 3.84 MB / 0.5937 GB, free: 7.945 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01684/0.7134, allocations: 12.62 MB / 0.606 GB, free: 11.28 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.7134, allocations: 0 / 0.606 GB, free: 11.28 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.7135, allocations: 0 / 0.606 GB, free: 11.28 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005149/0.714, allocations: 0 / 0.606 GB, free: 11.28 MB / 446.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.01928/0.7333, allocations: 7.184 MB / 0.613 GB, free: 4.016 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.7333, allocations: 11.88 kB / 0.613 GB, free: 4.008 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02336/0.7567, allocations: 5.57 MB / 0.6184 GB, free: 14.41 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/0.7716, allocations: 4.91 MB / 0.6232 GB, free: 9.445 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005403/0.7721, allocations: 443.6 kB / 0.6237 GB, free: 9.012 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003266/0.7754, allocations: 0.5819 MB / 0.6242 GB, free: 8.43 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0476/0.823, allocations: 20.05 MB / 0.6438 GB, free: 3.344 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004172/0.8235, allocations: 71.36 kB / 0.6439 GB, free: 3.273 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002817/0.8264, allocations: 279.7 kB / 0.6441 GB, free: 3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008399/0.8348, allocations: 4.231 MB / 0.6483 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0419/0.8767, allocations: 17.82 MB / 0.6657 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7591/1.636, allocations: 74.03 MB / 0.738 GB, free: 139.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02489/1.661, allocations: 7.954 MB / 0.7457 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009971/1.671, allocations: 5.191 MB / 0.7508 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002826/1.671, allocations: 65.81 kB / 0.7509 GB, free: 136.2 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.221e-05/1.671, allocations: 72.16 kB / 0.7509 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=429): time 1.022e-05/1.671, allocations: 0 / 0.7509 GB, free: 136.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=476): time 0.1044/1.776, allocations: 41.81 MB / 0.7918 GB, free: 110.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.496e-05/1.776, allocations: 222.8 kB / 0.792 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009789/1.786, allocations: 6.406 MB / 0.7982 GB, free: 104.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009496/1.787, allocations: 91.58 kB / 0.7983 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002755/1.789, allocations: 5.523 MB / 0.8037 GB, free: 98.55 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00197/1.791, allocations: 1.738 MB / 0.8054 GB, free: 96.82 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/1.793, allocations: 0.9622 MB / 0.8064 GB, free: 95.86 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.886e-05/1.793, allocations: 301.1 kB / 0.8067 GB, free: 95.56 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006495/1.799, allocations: 5.046 MB / 0.8116 GB, free: 90.51 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009134/1.808, allocations: 11.11 MB / 0.8224 GB, free: 76.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01728/1.826, allocations: 17.48 MB / 0.8395 GB, free: 56.16 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001875/1.826, allocations: 60 kB / 0.8396 GB, free: 56.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.03489/1.861, allocations: 17.88 MB / 0.857 GB, free: 38.18 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003206/1.861, allocations: 96 kB / 0.8571 GB, free: 38.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004398/1.862, allocations: 208.9 kB / 0.8573 GB, free: 37.88 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006119/1.868, allocations: 2.35 MB / 0.8596 GB, free: 35.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008624/1.876, allocations: 2.569 MB / 0.8621 GB, free: 32.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01749/1.894, allocations: 16.15 MB / 0.8779 GB, free: 16.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008259/1.902, allocations: 0.6759 MB / 0.8785 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001906/1.904, allocations: 0.625 MB / 0.8792 GB, free: 14.97 MB / 0.5294 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.007488/1.912, allocations: 4.098 MB / 0.8832 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/1.913, allocations: 0.59 MB / 0.8837 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01665/1.93, allocations: 10.21 MB / 0.8937 GB, free: 15.99 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001275/1.93, allocations: 90.19 kB / 0.8938 GB, free: 15.91 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.802e-05/1.93, allocations: 12 kB / 0.8938 GB, free: 15.89 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.417e-05/1.93, allocations: 19.92 kB / 0.8938 GB, free: 15.88 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04986/1.98, allocations: 21.99 MB / 0.9153 GB, free: 9.711 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.182e-05/1.98, allocations: 8 kB / 0.9153 GB, free: 9.703 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003907/1.984, allocations: 0.7487 MB / 0.916 GB, free: 8.953 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006013/1.99, allocations: 2.041 MB / 0.918 GB, free: 6.898 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008655/1.991, allocations: 85.16 kB / 0.9181 GB, free: 6.816 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3013/2.292, allocations: 15.03 MB / 0.9328 GB, free: 192.8 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-05/2.292, allocations: 19.22 kB / 0.9328 GB, free: 192.8 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02589/2.318, allocations: 16.11 MB / 0.9485 GB, free: 186.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002207/2.32, allocations: 0.6376 MB / 0.9492 GB, free: 186.6 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002056/2.322, allocations: 81.03 kB / 0.9492 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003802/2.326, allocations: 318.3 kB / 0.9495 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001079/2.327, allocations: 295.2 kB / 0.9498 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003758/2.328, allocations: 118.6 kB / 0.9499 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005937/2.334, allocations: 3.985 MB / 0.9538 GB, free: 185.1 MB / 0.5607 GB Notification: Performance of sort global known variables: time 3.5e-07/2.334, allocations: 0 / 0.9538 GB, free: 185.1 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.009947/2.344, allocations: 2.047 MB / 0.9558 GB, free: 184.9 MB / 0.5607 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.001027/2.345, allocations: 242.8 kB / 0.9561 GB, free: 184.7 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01855/2.363, allocations: 12.3 MB / 0.9681 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 2.529e-05/2.363, allocations: 4 kB / 0.9681 GB, free: 179.6 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.007523/2.371, allocations: 4.94 MB / 0.9729 GB, free: 175.2 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01568/2.387, allocations: 0.7529 MB / 0.9736 GB, free: 174.5 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03537/2.422, allocations: 24.52 MB / 0.9976 GB, free: 151.9 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008189/2.43, allocations: 5.952 MB / 1.003 GB, free: 145.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.009262/2.44, allocations: 3.999 MB / 1.007 GB, free: 141.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001846/2.441, allocations: 431.4 kB / 1.008 GB, free: 141.5 MB / 0.5607 GB Notification: Performance of SimCode: time 9.22e-07/2.441, allocations: 0 / 1.008 GB, free: 141.5 MB / 0.5607 GB Notification: Performance of Templates: time 0.1065/2.548, allocations: 71.76 MB / 1.078 GB, free: 70.03 MB / 0.5607 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/GearConstraint/GearConstraint.csv","/var/lib/jenkins/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