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.001132/0.001132, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001041/0.001041, allocations: 150.2 kB / 24.81 MB, free: 9.285 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.9489/0.9489, allocations: 173.3 MB / 201.4 MB, free: 9.203 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 / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.137e-05/1.302e-05, allocations: 2.312 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01094/0.01095, allocations: 12.84 MB / 281.2 MB, free: 9.281 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006307/0.01726, allocations: 4.446 MB / 285.7 MB, free: 4.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001208/0.01846, allocations: 115.4 kB / 285.8 MB, free: 4.707 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003741/0.0222, allocations: 4.451 MB / 290.3 MB, free: 248 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1103/0.1325, allocations: 2.319 MB / 292.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001593/0.1341, allocations: 1.026 MB / 293.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006031/0.1401, allocations: 6.763 MB / 300.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003777/0.1439, allocations: 4.701 MB / 305.1 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003281/0.1472, allocations: 4.273 MB / 309.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002462/0.1496, allocations: 3.139 MB / 312.5 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005504/0.1502, allocations: 486.1 kB / 312.9 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.1515, allocations: 1.324 MB / 314.3 MB, free: 8.406 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.1526, allocations: 2.743 MB / 317 MB, free: 5.758 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.1538, allocations: 1.752 MB / 318.8 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003588/0.1574, allocations: 5.945 MB / 324.7 MB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1574, allocations: 0 / 324.7 MB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1574, allocations: 0 / 324.7 MB, free: 14.49 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.619e-05/0.1574, allocations: 0 / 324.7 MB, free: 14.49 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.006687/0.1641, allocations: 6.466 MB / 331.2 MB, free: 8.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1642, allocations: 16.91 kB / 331.2 MB, free: 8.395 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005062/0.1692, allocations: 2.235 MB / 333.4 MB, free: 6.195 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003107/0.1723, allocations: 2.859 MB / 336.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.1725, allocations: 302 kB / 336.6 MB, free: 3.234 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000454/0.1729, allocations: 431.5 kB / 337 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00633/0.1793, allocations: 6.419 MB / 343.4 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.507e-05/0.1793, allocations: 53.02 kB / 343.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000283/0.1796, allocations: 191.1 kB / 343.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001402/0.181, allocations: 1.821 MB / 345.5 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004462/0.1855, allocations: 2.827 MB / 348.3 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02857/0.2141, allocations: 48.2 MB / 396.5 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003703/0.2178, allocations: 1.707 MB / 398.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005438/0.2183, allocations: 0.4977 MB / 398.7 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005187/0.2235, allocations: 4.394 MB / 403.1 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.2235, allocations: 50.39 kB / 403.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of pre-optimization done (n=142): time 3.326e-06/0.2235, allocations: 0 / 403.2 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of matching and sorting (n=158): time 0.01266/0.2362, allocations: 5.967 MB / 409.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.2362, allocations: 196 kB / 409.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/0.2394, allocations: 4.146 MB / 413.5 MB, free: 6.133 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.2394, allocations: 53.7 kB / 413.5 MB, free: 6.074 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002193/0.2416, allocations: 4.044 MB / 417.6 MB, free: 1.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003695/0.242, allocations: 0.6825 MB / 418.2 MB, free: 1.305 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/0.2431, allocations: 1.454 MB / 419.7 MB, free: 15.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.36e-05/0.2432, allocations: 476.8 kB / 420.2 MB, free: 15.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000773/0.244, allocations: 0.5669 MB / 420.7 MB, free: 14.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003753/0.2477, allocations: 6.652 MB / 427.4 MB, free: 5.434 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1521/0.3998, allocations: 7.847 MB / 435.2 MB, free: 93.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001465/0.3999, allocations: 41.91 kB / 435.3 MB, free: 93.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.007963/0.4079, allocations: 5.215 MB / 440.5 MB, free: 93.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.62e-05/0.408, allocations: 68.16 kB / 440.6 MB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002037/0.4082, allocations: 142 kB / 440.7 MB, free: 93.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009665/0.4092, allocations: 405 kB / 441.1 MB, free: 93.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002658/0.4118, allocations: 1.465 MB / 442.6 MB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.4144, allocations: 4.788 MB / 447.3 MB, free: 89.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002846/0.4173, allocations: 289.7 kB / 447.6 MB, free: 89.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002965/0.4176, allocations: 346.9 kB / 448 MB, free: 89.52 MB / 378.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.00129/0.4189, allocations: 0.706 MB / 448.7 MB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004407/0.4193, allocations: 428 kB / 449.1 MB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001122/0.4204, allocations: 0.9815 MB / 450.1 MB, free: 89.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.4204, allocations: 23.73 kB / 450.1 MB, free: 89.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.4204, allocations: 5.938 kB / 450.1 MB, free: 89.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.4205, allocations: 10.22 kB / 450.1 MB, free: 89.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00588/0.4263, allocations: 5.094 MB / 455.2 MB, free: 88.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.4263, allocations: 9.906 kB / 455.2 MB, free: 88.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005597/0.4269, allocations: 241.9 kB / 455.4 MB, free: 88.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000494/0.4274, allocations: 213.1 kB / 455.7 MB, free: 88.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-05/0.4275, allocations: 30.31 kB / 455.7 MB, free: 88.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001496/0.429, allocations: 3.887 MB / 459.6 MB, free: 84.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.429, allocations: 10.39 kB / 459.6 MB, free: 84.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.4307, allocations: 2.154 MB / 461.7 MB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004146/0.4311, allocations: 380 kB / 462.1 MB, free: 83.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/0.4314, allocations: 27.62 kB / 462.1 MB, free: 83.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006491/0.432, allocations: 40.75 kB / 462.2 MB, free: 83.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.4322, allocations: 115.1 kB / 462.3 MB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.232e-05/0.4322, allocations: 43.28 kB / 462.3 MB, free: 83.52 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001288/0.4335, allocations: 1.686 MB / 464 MB, free: 83.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4335, allocations: 0 / 464 MB, free: 83.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003187/0.4367, allocations: 1.165 MB / 465.2 MB, free: 83.29 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.0003124/0.437, allocations: 201.6 kB / 465.4 MB, free: 83.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002991/0.44, allocations: 3.026 MB / 468.4 MB, free: 82.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.44, allocations: 0 / 468.4 MB, free: 82.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005937/0.4406, allocations: 0.8106 MB / 469.2 MB, free: 81.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.442, allocations: 0.4937 MB / 469.7 MB, free: 81.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009842/0.4519, allocations: 8.862 MB / 478.6 MB, free: 74.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001097/0.453, allocations: 1.498 MB / 480.1 MB, free: 73.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001157/0.4541, allocations: 0.5384 MB / 480.6 MB, free: 73.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007123/0.4548, allocations: 0.6438 MB / 481.2 MB, free: 72.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.465e-06/0.4548, allocations: 0 / 481.2 MB, free: 72.46 MB / 378.7 MB Notification: Performance of Templates: time 0.04445/0.4993, allocations: 32.28 MB / 0.5015 GB, free: 41.56 MB / 378.7 MB " [Timeout remaining time 659] 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: 3.975075025111437]