Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.00104, allocations: 105.2 kB / 17.74 MB, free: 5.285 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.001017/0.001017, allocations: 188.3 kB / 18.68 MB, free: 4.359 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 51.92 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2144, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01402/0.2285, allocations: 13.59 MB / 415 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008042/0.2366, allocations: 4.546 MB / 419.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.2382, allocations: 95.69 kB / 419.6 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007063/0.2452, allocations: 4.206 MB / 423.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004389/0.2497, allocations: 2.229 MB / 426.1 MB, free: 116 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.2514, allocations: 0.9282 MB / 427 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00709/0.2585, allocations: 6.064 MB / 433.1 MB, free: 9.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005599/0.2642, allocations: 5.208 MB / 438.3 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002766/0.2669, allocations: 2.142 MB / 440.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00366/0.2706, allocations: 2.827 MB / 443.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.2717, allocations: 476 kB / 443.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.2739, allocations: 1.362 MB / 445.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002063/0.276, allocations: 2.556 MB / 447.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002392/0.2784, allocations: 2.882 MB / 450.5 MB, free: 7.562 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007905/0.2863, allocations: 9.211 MB / 459.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2863, allocations: 3.938 kB / 459.7 MB, free: 14.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.2863, allocations: 3.984 kB / 459.7 MB, free: 14.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.867e-05/0.2864, allocations: 4 kB / 459.7 MB, free: 14.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.009177/0.2956, allocations: 6.289 MB / 466 MB, free: 7.934 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2956, allocations: 8.031 kB / 466 MB, free: 7.926 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/0.3061, allocations: 2.614 MB / 468.6 MB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006339/0.3125, allocations: 3.888 MB / 472.5 MB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.3127, allocations: 304.2 kB / 472.8 MB, free: 1.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007227/0.3134, allocations: 427.9 kB / 473.2 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0156/0.329, allocations: 11.74 MB / 485 MB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001207/0.3292, allocations: 59.52 kB / 485 MB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004353/0.3296, allocations: 187.9 kB / 485.2 MB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003181/0.3328, allocations: 2.085 MB / 487.3 MB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01591/0.3487, allocations: 10.09 MB / 497.4 MB, free: 7.727 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04572/0.3944, allocations: 45.84 MB / 0.5305 GB, free: 8.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0102/0.4047, allocations: 4.362 MB / 0.5348 GB, free: 3.992 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002965/0.4077, allocations: 2.467 MB / 0.5372 GB, free: 1.516 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1762/0.5839, allocations: 9.869 MB / 0.5468 GB, free: 126.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.5839, allocations: 55.78 kB / 0.5469 GB, free: 126.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.789e-06/0.5839, allocations: 0 / 0.5469 GB, free: 126.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04416/0.6281, allocations: 20.25 MB / 0.5666 GB, free: 113.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.6282, allocations: 205.2 kB / 0.5668 GB, free: 113.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004341/0.6325, allocations: 4.715 MB / 0.5714 GB, free: 109 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.6326, allocations: 57.7 kB / 0.5715 GB, free: 109 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.634, allocations: 3.736 MB / 0.5751 GB, free: 105.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003916/0.6344, allocations: 0.7901 MB / 0.5759 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/0.6356, allocations: 1.357 MB / 0.5772 GB, free: 103.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.164e-05/0.6356, allocations: 301.1 kB / 0.5775 GB, free: 103.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002597/0.6382, allocations: 2.41 MB / 0.5799 GB, free: 100.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003568/0.6418, allocations: 6.272 MB / 0.586 GB, free: 92.56 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006602/0.6484, allocations: 9.32 MB / 0.5951 GB, free: 81.34 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.08e-05/0.6485, allocations: 47.92 kB / 0.5952 GB, free: 81.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01243/0.6609, allocations: 9.815 MB / 0.6047 GB, free: 71.47 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.867e-05/0.661, allocations: 64 kB / 0.6048 GB, free: 71.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.187e-05/0.6611, allocations: 136 kB / 0.6049 GB, free: 71.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003798/0.6649, allocations: 1.612 MB / 0.6065 GB, free: 69.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003768/0.6687, allocations: 1.491 MB / 0.608 GB, free: 68.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009894/0.6786, allocations: 10.27 MB / 0.618 GB, free: 57.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003489/0.6821, allocations: 363.6 kB / 0.6183 GB, free: 57.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003689/0.6825, allocations: 388 kB / 0.6187 GB, free: 56.89 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (796): * Single equations (assignments): 791 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002503/0.685, allocations: 2.486 MB / 0.6211 GB, free: 54.39 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004279/0.6854, allocations: 433.1 kB / 0.6215 GB, free: 53.97 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006666/0.6921, allocations: 4.232 MB / 0.6257 GB, free: 49.72 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.6921, allocations: 11.91 kB / 0.6257 GB, free: 49.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.6921, allocations: 4 kB / 0.6257 GB, free: 49.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004601/0.6926, allocations: 482.5 kB / 0.6262 GB, free: 49.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004286/0.693, allocations: 29.5 kB / 0.6262 GB, free: 49.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.6945, allocations: 119.4 kB / 0.6263 GB, free: 49.07 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.6948, allocations: 145 kB / 0.6264 GB, free: 48.93 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007109/0.7019, allocations: 4.64 MB / 0.631 GB, free: 44.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005528/0.7075, allocations: 5.744 MB / 0.6366 GB, free: 38.55 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001493/0.709, allocations: 1.49 MB / 0.638 GB, free: 37.05 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002968/0.7119, allocations: 2.968 MB / 0.6409 GB, free: 34.09 MB / 462.1 MB Notification: Performance of Backend: time 3.5e-07/0.712, allocations: 0 / 0.6409 GB, free: 34.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0069/0.7189, allocations: 4.907 MB / 0.6457 GB, free: 29.2 MB / 462.1 MB Notification: Performance of SimCode: time 0.01182/0.7307, allocations: 11.31 MB / 0.6568 GB, free: 17.84 MB / 462.1 MB Notification: Performance of Templates: time 0.08277/0.8135, allocations: 53.78 MB / 0.7093 GB, free: 12.33 MB / 0.4981 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches