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.001047/0.001047, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001283/0.001283, allocations: 161.2 kB / 25.6 MB, free: 8.895 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.9699/0.9699, allocations: 158.6 MB / 187.5 MB, free: 2.812 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.563e-06/1.563e-06, allocations: 0 / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.789e-06/1.135e-05, allocations: 2.312 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009532/0.009544, allocations: 13.43 MB / 264.9 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006585/0.01613, allocations: 4.549 MB / 269.4 MB, free: 5.195 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001152/0.01728, allocations: 111.4 kB / 269.6 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003972/0.02125, allocations: 4.486 MB / 274 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003063/0.02432, allocations: 2.41 MB / 276.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.02563, allocations: 1.037 MB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004233/0.02986, allocations: 6.586 MB / 284.1 MB, free: 6.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003073/0.03294, allocations: 4.797 MB / 288.9 MB, free: 1.656 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003265/0.0362, allocations: 4.016 MB / 292.9 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002777/0.03898, allocations: 3.254 MB / 296.1 MB, free: 10.37 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000504/0.03948, allocations: 0.4961 MB / 296.6 MB, free: 9.875 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001622/0.04111, allocations: 1.338 MB / 298 MB, free: 8.535 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.04267, allocations: 2.852 MB / 300.8 MB, free: 5.676 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001246/0.04392, allocations: 1.819 MB / 302.6 MB, free: 3.852 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004143/0.04806, allocations: 6.174 MB / 308.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.04807, allocations: 0 / 308.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.04807, allocations: 0 / 308.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.908e-05/0.04811, allocations: 4 kB / 308.8 MB, free: 13.65 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.005934/0.05404, allocations: 6.676 MB / 315.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.05408, allocations: 11.98 kB / 315.5 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005067/0.05914, allocations: 2.296 MB / 317.8 MB, free: 4.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.06204, allocations: 2.971 MB / 320.8 MB, free: 1.559 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.06219, allocations: 316.5 kB / 321.1 MB, free: 1.246 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004737/0.06267, allocations: 448.6 kB / 321.5 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006188/0.06885, allocations: 6.642 MB / 328.2 MB, free: 9.109 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-05/0.06894, allocations: 59.5 kB / 328.2 MB, free: 9.051 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003091/0.06925, allocations: 195.8 kB / 328.4 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001488/0.07074, allocations: 1.933 MB / 330.4 MB, free: 6.922 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004307/0.07505, allocations: 2.954 MB / 333.3 MB, free: 3.949 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1499/0.2249, allocations: 49.68 MB / 383 MB, free: 54.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005053/0.23, allocations: 1.783 MB / 384.8 MB, free: 54.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006624/0.2306, allocations: 0.5389 MB / 385.3 MB, free: 54.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005287/0.2359, allocations: 4.671 MB / 390 MB, free: 53.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.2359, allocations: 53.67 kB / 390 MB, free: 53.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=162): time 3.016e-06/0.2359, allocations: 0 / 390 MB, free: 53.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=178): time 0.01272/0.2487, allocations: 6.329 MB / 396.4 MB, free: 52.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.2487, allocations: 204.1 kB / 396.6 MB, free: 51.95 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003212/0.2519, allocations: 4.244 MB / 400.8 MB, free: 48.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.944e-05/0.252, allocations: 53.31 kB / 400.9 MB, free: 48.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001457/0.2534, allocations: 4.177 MB / 405 MB, free: 44.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000341/0.2538, allocations: 0.7561 MB / 405.8 MB, free: 43.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009473/0.2547, allocations: 1.506 MB / 407.3 MB, free: 42.31 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.581e-05/0.2548, allocations: 476.8 kB / 407.8 MB, free: 41.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008515/0.2556, allocations: 0.6066 MB / 408.4 MB, free: 41.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002198/0.2578, allocations: 6.858 MB / 415.2 MB, free: 31.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003825/0.2616, allocations: 8.118 MB / 423.3 MB, free: 21.11 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-05/0.2617, allocations: 40 kB / 423.4 MB, free: 21.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.004783/0.2665, allocations: 5.433 MB / 428.8 MB, free: 15.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/0.2665, allocations: 71.94 kB / 428.9 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.949e-05/0.2666, allocations: 148 kB / 429 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006919/0.2673, allocations: 413.5 kB / 429.4 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/0.2696, allocations: 1.536 MB / 431 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/0.2719, allocations: 4.788 MB / 435.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002421/0.2743, allocations: 302.6 kB / 436.1 MB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/0.2746, allocations: 356 kB / 436.4 MB, free: 7.828 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.001227/0.2758, allocations: 0.7284 MB / 437.1 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004112/0.2762, allocations: 441.3 kB / 437.6 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.2774, allocations: 1.12 MB / 438.7 MB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.2774, allocations: 20 kB / 438.7 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2774, allocations: 4 kB / 438.7 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.2774, allocations: 7.969 kB / 438.7 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006147/0.2836, allocations: 5.44 MB / 444.2 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/0.2836, allocations: 4 kB / 444.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006858/0.2843, allocations: 271.6 kB / 444.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005297/0.2848, allocations: 207.6 kB / 444.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.489e-05/0.2849, allocations: 39.98 kB / 444.7 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002209/0.2871, allocations: 3.878 MB / 448.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.2871, allocations: 11.94 kB / 448.6 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.2894, allocations: 2.321 MB / 450.9 MB, free: 8.828 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007263/0.2902, allocations: 0.5283 MB / 451.4 MB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002389/0.2904, allocations: 43.97 kB / 451.4 MB, free: 8.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006949/0.2911, allocations: 43.92 kB / 451.5 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.2913, allocations: 124.6 kB / 451.6 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.554e-05/0.2913, allocations: 43.98 kB / 451.7 MB, free: 8.043 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001653/0.293, allocations: 1.738 MB / 453.4 MB, free: 6.305 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.293, allocations: 0 / 453.4 MB, free: 6.305 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003917/0.2969, allocations: 1.223 MB / 454.6 MB, free: 5.082 MB / 346.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.0003317/0.2972, allocations: 194.8 kB / 454.8 MB, free: 4.883 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003655/0.3009, allocations: 3.174 MB / 458 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3009, allocations: 1.812 kB / 458 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007612/0.3017, allocations: 0.8708 MB / 458.8 MB, free: 0.793 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.3032, allocations: 0.5044 MB / 459.4 MB, free: 312 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.3145, allocations: 9.27 MB / 468.6 MB, free: 6.859 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001417/0.3159, allocations: 1.565 MB / 470.2 MB, free: 5.266 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001428/0.3173, allocations: 0.5589 MB / 470.7 MB, free: 4.703 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009804/0.3183, allocations: 0.6621 MB / 471.4 MB, free: 4.039 MB / 362.7 MB Notification: Performance of SimCode: time 1.763e-06/0.3183, allocations: 4 kB / 471.4 MB, free: 4.035 MB / 362.7 MB Notification: Performance of Templates: time 0.1751/0.4934, allocations: 33.98 MB / 0.4935 GB, free: 122.3 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: 4.056297135073692]