Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.0009156/0.0009156, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.0009959/0.0009959, allocations: 169.1 kB / 24.91 MB, free: 9.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8956/0.8956, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.72e-07/9.72e-07, allocations: 3.938 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.568e-06/1.054e-05, allocations: 6.312 kB / 273.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.009076/0.009086, allocations: 12.27 MB / 285.7 MB, free: 4.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006598/0.01568, allocations: 4.371 MB / 290.1 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007829/0.01647, allocations: 95.56 kB / 290.2 MB, free: 0.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1046/0.1211, allocations: 3.963 MB / 294.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003892/0.125, allocations: 2.128 MB / 296.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1261, allocations: 0.7577 MB / 297 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004169/0.1302, allocations: 4.638 MB / 301.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003369/0.1336, allocations: 4.086 MB / 305.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002726/0.1363, allocations: 2.906 MB / 308.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001748/0.1381, allocations: 2.376 MB / 311 MB, free: 8.453 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003875/0.1385, allocations: 407.8 kB / 311.4 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001015/0.1395, allocations: 1.068 MB / 312.5 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008719/0.1404, allocations: 2.337 MB / 314.8 MB, free: 5.398 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009152/0.1413, allocations: 1.505 MB / 316.3 MB, free: 3.965 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00293/0.1442, allocations: 5.056 MB / 321.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1442, allocations: 0 / 321.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1442, allocations: 0 / 321.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.637e-05/0.1443, allocations: 0 / 321.4 MB, free: 15.25 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: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.005447/0.1497, allocations: 5.485 MB / 326.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.908e-05/0.1497, allocations: 8.031 kB / 326.9 MB, free: 10.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002506/0.1522, allocations: 1.189 MB / 328.1 MB, free: 9.008 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002009/0.1543, allocations: 2.028 MB / 330.1 MB, free: 7.113 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.1544, allocations: 290.7 kB / 330.4 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004096/0.1548, allocations: 382.8 kB / 330.8 MB, free: 6.535 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005221/0.16, allocations: 5.605 MB / 336.4 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-05/0.1601, allocations: 51.3 kB / 336.4 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000332/0.1604, allocations: 180.9 kB / 336.6 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001467/0.1619, allocations: 1.787 MB / 338.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004164/0.1661, allocations: 2.779 MB / 341.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0216/0.1877, allocations: 34.28 MB / 375.4 MB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.1911, allocations: 1.605 MB / 377.1 MB, free: 7.594 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.1916, allocations: 384.1 kB / 377.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004495/0.1961, allocations: 3.991 MB / 381.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.1961, allocations: 47.56 kB / 381.5 MB, free: 3.141 MB / 330.7 MB Notification: Performance of pre-optimization done (n=146): time 3.076e-06/0.1961, allocations: 0 / 381.5 MB, free: 3.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=156): time 0.01159/0.2077, allocations: 5.524 MB / 387 MB, free: 13.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.2077, allocations: 141.5 kB / 387.1 MB, free: 13.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002422/0.2102, allocations: 3.48 MB / 390.6 MB, free: 9.941 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.259e-05/0.2102, allocations: 45.7 kB / 390.7 MB, free: 9.891 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001426/0.2117, allocations: 3.504 MB / 394.2 MB, free: 6.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003673/0.212, allocations: 0.6552 MB / 394.8 MB, free: 5.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009473/0.213, allocations: 1.235 MB / 396 MB, free: 4.445 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/0.213, allocations: 305.1 kB / 396.3 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.2141, allocations: 0.7871 MB / 397.1 MB, free: 3.352 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002777/0.2169, allocations: 4.82 MB / 402 MB, free: 12.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00396/0.2209, allocations: 6.204 MB / 408.2 MB, free: 4.121 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-05/0.2209, allocations: 44 kB / 408.2 MB, free: 4.078 MB / 362.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.004248/0.2252, allocations: 4.436 MB / 412.6 MB, free: 15.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.806e-05/0.2252, allocations: 72 kB / 412.7 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-05/0.2253, allocations: 152 kB / 412.9 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003673/0.2257, allocations: 263.5 kB / 413.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/0.228, allocations: 1.493 MB / 414.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001213/0.2292, allocations: 1.608 MB / 416.2 MB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.2311, allocations: 295.8 kB / 416.5 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/0.2314, allocations: 348 kB / 416.8 MB, free: 11.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.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 (821): * Single equations (assignments): 817 * 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.001042/0.2324, allocations: 0.67 MB / 417.5 MB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002688/0.2327, allocations: 223.8 kB / 417.7 MB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.2337, allocations: 0.8647 MB / 418.6 MB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/0.2338, allocations: 20 kB / 418.6 MB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2338, allocations: 0 / 418.6 MB, free: 9.516 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.2338, allocations: 7.969 kB / 418.6 MB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004804/0.2386, allocations: 4.237 MB / 422.9 MB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.2386, allocations: 4 kB / 422.9 MB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006111/0.2392, allocations: 251.7 kB / 423.1 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002305/0.2394, allocations: 67.53 kB / 423.2 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.308e-05/0.2395, allocations: 35.98 kB / 423.2 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.2406, allocations: 1.523 MB / 424.7 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.2406, allocations: 11.94 kB / 424.7 MB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.2422, allocations: 1.813 MB / 426.6 MB, free: 1.266 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004724/0.2427, allocations: 429.3 kB / 427 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001961/0.2429, allocations: 31.98 kB / 427 MB, free: 0.8125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/0.2434, allocations: 36 kB / 427 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.2435, allocations: 104.7 kB / 427.1 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.696e-05/0.2436, allocations: 40 kB / 427.2 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009646/0.2446, allocations: 1.259 MB / 428.4 MB, free: 15.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2446, allocations: 0 / 428.4 MB, free: 15.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002512/0.2471, allocations: 1.043 MB / 429.5 MB, free: 14.36 MB / 394.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.0002863/0.2474, allocations: 164 kB / 429.6 MB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002311/0.2497, allocations: 2.623 MB / 432.3 MB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001489/0.2498, allocations: 104.2 kB / 432.4 MB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005501/0.2504, allocations: 0.5411 MB / 432.9 MB, free: 10.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.2518, allocations: 0.6617 MB / 433.6 MB, free: 10.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00783/0.2596, allocations: 8.112 MB / 441.7 MB, free: 1.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.2607, allocations: 1.359 MB / 443 MB, free: 0.5938 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001088/0.2618, allocations: 0.5252 MB / 443.6 MB, free: 64 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1046/0.3664, allocations: 0.5615 MB / 444.1 MB, free: 126.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/0.3664, allocations: 1.406 kB / 444.1 MB, free: 126.1 MB / 394.7 MB Notification: Performance of Templates: time 0.042/0.4084, allocations: 30.08 MB / 474.2 MB, free: 114.2 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6378059899434447]