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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009626/0.0009626, allocations: 80.62 kB / 22.21 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009422/0.0009422, allocations: 144.3 kB / 25.59 MB, free: 8.559 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8676/0.8676, allocations: 173.4 MB / 202.2 MB, free: 8.297 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.884e-05/2.049e-05, allocations: 5.266 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.009489/0.00951, allocations: 12.83 MB / 282 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006549/0.01606, allocations: 4.452 MB / 286.5 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.01733, allocations: 107.4 kB / 286.6 MB, free: 8.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004133/0.02146, allocations: 4.458 MB / 291 MB, free: 3.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003519/0.02498, allocations: 2.329 MB / 293.4 MB, free: 1.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.02638, allocations: 1.021 MB / 294.4 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005215/0.03159, allocations: 6.773 MB / 301.2 MB, free: 9.719 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003628/0.03522, allocations: 4.695 MB / 305.9 MB, free: 4.957 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003567/0.03879, allocations: 4.281 MB / 310.1 MB, free: 0.668 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002887/0.04168, allocations: 3.137 MB / 313.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005698/0.04225, allocations: 484 kB / 313.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001523/0.04377, allocations: 1.319 MB / 315.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.04528, allocations: 2.747 MB / 317.8 MB, free: 8.977 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001547/0.04683, allocations: 1.753 MB / 319.6 MB, free: 7.219 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004294/0.05112, allocations: 5.952 MB / 325.5 MB, free: 1.246 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.05113, allocations: 4 kB / 325.5 MB, free: 1.242 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.05113, allocations: 0 / 325.5 MB, free: 1.242 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001148/0.05124, allocations: 0 / 325.5 MB, free: 1.242 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.007361/0.0586, allocations: 6.456 MB / 332 MB, free: 10.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.05864, allocations: 16.03 kB / 332 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005681/0.06432, allocations: 2.229 MB / 334.2 MB, free: 8.461 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003259/0.06758, allocations: 2.87 MB / 337.1 MB, free: 5.543 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.06771, allocations: 300.2 kB / 337.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004762/0.06819, allocations: 432.6 kB / 337.8 MB, free: 4.828 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1293/0.1975, allocations: 6.414 MB / 344.2 MB, free: 65.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001908/0.1977, allocations: 52.12 kB / 344.3 MB, free: 65.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003802/0.198, allocations: 189.7 kB / 344.5 MB, free: 65.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001725/0.1998, allocations: 1.823 MB / 346.3 MB, free: 65.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005893/0.2057, allocations: 2.83 MB / 349.1 MB, free: 64.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02287/0.2285, allocations: 48.2 MB / 397.3 MB, free: 22.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0035/0.232, allocations: 1.701 MB / 399 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004634/0.2325, allocations: 0.5089 MB / 399.5 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004457/0.2369, allocations: 4.379 MB / 403.9 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.237, allocations: 46.39 kB / 403.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=142): time 2.695e-06/0.237, allocations: 0 / 403.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=158): time 0.01187/0.2488, allocations: 5.976 MB / 409.9 MB, free: 9.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.2489, allocations: 196.9 kB / 410.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/0.2514, allocations: 4.151 MB / 414.3 MB, free: 5.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.935e-05/0.2515, allocations: 49.69 kB / 414.3 MB, free: 5.676 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.2527, allocations: 4.052 MB / 418.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000328/0.2531, allocations: 0.6747 MB / 419 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/0.2541, allocations: 1.454 MB / 420.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.927e-05/0.2542, allocations: 480.7 kB / 421 MB, free: 15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008291/0.255, allocations: 0.567 MB / 421.5 MB, free: 14.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003434/0.2584, allocations: 6.655 MB / 428.2 MB, free: 5.004 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005018/0.2635, allocations: 7.843 MB / 436 MB, free: 10.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.804e-05/0.2635, allocations: 40 kB / 436.1 MB, free: 10.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.005566/0.2691, allocations: 5.222 MB / 441.3 MB, free: 5.176 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.409e-05/0.2691, allocations: 64 kB / 441.3 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.129e-05/0.2692, allocations: 144 kB / 441.5 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007689/0.27, allocations: 413.4 kB / 441.9 MB, free: 4.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002215/0.2722, allocations: 1.462 MB / 443.4 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/0.2748, allocations: 4.779 MB / 448.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002207/0.277, allocations: 295.7 kB / 448.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002803/0.2773, allocations: 340 kB / 448.8 MB, free: 13.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 653 * 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 (807): * Single equations (assignments): 802 * 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.001174/0.2785, allocations: 0.7041 MB / 449.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004523/0.2789, allocations: 429.4 kB / 449.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001268/0.2802, allocations: 0.9783 MB / 450.9 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.877e-05/0.2802, allocations: 19.94 kB / 450.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2802, allocations: 4 kB / 450.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.2802, allocations: 11.7 kB / 450.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006104/0.2863, allocations: 5.111 MB / 456 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.2864, allocations: 11.94 kB / 456 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.2869, allocations: 235.7 kB / 456.2 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005037/0.2874, allocations: 215.2 kB / 456.5 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.976e-05/0.2875, allocations: 35.98 kB / 456.5 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/0.2895, allocations: 3.873 MB / 460.4 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.2895, allocations: 11.94 kB / 460.4 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.2913, allocations: 2.146 MB / 462.5 MB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004394/0.2918, allocations: 381.2 kB / 462.9 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.292, allocations: 31.98 kB / 462.9 MB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006515/0.2927, allocations: 39.98 kB / 463 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.2928, allocations: 112.6 kB / 463.1 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.717e-05/0.2929, allocations: 44 kB / 463.1 MB, free: 14.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001369/0.2943, allocations: 1.685 MB / 464.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2943, allocations: 0 / 464.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003077/0.2973, allocations: 1.172 MB / 466 MB, free: 11.71 MB / 378.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.0002916/0.2976, allocations: 198.8 kB / 466.2 MB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002984/0.3006, allocations: 3.018 MB / 469.2 MB, free: 8.477 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3006, allocations: 0 / 469.2 MB, free: 8.477 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006555/0.3013, allocations: 0.8075 MB / 470 MB, free: 7.629 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/0.3027, allocations: 0.5093 MB / 470.5 MB, free: 7.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009101/0.3119, allocations: 8.852 MB / 479.4 MB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/0.313, allocations: 1.501 MB / 480.9 MB, free: 12.56 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00115/0.3142, allocations: 0.534 MB / 481.4 MB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000772/0.315, allocations: 0.6426 MB / 482 MB, free: 11.38 MB / 394.7 MB Notification: Performance of SimCode: time 7.32e-07/0.315, allocations: 0 / 482 MB, free: 11.38 MB / 394.7 MB Notification: Performance of Templates: time 0.1567/0.4717, allocations: 32.95 MB / 0.5029 GB, free: 121.6 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 4.129099283833057]