Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009454/0.0009454, allocations: 80.8 kB / 22.29 MB, free: 2.203 MB / 18.57 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.000997/0.000997, allocations: 167.1 kB / 25.7 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7848/0.7848, allocations: 158.6 MB / 187.6 MB, free: 2.793 MB / 170.7 MB " [Timeout remaining time 179] 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 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.323e-05/1.497e-05, allocations: 2.312 kB / 251.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01524/0.01525, allocations: 13.44 MB / 265 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.02674, allocations: 4.734 MB / 269.7 MB, free: 5.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001337/0.02808, allocations: 111.4 kB / 269.8 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00473/0.03281, allocations: 4.536 MB / 274.3 MB, free: 360 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002931/0.03574, allocations: 2.43 MB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.03692, allocations: 1.041 MB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004837/0.04175, allocations: 6.574 MB / 284.4 MB, free: 6.281 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003861/0.04562, allocations: 4.891 MB / 289.3 MB, free: 1.309 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003682/0.0493, allocations: 4.004 MB / 293.3 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002838/0.05213, allocations: 3.125 MB / 296.4 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006156/0.05275, allocations: 0.4961 MB / 296.9 MB, free: 9.664 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001483/0.05423, allocations: 1.326 MB / 298.2 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.05582, allocations: 2.848 MB / 301.1 MB, free: 5.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.05714, allocations: 1.827 MB / 302.9 MB, free: 3.648 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004122/0.06127, allocations: 6.174 MB / 309.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.06127, allocations: 3.984 kB / 309.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.06127, allocations: 0 / 309.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.053e-05/0.06135, allocations: 0 / 309.1 MB, free: 13.45 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.005848/0.0672, allocations: 5.982 MB / 315.1 MB, free: 7.398 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.06723, allocations: 11.98 kB / 315.1 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003461/0.0707, allocations: 1.483 MB / 316.6 MB, free: 5.902 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00304/0.07374, allocations: 2.736 MB / 319.3 MB, free: 3.109 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.07387, allocations: 312.5 kB / 319.6 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000494/0.07437, allocations: 448.6 kB / 320 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005795/0.08016, allocations: 6.053 MB / 326.1 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.913e-05/0.08025, allocations: 47.62 kB / 326.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003146/0.08057, allocations: 195.8 kB / 326.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001477/0.08204, allocations: 1.937 MB / 328.3 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00427/0.08631, allocations: 3.02 MB / 331.3 MB, free: 6.281 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1294/0.2157, allocations: 36.04 MB / 367.3 MB, free: 51.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003846/0.2196, allocations: 1.793 MB / 369.1 MB, free: 51.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005167/0.2201, allocations: 455 kB / 369.6 MB, free: 51.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005558/0.2257, allocations: 4.35 MB / 373.9 MB, free: 50.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.2257, allocations: 54.78 kB / 374 MB, free: 50.92 MB / 330.7 MB Notification: Performance of pre-optimization done (n=162): time 3.377e-06/0.2257, allocations: 0 / 374 MB, free: 50.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=178): time 0.01124/0.2369, allocations: 5.681 MB / 379.7 MB, free: 50.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.237, allocations: 201.9 kB / 379.8 MB, free: 49.97 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/0.2393, allocations: 3.799 MB / 383.6 MB, free: 49.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.965e-05/0.2394, allocations: 50.98 kB / 383.7 MB, free: 49.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009338/0.2404, allocations: 3.66 MB / 387.4 MB, free: 47.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003223/0.2407, allocations: 0.7264 MB / 388.1 MB, free: 46.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008555/0.2415, allocations: 1.297 MB / 389.4 MB, free: 46.65 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.314e-05/0.2416, allocations: 305 kB / 389.7 MB, free: 46.35 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.2426, allocations: 0.8018 MB / 390.5 MB, free: 46.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001894/0.2445, allocations: 4.87 MB / 395.4 MB, free: 40.58 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003071/0.2476, allocations: 6.234 MB / 401.6 MB, free: 33.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.949e-05/0.2476, allocations: 45.62 kB / 401.6 MB, free: 33.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.004158/0.2518, allocations: 4.613 MB / 406.2 MB, free: 30.22 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.2518, allocations: 68 kB / 406.3 MB, free: 30.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-05/0.2519, allocations: 152.2 kB / 406.5 MB, free: 30 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000622/0.2525, allocations: 399.2 kB / 406.8 MB, free: 29.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/0.2547, allocations: 1.534 MB / 408.4 MB, free: 28.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001698/0.2564, allocations: 3.56 MB / 411.9 MB, free: 24.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002242/0.2586, allocations: 298.7 kB / 412.2 MB, free: 24.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002412/0.2589, allocations: 355.6 kB / 412.6 MB, free: 24.17 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 670 * Number of states: 0 () * Number of discrete variables: 45 (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 (844): * Single equations (assignments): 839 * 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,11,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001075/0.2599, allocations: 0.6805 MB / 413.3 MB, free: 23.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.2602, allocations: 255.8 kB / 413.5 MB, free: 23.4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.2612, allocations: 0.9732 MB / 414.5 MB, free: 22.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.2612, allocations: 20 kB / 414.5 MB, free: 22.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.2612, allocations: 8 kB / 414.5 MB, free: 22.39 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2613, allocations: 7.969 kB / 414.5 MB, free: 22.38 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004443/0.2657, allocations: 4.524 MB / 419 MB, free: 18.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.2657, allocations: 8 kB / 419.1 MB, free: 18.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006143/0.2663, allocations: 275.5 kB / 419.3 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000612/0.2669, allocations: 421.1 kB / 419.7 MB, free: 17.78 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.385e-05/0.267, allocations: 43.03 kB / 419.8 MB, free: 17.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.2681, allocations: 2.766 MB / 422.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.2681, allocations: 11.94 kB / 422.6 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.2696, allocations: 1.911 MB / 424.5 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005042/0.2701, allocations: 499.3 kB / 424.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/0.2704, allocations: 32 kB / 425 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006487/0.271, allocations: 46.02 kB / 425 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/0.2711, allocations: 128.5 kB / 425.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.864e-05/0.2712, allocations: 47.98 kB / 425.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009327/0.2721, allocations: 1.433 MB / 426.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2721, allocations: 0 / 426.6 MB, free: 10.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002927/0.2751, allocations: 1.219 MB / 427.9 MB, free: 9.602 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (151): * Single equations (assignments): 146 * 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,9,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.0002627/0.2753, allocations: 177.8 kB / 428 MB, free: 9.418 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.2775, allocations: 2.851 MB / 430.9 MB, free: 6.645 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001293/0.2776, allocations: 112.2 kB / 431 MB, free: 6.527 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005182/0.2782, allocations: 0.7022 MB / 431.7 MB, free: 5.812 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001566/0.2797, allocations: 0.7605 MB / 432.4 MB, free: 5.066 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007981/0.2877, allocations: 9.141 MB / 441.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001247/0.2889, allocations: 1.556 MB / 443.1 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001167/0.2901, allocations: 0.5563 MB / 443.7 MB, free: 9.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000846/0.291, allocations: 0.6222 MB / 444.3 MB, free: 9.055 MB / 346.7 MB Notification: Performance of SimCode: time 9.62e-07/0.291, allocations: 0 / 444.3 MB, free: 9.055 MB / 346.7 MB Notification: Performance of Templates: time 0.05558/0.3465, allocations: 33.82 MB / 478.1 MB, free: 7.344 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6748380032368004]