Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.000983/0.000983, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001393/0.001393, allocations: 145.5 kB / 24.55 MB, free: 32 kB / 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.9315/0.9315, allocations: 173.3 MB / 201.1 MB, free: 9.289 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.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 268 MB, free: 6.391 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.347e-05/2.518e-05, allocations: 2.312 kB / 268 MB, free: 6.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.009467/0.009492, allocations: 12.8 MB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005145/0.01464, allocations: 4.224 MB / 285 MB, free: 5.289 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006243/0.01526, allocations: 95.56 kB / 285.1 MB, free: 5.195 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003618/0.01888, allocations: 4.003 MB / 289.1 MB, free: 1.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1057/0.1246, allocations: 2.169 MB / 291.3 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001232/0.1258, allocations: 0.7477 MB / 292 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004079/0.1299, allocations: 4.606 MB / 296.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003584/0.1335, allocations: 4.017 MB / 300.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002954/0.1365, allocations: 2.95 MB / 303.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002358/0.1388, allocations: 2.521 MB / 306.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005707/0.1394, allocations: 408.3 kB / 306.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001149/0.1405, allocations: 1.085 MB / 307.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009902/0.1415, allocations: 2.391 MB / 310 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001083/0.1426, allocations: 1.541 MB / 311.5 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003096/0.1457, allocations: 5.164 MB / 316.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1457, allocations: 0 / 316.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1457, allocations: 0 / 316.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001134/0.1458, allocations: 0 / 316.7 MB, free: 6.164 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1765 * Number of variables: 1765 Notification: Performance of Generate backend data structure: time 0.005974/0.1518, allocations: 6.627 MB / 323.3 MB, free: 15.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.1518, allocations: 8.922 kB / 323.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003932/0.1558, allocations: 2.501 MB / 325.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002392/0.1582, allocations: 2.412 MB / 328.3 MB, free: 10.85 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.1583, allocations: 288.7 kB / 328.5 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003905/0.1587, allocations: 396.6 kB / 328.9 MB, free: 10.26 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007637/0.1663, allocations: 6.879 MB / 335.8 MB, free: 2.586 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-05/0.1664, allocations: 48.66 kB / 335.9 MB, free: 2.559 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.1667, allocations: 184.5 kB / 336 MB, free: 2.418 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001617/0.1683, allocations: 2.022 MB / 338.1 MB, free: 436 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006079/0.1744, allocations: 3.499 MB / 341.6 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0315/0.2059, allocations: 48.14 MB / 389.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006012/0.2119, allocations: 1.779 MB / 391.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.213, allocations: 0.5704 MB / 392 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005846/0.2188, allocations: 4.639 MB / 396.7 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.2189, allocations: 54.33 kB / 396.7 MB, free: 4.941 MB / 346.7 MB Notification: Performance of pre-optimization done (n=146): time 3.006e-06/0.2189, allocations: 0 / 396.7 MB, free: 4.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=156): time 0.01537/0.2342, allocations: 9.957 MB / 406.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.2343, allocations: 144.7 kB / 406.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003564/0.2379, allocations: 3.939 MB / 410.8 MB, free: 6.793 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.97e-05/0.2379, allocations: 47.34 kB / 410.8 MB, free: 6.742 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001863/0.2398, allocations: 3.947 MB / 414.8 MB, free: 2.812 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004219/0.2402, allocations: 0.6815 MB / 415.4 MB, free: 2.141 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/0.2414, allocations: 1.416 MB / 416.9 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.2415, allocations: 484.7 kB / 417.3 MB, free: 240 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.2425, allocations: 0.6537 MB / 418 MB, free: 15.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00377/0.2463, allocations: 6.905 MB / 424.9 MB, free: 5.855 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1301/0.3764, allocations: 8.348 MB / 433.2 MB, free: 104.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001227/0.3765, allocations: 43.62 kB / 433.3 MB, free: 104.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.008013/0.3846, allocations: 5.69 MB / 439 MB, free: 103.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.666e-05/0.3846, allocations: 70.84 kB / 439 MB, free: 103.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/0.3848, allocations: 150.3 kB / 439.2 MB, free: 103.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005927/0.3854, allocations: 305 kB / 439.5 MB, free: 103.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/0.3881, allocations: 1.56 MB / 441 MB, free: 103.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.3895, allocations: 2.24 MB / 443.3 MB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/0.392, allocations: 382.2 kB / 443.7 MB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003439/0.3923, allocations: 407.4 kB / 444.1 MB, free: 101.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 685 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (824): * Single equations (assignments): 820 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001147/0.3935, allocations: 0.7169 MB / 444.8 MB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003239/0.3938, allocations: 398.1 kB / 445.2 MB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/0.3956, allocations: 1.129 MB / 446.3 MB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.3956, allocations: 20.72 kB / 446.3 MB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.3957, allocations: 3.438 kB / 446.3 MB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.3957, allocations: 6.797 kB / 446.3 MB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007511/0.4032, allocations: 5.355 MB / 451.7 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.4032, allocations: 3.688 kB / 451.7 MB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000881/0.4041, allocations: 281.3 kB / 452 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003486/0.4044, allocations: 114.5 kB / 452.1 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.111e-05/0.4045, allocations: 38.69 kB / 452.1 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001151/0.4056, allocations: 1.959 MB / 454.1 MB, free: 98.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.4057, allocations: 17.36 kB / 454.1 MB, free: 98.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002556/0.4082, allocations: 2.388 MB / 456.5 MB, free: 97.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00065/0.4089, allocations: 0.4938 MB / 457 MB, free: 97.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002792/0.4091, allocations: 40 kB / 457 MB, free: 97.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008837/0.41, allocations: 91.56 kB / 457.1 MB, free: 97.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.4102, allocations: 116.4 kB / 457.2 MB, free: 97.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.78e-05/0.4103, allocations: 56.09 kB / 457.3 MB, free: 97.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001969/0.4123, allocations: 1.642 MB / 458.9 MB, free: 97.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4123, allocations: 0 / 458.9 MB, free: 97.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003988/0.4163, allocations: 1.062 MB / 460 MB, free: 97.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (141): * Single equations (assignments): 137 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003815/0.4166, allocations: 206.5 kB / 460.2 MB, free: 97.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003842/0.4205, allocations: 3.11 MB / 463.3 MB, free: 94.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4205, allocations: 0 / 463.3 MB, free: 94.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008422/0.4213, allocations: 0.737 MB / 464 MB, free: 94.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/0.423, allocations: 438 kB / 464.4 MB, free: 93.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009496/0.4325, allocations: 8.496 MB / 472.9 MB, free: 85.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001102/0.4336, allocations: 1.382 MB / 474.3 MB, free: 84.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002805/0.4364, allocations: 1.703 MB / 476 MB, free: 83.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005189/0.4369, allocations: 245.5 kB / 476.3 MB, free: 83.55 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4369, allocations: 7.5 kB / 476.3 MB, free: 83.54 MB / 378.7 MB Notification: Performance of Templates: time 0.04131/0.4782, allocations: 28.53 MB / 0.493 GB, free: 55.69 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.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.8331648288294673]