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.0007322/0.0007322, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001158/0.00189, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007849/0.0007849, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009259/0.001711, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.8666/0.8666, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1611/1.028, allocations: 49.5 MB / 220.7 MB, free: 1.352 MB / 218.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.613e-06/1.613e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.688e-05, allocations: 5.406 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01541/0.01544, allocations: 13.57 MB / 235.6 MB, free: 2.426 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.02794, allocations: 4.784 MB / 240.3 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002528/0.03047, allocations: 111.4 kB / 240.4 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00452/0.03499, allocations: 4.29 MB / 244.7 MB, free: 9.211 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004927/0.03992, allocations: 2.379 MB / 247.1 MB, free: 6.82 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001864/0.04178, allocations: 0.963 MB / 248.1 MB, free: 5.855 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.007109/0.04889, allocations: 6.146 MB / 254.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005197/0.05409, allocations: 4.397 MB / 258.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007473/0.06156, allocations: 3.974 MB / 262.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004569/0.06613, allocations: 3.102 MB / 265.7 MB, free: 4.113 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.06724, allocations: 0.4961 MB / 266.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002464/0.0697, allocations: 1.373 MB / 267.6 MB, free: 2.242 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002257/0.07196, allocations: 2.541 MB / 270.1 MB, free: 15.7 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002408/0.07437, allocations: 1.477 MB / 271.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007744/0.08211, allocations: 5.707 MB / 277.3 MB, free: 8.488 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.641e-05/0.08213, allocations: 0 / 277.3 MB, free: 8.488 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.108e-06/0.08213, allocations: 3.938 kB / 277.3 MB, free: 8.484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003473/0.08248, allocations: 0 / 277.3 MB, free: 8.484 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01113/0.09361, allocations: 7.185 MB / 284.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.758e-05/0.09368, allocations: 8.031 kB / 284.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1196/0.2133, allocations: 1.475 MB / 286 MB, free: 48.15 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005012/0.2183, allocations: 2.735 MB / 288.7 MB, free: 47.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000228/0.2185, allocations: 318.7 kB / 289 MB, free: 47.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007609/0.2193, allocations: 441.7 kB / 289.4 MB, free: 47.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008336/0.2276, allocations: 6.051 MB / 295.5 MB, free: 45.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001648/0.2278, allocations: 56.97 kB / 295.5 MB, free: 45.56 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003518/0.2281, allocations: 192.5 kB / 295.7 MB, free: 45.56 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001548/0.2297, allocations: 1.825 MB / 297.6 MB, free: 45.38 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005335/0.235, allocations: 3.024 MB / 300.6 MB, free: 44.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02574/0.2608, allocations: 36.05 MB / 336.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003669/0.2644, allocations: 1.759 MB / 338.4 MB, free: 9.051 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004534/0.2649, allocations: 446.1 kB / 338.8 MB, free: 8.609 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005694/0.2706, allocations: 4.332 MB / 343.2 MB, free: 4.254 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.2706, allocations: 51.56 kB / 343.2 MB, free: 4.195 MB / 282.7 MB Notification: Performance of pre-optimization done (n=162): time 4.108e-06/0.2706, allocations: 0 / 343.2 MB, free: 4.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=178): time 0.01233/0.2829, allocations: 5.688 MB / 348.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.074e-05/0.283, allocations: 157.5 kB / 349 MB, free: 14.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003439/0.2864, allocations: 3.802 MB / 352.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.841e-05/0.2865, allocations: 49.7 kB / 352.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/0.2882, allocations: 3.655 MB / 356.6 MB, free: 6.746 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004783/0.2887, allocations: 0.7327 MB / 357.3 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001033/0.2897, allocations: 1.295 MB / 358.6 MB, free: 4.703 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.499e-05/0.2898, allocations: 305.1 kB / 358.9 MB, free: 4.402 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.2912, allocations: 0.8037 MB / 359.7 MB, free: 3.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002964/0.2941, allocations: 4.867 MB / 364.5 MB, free: 12.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005482/0.2996, allocations: 6.727 MB / 371.3 MB, free: 3.848 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.595e-05/0.2997, allocations: 44 kB / 371.3 MB, free: 3.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.006104/0.3058, allocations: 4.604 MB / 375.9 MB, free: 15.17 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.656e-05/0.3059, allocations: 68 kB / 376 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001573/0.306, allocations: 156 kB / 376.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008005/0.3068, allocations: 408.3 kB / 376.5 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.3101, allocations: 1.712 MB / 378.3 MB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/0.3127, allocations: 3.587 MB / 381.8 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.3161, allocations: 295.7 kB / 382.1 MB, free: 8.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004088/0.3165, allocations: 356 kB / 382.5 MB, free: 8.434 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.001526/0.3181, allocations: 0.681 MB / 383.2 MB, free: 7.742 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005285/0.3186, allocations: 259.6 kB / 383.4 MB, free: 7.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.3199, allocations: 0.9721 MB / 384.4 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.967e-05/0.3199, allocations: 19.98 kB / 384.4 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.3199, allocations: 8 kB / 384.4 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.3199, allocations: 11.97 kB / 384.4 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006245/0.3262, allocations: 4.524 MB / 388.9 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.715e-05/0.3262, allocations: 12 kB / 389 MB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008004/0.327, allocations: 323.5 kB / 389.3 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008249/0.3278, allocations: 0.497 MB / 389.8 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000741/0.3286, allocations: 419.7 kB / 390.2 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.798e-05/0.3286, allocations: 38.28 kB / 390.2 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002279/0.3309, allocations: 2.779 MB / 393 MB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.658e-06/0.3309, allocations: 19.88 kB / 393 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0021/0.333, allocations: 1.905 MB / 394.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004046/0.3334, allocations: 39.98 kB / 395 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007148/0.3341, allocations: 43.92 kB / 395 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.3343, allocations: 116.7 kB / 395.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.467e-05/0.3344, allocations: 43.98 kB / 395.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001338/0.3357, allocations: 1.435 MB / 396.6 MB, free: 9.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3357, allocations: 0 / 396.6 MB, free: 9.848 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003654/0.3394, allocations: 1.223 MB / 397.8 MB, free: 8.625 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.0003574/0.3397, allocations: 186.3 kB / 398 MB, free: 8.438 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003682/0.3434, allocations: 2.983 MB / 401 MB, free: 5.527 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001869/0.3436, allocations: 126.8 kB / 401.1 MB, free: 5.395 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009003/0.3445, allocations: 0.7956 MB / 401.9 MB, free: 4.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003945/0.3484, allocations: 3.688 MB / 405.6 MB, free: 392 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01912/0.3676, allocations: 9.369 MB / 415 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00171/0.3693, allocations: 1.559 MB / 416.5 MB, free: 5.273 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001675/0.371, allocations: 0.555 MB / 417.1 MB, free: 4.715 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000853/0.3718, allocations: 0.6066 MB / 417.7 MB, free: 4.109 MB / 362.7 MB Notification: Performance of SimCode: time 2.114e-06/0.3718, allocations: 0 / 417.7 MB, free: 4.109 MB / 362.7 MB Notification: Performance of Templates: time 0.1795/0.5513, allocations: 33.28 MB / 451 MB, free: 98.55 MB / 362.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6243577925488353]