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.0008167/0.0008167, allocations: 75.77 kB / 22.45 MB, free: 2.09 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.0009336/0.0009336, allocations: 164 kB / 25.75 MB, free: 8.945 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.8897/0.8897, allocations: 158.6 MB / 187.5 MB, free: 2.941 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.142e-06/1.142e-06, allocations: 0 / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.431e-05/1.545e-05, allocations: 2.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01025/0.01026, allocations: 13.83 MB / 264.9 MB, free: 9.895 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007316/0.01758, allocations: 4.556 MB / 269.5 MB, free: 5.328 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.01884, allocations: 115.4 kB / 269.6 MB, free: 5.215 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00408/0.02292, allocations: 4.552 MB / 274.2 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0032/0.02612, allocations: 2.406 MB / 276.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.02739, allocations: 1.033 MB / 277.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004501/0.03189, allocations: 6.582 MB / 284.2 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003251/0.03514, allocations: 4.801 MB / 289 MB, free: 1.734 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003239/0.03838, allocations: 3.395 MB / 292.4 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003392/0.04177, allocations: 3.277 MB / 295.7 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005722/0.04234, allocations: 0.4961 MB / 296.2 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001729/0.04407, allocations: 1.326 MB / 297.5 MB, free: 9.219 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001999/0.04607, allocations: 2.856 MB / 300.3 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001702/0.04777, allocations: 1.823 MB / 302.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005451/0.05322, allocations: 6.155 MB / 308.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.05323, allocations: 0 / 308.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.05323, allocations: 0 / 308.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.983e-05/0.05327, allocations: 0 / 308.3 MB, free: 14.35 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.008761/0.06203, allocations: 6.923 MB / 315.2 MB, free: 7.344 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.06206, allocations: 11.98 kB / 315.2 MB, free: 7.332 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009249/0.07131, allocations: 3.301 MB / 318.5 MB, free: 4.023 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005085/0.0764, allocations: 3.498 MB / 322 MB, free: 484 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.07661, allocations: 316.5 kB / 322.4 MB, free: 164 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006789/0.07729, allocations: 444.6 kB / 322.8 MB, free: 15.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01068/0.08797, allocations: 7.319 MB / 330.1 MB, free: 7.352 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001181/0.08809, allocations: 55.52 kB / 330.2 MB, free: 7.297 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004595/0.08855, allocations: 195.8 kB / 330.4 MB, free: 7.105 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/0.09141, allocations: 2.199 MB / 332.6 MB, free: 4.902 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009644/0.1011, allocations: 3.959 MB / 336.5 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1524/0.2534, allocations: 49.86 MB / 386.4 MB, free: 60.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0056/0.259, allocations: 2.379 MB / 388.8 MB, free: 60.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.2602, allocations: 0.8441 MB / 389.6 MB, free: 60.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007555/0.2677, allocations: 6.616 MB / 396.2 MB, free: 56.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/0.2677, allocations: 60.75 kB / 396.3 MB, free: 56.9 MB / 330.7 MB Notification: Performance of pre-optimization done (n=192): time 4.879e-06/0.2677, allocations: 1.656 kB / 396.3 MB, free: 56.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=218): time 0.02655/0.2943, allocations: 14.78 MB / 411.1 MB, free: 42.87 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.2944, allocations: 204.5 kB / 411.3 MB, free: 42.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003529/0.2979, allocations: 4.152 MB / 415.4 MB, free: 38.61 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.298, allocations: 57.7 kB / 415.5 MB, free: 38.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001385/0.2994, allocations: 4.041 MB / 419.5 MB, free: 34.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006742/0.3001, allocations: 0.8972 MB / 420.4 MB, free: 33.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/0.3012, allocations: 1.484 MB / 421.9 MB, free: 32.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.609e-05/0.3012, allocations: 480.8 kB / 422.4 MB, free: 31.87 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.3025, allocations: 0.8332 MB / 423.2 MB, free: 31.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/0.3052, allocations: 6.751 MB / 429.9 MB, free: 21.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005444/0.3106, allocations: 8.319 MB / 438.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000105/0.3107, allocations: 40 kB / 438.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.009251/0.32, allocations: 6.73 MB / 445 MB, free: 3.844 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.376e-05/0.32, allocations: 64 kB / 445.1 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001031/0.3201, allocations: 143.9 kB / 445.2 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002479/0.3226, allocations: 1.133 MB / 446.4 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/0.3252, allocations: 1.556 MB / 447.9 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006353/0.3315, allocations: 6.509 MB / 454.4 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003736/0.3353, allocations: 451.4 kB / 454.9 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005252/0.3358, allocations: 404 kB / 455.3 MB, free: 9.359 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 (834): * Single equations (assignments): 829 * 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.001793/0.3376, allocations: 0.7149 MB / 456 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007651/0.3383, allocations: 465.3 kB / 456.4 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004032/0.3424, allocations: 2.413 MB / 458.8 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.708e-05/0.3424, allocations: 24 kB / 458.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.3424, allocations: 8 kB / 458.9 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.3424, allocations: 11.95 kB / 458.9 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.3536, allocations: 6.912 MB / 465.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.3536, allocations: 2.906 kB / 465.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.3547, allocations: 339.5 kB / 466.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002486/0.3572, allocations: 0.8815 MB / 467 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001801/0.3574, allocations: 39.98 kB / 467.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005886/0.3633, allocations: 5.773 MB / 472.8 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3633, allocations: 4 kB / 472.8 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005517/0.3688, allocations: 3.52 MB / 476.4 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/0.3702, allocations: 0.6962 MB / 477.1 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003306/0.3706, allocations: 32 kB / 477.1 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.3716, allocations: 187.7 kB / 477.3 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.3719, allocations: 149.7 kB / 477.4 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.66e-05/0.372, allocations: 55.98 kB / 477.5 MB, free: 2.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002379/0.3744, allocations: 1.834 MB / 479.3 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3744, allocations: 3.938 kB / 479.3 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00403/0.3784, allocations: 1.426 MB / 480.7 MB, free: 15.55 MB / 378.7 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 (169): * Single equations (assignments): 164 * 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.0004342/0.3789, allocations: 201.2 kB / 480.9 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00591/0.3848, allocations: 3.855 MB / 484.8 MB, free: 11.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3848, allocations: 8.188 kB / 484.8 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00159/0.3864, allocations: 1.247 MB / 486 MB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002281/0.3886, allocations: 0.5075 MB / 486.5 MB, free: 9.707 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1268/0.5155, allocations: 9.646 MB / 496.2 MB, free: 132 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002853/0.5183, allocations: 1.592 MB / 497.8 MB, free: 131.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003048/0.5214, allocations: 1.735 MB / 499.5 MB, free: 131.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006849/0.5221, allocations: 279.4 kB / 499.8 MB, free: 131.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.434e-06/0.5221, allocations: 0 / 499.8 MB, free: 131.7 MB / 378.7 MB Notification: Performance of Templates: time 0.05671/0.5788, allocations: 42.39 MB / 0.5295 GB, free: 97.38 MB / 378.7 MB " [Timeout remaining time 659] 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.140481559094042]