Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00222/0.00222, allocations: 207.1 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.435/1.435, allocations: 230.6 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 47.92 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2157/0.2172, allocations: 53.36 MB / 432.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01474/0.232, allocations: 11.73 MB / 444.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008365/0.2403, allocations: 4.384 MB / 448.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.2414, allocations: 107.4 kB / 448.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007491/0.2489, allocations: 4.058 MB / 452.6 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004342/0.2532, allocations: 2.209 MB / 454.8 MB, free: 200 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001764/0.255, allocations: 0.9243 MB / 455.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0071/0.2621, allocations: 6.128 MB / 461.9 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004517/0.2666, allocations: 4.026 MB / 465.9 MB, free: 5.039 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002659/0.2693, allocations: 2.158 MB / 468 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003774/0.2731, allocations: 3.007 MB / 471.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000766/0.2738, allocations: 472 kB / 471.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00216/0.276, allocations: 1.252 MB / 472.8 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002402/0.2784, allocations: 2.567 MB / 475.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002288/0.2807, allocations: 2.132 MB / 477.5 MB, free: 9.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009363/0.29, allocations: 9.099 MB / 486.6 MB, free: 300 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.29, allocations: 3.938 kB / 486.6 MB, free: 296 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.29, allocations: 0 / 486.6 MB, free: 296 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000121/0.2902, allocations: 0 / 486.6 MB, free: 296 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01153/0.3017, allocations: 6.167 MB / 492.7 MB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.3017, allocations: 8.031 kB / 492.7 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.3138, allocations: 2.61 MB / 495.4 MB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008632/0.3225, allocations: 3.746 MB / 499.1 MB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/0.3227, allocations: 300.1 kB / 499.4 MB, free: 3.348 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008672/0.3236, allocations: 431.9 kB / 499.8 MB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01865/0.3422, allocations: 11.6 MB / 0.4994 GB, free: 6.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.3424, allocations: 59.52 kB / 0.4995 GB, free: 6.512 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005/0.3429, allocations: 187.9 kB / 0.4997 GB, free: 6.328 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003503/0.3464, allocations: 2.022 MB / 0.5016 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01777/0.3642, allocations: 9.904 MB / 0.5113 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2283/0.5924, allocations: 41.53 MB / 0.5519 GB, free: 71.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009777/0.6022, allocations: 3.757 MB / 0.5555 GB, free: 71.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002241/0.6045, allocations: 2.301 MB / 0.5578 GB, free: 70.35 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01266/0.6171, allocations: 8.75 MB / 0.5663 GB, free: 66.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.6172, allocations: 54.75 kB / 0.5664 GB, free: 66.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 3.987e-06/0.6172, allocations: 3.188 kB / 0.5664 GB, free: 66.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.04634/0.6635, allocations: 20.01 MB / 0.5859 GB, free: 49.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.6635, allocations: 200.8 kB / 0.5861 GB, free: 49.37 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/0.6675, allocations: 4.436 MB / 0.5904 GB, free: 45.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001313/0.6676, allocations: 57.7 kB / 0.5905 GB, free: 45.01 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.6689, allocations: 3.718 MB / 0.5941 GB, free: 41.51 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/0.6693, allocations: 0.7929 MB / 0.5949 GB, free: 40.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001277/0.6706, allocations: 1.342 MB / 0.5962 GB, free: 39.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.05e-05/0.6706, allocations: 309.1 kB / 0.5965 GB, free: 39.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002561/0.6732, allocations: 2.403 MB / 0.5989 GB, free: 36.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00366/0.6768, allocations: 6.299 MB / 0.605 GB, free: 28.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006726/0.6835, allocations: 9.291 MB / 0.6141 GB, free: 17.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.477e-05/0.6836, allocations: 40 kB / 0.6141 GB, free: 17.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01259/0.6962, allocations: 9.739 MB / 0.6236 GB, free: 7.613 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.038e-05/0.6962, allocations: 63.94 kB / 0.6237 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.268e-05/0.6963, allocations: 136 kB / 0.6238 GB, free: 7.418 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003869/0.7002, allocations: 1.613 MB / 0.6254 GB, free: 5.805 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003911/0.7041, allocations: 1.485 MB / 0.6268 GB, free: 4.316 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01225/0.7164, allocations: 9.894 MB / 0.6365 GB, free: 10.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003956/0.7203, allocations: 364 kB / 0.6369 GB, free: 9.855 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005519/0.7209, allocations: 391.8 kB / 0.6372 GB, free: 9.477 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.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 (793): * Single equations (assignments): 788 * 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.00349/0.7243, allocations: 2.45 MB / 0.6396 GB, free: 7.016 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006287/0.725, allocations: 393.4 kB / 0.64 GB, free: 6.629 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008553/0.7335, allocations: 4.181 MB / 0.6441 GB, free: 2.426 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.532e-05/0.7336, allocations: 27.94 kB / 0.6441 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.7336, allocations: 4 kB / 0.6441 GB, free: 2.395 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.7336, allocations: 11.97 kB / 0.6441 GB, free: 2.383 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/0.7502, allocations: 8.314 MB / 0.6522 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.7502, allocations: 4.031 kB / 0.6522 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001507/0.7517, allocations: 295.6 kB / 0.6525 GB, free: 9.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004361/0.7561, allocations: 1.365 MB / 0.6539 GB, free: 8.398 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001467/0.7563, allocations: 35.98 kB / 0.6539 GB, free: 8.363 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/0.7691, allocations: 9.041 MB / 0.6627 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.7691, allocations: 0 / 0.6627 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/0.7809, allocations: 6.939 MB / 0.6695 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009749/0.7819, allocations: 353.4 kB / 0.6698 GB, free: 7.812 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004454/0.7824, allocations: 39.98 kB / 0.6699 GB, free: 7.773 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/0.7839, allocations: 111.8 kB / 0.67 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/0.7842, allocations: 125.1 kB / 0.6701 GB, free: 7.543 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/0.7844, allocations: 52 kB / 0.6701 GB, free: 7.492 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003897/0.7883, allocations: 2.608 MB / 0.6727 GB, free: 4.875 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7883, allocations: 0 / 0.6727 GB, free: 4.875 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004735/0.793, allocations: 1.171 MB / 0.6738 GB, free: 3.707 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (147): * Single equations (assignments): 142 * 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 {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003908/0.7934, allocations: 170.9 kB / 0.674 GB, free: 3.531 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009083/0.8025, allocations: 5.745 MB / 0.6796 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.8025, allocations: 0 / 0.6796 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003201/0.8057, allocations: 1.871 MB / 0.6814 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/0.8081, allocations: 490.6 kB / 0.6819 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01753/0.8256, allocations: 11.26 MB / 0.6929 GB, free: 112 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004396/0.83, allocations: 3.297 MB / 0.6961 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004212/0.8342, allocations: 1.94 MB / 0.698 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006833/0.8349, allocations: 255.4 kB / 0.6983 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of SimCode: time 9.22e-07/0.8349, allocations: 0 / 0.6983 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of Templates: time 0.2623/1.097, allocations: 46.09 MB / 0.7433 GB, free: 191.7 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.536978144999011]