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.001289/0.001289, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001138/0.001138, allocations: 167.4 kB / 25.33 MB, free: 8.594 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.9149/0.9149, allocations: 158.6 MB / 187.2 MB, free: 2.93 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.172e-06/1.172e-06, allocations: 3.938 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.419e-05, allocations: 6.25 kB / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01167/0.01169, allocations: 13.88 MB / 264.9 MB, free: 9.57 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008858/0.02055, allocations: 4.58 MB / 269.5 MB, free: 4.977 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002527/0.02308, allocations: 107.5 kB / 269.6 MB, free: 4.871 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005217/0.02829, allocations: 4.564 MB / 274.2 MB, free: 300 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005851/0.03415, allocations: 2.406 MB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.03608, allocations: 1.037 MB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00769/0.04377, allocations: 6.582 MB / 284.2 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00536/0.04913, allocations: 4.797 MB / 289 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00606/0.05519, allocations: 4.004 MB / 293 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004871/0.06007, allocations: 3.254 MB / 296.3 MB, free: 10.1 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001375/0.06144, allocations: 0.5 MB / 296.8 MB, free: 9.598 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.06356, allocations: 1.334 MB / 298.1 MB, free: 8.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001777/0.06534, allocations: 2.852 MB / 300.9 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.06723, allocations: 1.823 MB / 302.8 MB, free: 3.574 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005285/0.07252, allocations: 6.178 MB / 308.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.07252, allocations: 0 / 308.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.07252, allocations: 0 / 308.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.353e-05/0.0726, allocations: 7.938 kB / 309 MB, free: 13.36 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.007256/0.07986, allocations: 6.958 MB / 315.9 MB, free: 6.324 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.07991, allocations: 15.98 kB / 315.9 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006621/0.08653, allocations: 3.219 MB / 319.1 MB, free: 3.082 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00386/0.09039, allocations: 3.37 MB / 322.5 MB, free: 15.66 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.09056, allocations: 316.5 kB / 322.8 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000521/0.09108, allocations: 444.6 kB / 323.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008151/0.09923, allocations: 7.319 MB / 330.6 MB, free: 6.539 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.253e-05/0.09933, allocations: 51.59 kB / 330.6 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003275/0.09965, allocations: 195.8 kB / 330.8 MB, free: 6.297 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001677/0.1013, allocations: 2.097 MB / 332.9 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006414/0.1077, allocations: 3.756 MB / 336.7 MB, free: 436 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1554/0.2631, allocations: 50.11 MB / 386.8 MB, free: 53.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004747/0.2679, allocations: 2.027 MB / 388.8 MB, free: 53.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.2689, allocations: 0.6424 MB / 389.5 MB, free: 53.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007268/0.2762, allocations: 4.922 MB / 394.4 MB, free: 52.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.2762, allocations: 55.98 kB / 394.4 MB, free: 52.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=162): time 4.498e-06/0.2762, allocations: 0.5938 kB / 394.4 MB, free: 52.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=178): time 0.01953/0.2958, allocations: 10.62 MB / 405.1 MB, free: 45.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.2958, allocations: 199.5 kB / 405.2 MB, free: 45.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004017/0.2998, allocations: 4.275 MB / 409.5 MB, free: 41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.701e-05/0.2999, allocations: 49.7 kB / 409.6 MB, free: 40.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001752/0.3017, allocations: 4.145 MB / 413.7 MB, free: 37.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004431/0.3021, allocations: 0.7535 MB / 414.5 MB, free: 36.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001286/0.3034, allocations: 1.474 MB / 415.9 MB, free: 34.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.944e-05/0.3034, allocations: 476.8 kB / 416.4 MB, free: 34.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.3046, allocations: 0.6847 MB / 417.1 MB, free: 33.74 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002874/0.3075, allocations: 6.894 MB / 424 MB, free: 24.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005455/0.313, allocations: 8.288 MB / 432.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.017e-05/0.313, allocations: 40 kB / 432.3 MB, free: 13.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.006734/0.3198, allocations: 5.865 MB / 438.2 MB, free: 7.426 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.409e-05/0.3198, allocations: 72.06 kB / 438.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-05/0.3199, allocations: 148 kB / 438.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007199/0.3206, allocations: 452.9 kB / 438.8 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002251/0.3228, allocations: 1.591 MB / 440.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002234/0.3251, allocations: 4.932 MB / 445.4 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002584/0.3277, allocations: 461 kB / 445.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003378/0.328, allocations: 408 kB / 446.2 MB, free: 15.17 MB / 346.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.001323/0.3293, allocations: 0.7194 MB / 446.9 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004339/0.3298, allocations: 452 kB / 447.4 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.3314, allocations: 1.244 MB / 448.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.759e-05/0.3314, allocations: 24 kB / 448.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3314, allocations: 4 kB / 448.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.3314, allocations: 11.91 kB / 448.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007492/0.3389, allocations: 5.613 MB / 454.3 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.3389, allocations: 4 kB / 454.3 MB, free: 6.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/0.3397, allocations: 331.5 kB / 454.6 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005768/0.3403, allocations: 263.4 kB / 454.8 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.716e-05/0.3403, allocations: 36 kB / 454.9 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002118/0.3424, allocations: 4.012 MB / 458.9 MB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3425, allocations: 4 kB / 458.9 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.345, allocations: 2.537 MB / 461.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006921/0.3457, allocations: 0.583 MB / 462 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.346, allocations: 36 kB / 462.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008038/0.3468, allocations: 153.2 kB / 462.2 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.347, allocations: 128.7 kB / 462.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-05/0.3471, allocations: 59.98 kB / 462.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001869/0.3489, allocations: 1.871 MB / 464.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3489, allocations: 3.828 kB / 464.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003286/0.3522, allocations: 1.229 MB / 465.5 MB, free: 11.38 MB / 362.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.0003279/0.3525, allocations: 197.4 kB / 465.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004019/0.3566, allocations: 3.37 MB / 469.1 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3566, allocations: 0 / 469.1 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009075/0.3575, allocations: 0.9515 MB / 470 MB, free: 6.812 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.3589, allocations: 0.5025 MB / 470.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01022/0.3692, allocations: 9.325 MB / 479.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001315/0.3705, allocations: 1.561 MB / 481.4 MB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002563/0.373, allocations: 1.763 MB / 483.2 MB, free: 9.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004784/0.3735, allocations: 264.5 kB / 483.4 MB, free: 9.223 MB / 378.7 MB Notification: Performance of SimCode: time 3.777e-06/0.3735, allocations: 0 / 483.4 MB, free: 9.223 MB / 378.7 MB Notification: Performance of Templates: time 0.1453/0.5188, allocations: 31.89 MB / 0.5032 GB, free: 115.9 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.061177883297205]