Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009688/0.0009688, allocations: 88.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009471/0.0009471, allocations: 161.4 kB / 24.91 MB, free: 8.719 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.943/0.943, allocations: 177 MB / 205.2 MB, free: 5.031 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.005e-05/1.172e-05, allocations: 5.266 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.008821/0.008833, allocations: 12.76 MB / 286.2 MB, free: 4.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1183/0.1271, allocations: 4.631 MB / 290.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.1292, allocations: 112.5 kB / 290.9 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004814/0.134, allocations: 4.417 MB / 295.3 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003872/0.1379, allocations: 2.251 MB / 297.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.1392, allocations: 1.048 MB / 298.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006636/0.1459, allocations: 6.849 MB / 305.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003913/0.1498, allocations: 4.56 MB / 310 MB, free: 8.715 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003694/0.1535, allocations: 4.136 MB / 314.2 MB, free: 6.008 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00266/0.1561, allocations: 2.985 MB / 317.2 MB, free: 3.227 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005531/0.1567, allocations: 484 kB / 317.6 MB, free: 2.754 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.158, allocations: 1.339 MB / 319 MB, free: 1.469 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001222/0.1592, allocations: 2.707 MB / 321.7 MB, free: 14.85 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001468/0.1607, allocations: 1.72 MB / 323.4 MB, free: 13.2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004157/0.1648, allocations: 5.845 MB / 329.3 MB, free: 7.707 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1648, allocations: 0 / 329.3 MB, free: 7.707 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1648, allocations: 3.094 kB / 329.3 MB, free: 7.707 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000168/0.165, allocations: 0 / 329.3 MB, free: 7.707 MB / 282.7 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.00577/0.1708, allocations: 5.73 MB / 335 MB, free: 2.371 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.1708, allocations: 11.98 kB / 335 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003316/0.1741, allocations: 1.43 MB / 336.4 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002753/0.1769, allocations: 2.639 MB / 339.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.177, allocations: 300.8 kB / 339.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004501/0.1775, allocations: 428 kB / 339.8 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00546/0.1829, allocations: 5.789 MB / 345.6 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.219e-05/0.183, allocations: 46.25 kB / 345.6 MB, free: 7.688 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000283/0.1833, allocations: 187.9 kB / 345.8 MB, free: 7.531 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001322/0.1846, allocations: 1.773 MB / 347.6 MB, free: 5.754 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004058/0.1887, allocations: 2.868 MB / 350.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02244/0.2111, allocations: 34.61 MB / 385 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003466/0.2146, allocations: 1.734 MB / 386.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/0.2151, allocations: 406.3 kB / 387.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005111/0.2202, allocations: 4.102 MB / 391.3 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.2202, allocations: 47.56 kB / 391.3 MB, free: 8.645 MB / 346.7 MB Notification: Performance of pre-optimization done (n=142): time 2.395e-06/0.2202, allocations: 0 / 391.3 MB, free: 8.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=158): time 0.01067/0.2309, allocations: 5.35 MB / 396.7 MB, free: 3.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/0.2309, allocations: 200.9 kB / 396.9 MB, free: 3.023 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/0.2335, allocations: 3.708 MB / 400.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.229e-05/0.2336, allocations: 45.7 kB / 400.6 MB, free: 15.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.2349, allocations: 3.492 MB / 404.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003185/0.2352, allocations: 0.6591 MB / 404.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009219/0.2362, allocations: 1.243 MB / 406 MB, free: 9.777 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.625e-05/0.2362, allocations: 309.1 kB / 406.3 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.2372, allocations: 0.7558 MB / 407.1 MB, free: 8.711 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002506/0.2397, allocations: 4.695 MB / 411.8 MB, free: 1.992 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003606/0.2433, allocations: 5.991 MB / 417.8 MB, free: 9.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.628e-05/0.2434, allocations: 44 kB / 417.8 MB, free: 9.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=844) (initialization): time 0.004222/0.2476, allocations: 4.41 MB / 422.2 MB, free: 5.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.094e-05/0.2477, allocations: 67.98 kB / 422.3 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.037e-05/0.2477, allocations: 148.2 kB / 422.4 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006304/0.2484, allocations: 397 kB / 422.8 MB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002327/0.2507, allocations: 1.541 MB / 424.3 MB, free: 3.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/0.253, allocations: 3.567 MB / 427.9 MB, free: 15.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.255, allocations: 287.8 kB / 428.2 MB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/0.2553, allocations: 344 kB / 428.5 MB, free: 14.99 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * 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 (804): * Single equations (assignments): 799 * 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.001194/0.2565, allocations: 0.6572 MB / 429.2 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/0.2568, allocations: 247.7 kB / 429.4 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.2578, allocations: 0.8562 MB / 430.3 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.2579, allocations: 20 kB / 430.3 MB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2579, allocations: 8 kB / 430.3 MB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.2579, allocations: 7.969 kB / 430.3 MB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004969/0.2628, allocations: 4.221 MB / 434.5 MB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.2629, allocations: 8 kB / 434.6 MB, free: 8.816 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000679/0.2635, allocations: 271.6 kB / 434.8 MB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007329/0.2643, allocations: 419.4 kB / 435.2 MB, free: 8.129 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-05/0.2643, allocations: 35.97 kB / 435.3 MB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001731/0.2661, allocations: 2.783 MB / 438 MB, free: 5.117 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.2661, allocations: 7.938 kB / 438.1 MB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.2677, allocations: 1.759 MB / 439.8 MB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00033/0.268, allocations: 365.5 kB / 440.2 MB, free: 2.879 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.2683, allocations: 31.98 kB / 440.2 MB, free: 2.848 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.2689, allocations: 39.92 kB / 440.2 MB, free: 2.809 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.269, allocations: 120.6 kB / 440.4 MB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-05/0.2691, allocations: 39.98 kB / 440.4 MB, free: 2.652 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001139/0.2702, allocations: 1.39 MB / 441.8 MB, free: 1.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2702, allocations: 112 / 441.8 MB, free: 1.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003096/0.2733, allocations: 1.14 MB / 442.9 MB, free: 112 kB / 394.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 (130): * Single equations (assignments): 125 * 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.1132/0.3865, allocations: 167.9 kB / 443.1 MB, free: 128.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00373/0.3902, allocations: 2.706 MB / 445.8 MB, free: 128.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001788/0.3904, allocations: 107.5 kB / 445.9 MB, free: 128.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006404/0.391, allocations: 0.6504 MB / 446.5 MB, free: 127.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.3936, allocations: 0.729 MB / 447.3 MB, free: 127.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.4048, allocations: 8.611 MB / 455.9 MB, free: 124.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001435/0.4062, allocations: 1.463 MB / 457.4 MB, free: 124 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001315/0.4075, allocations: 0.54 MB / 457.9 MB, free: 123.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007795/0.4083, allocations: 0.599 MB / 458.5 MB, free: 123.8 MB / 394.7 MB Notification: Performance of SimCode: time 2.315e-06/0.4083, allocations: 3.938 kB / 458.5 MB, free: 123.8 MB / 394.7 MB Notification: Performance of Templates: time 0.04157/0.4499, allocations: 31.88 MB / 490.4 MB, free: 100.9 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.575650071259588]