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.001117/0.001117, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0009335/0.0009335, allocations: 141.1 kB / 24.54 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.9155/0.9155, allocations: 173.4 MB / 201.1 MB, free: 9.316 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.162e-06/1.162e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.561e-05/1.677e-05, allocations: 2.312 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.009878/0.009895, allocations: 12.79 MB / 280.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005863/0.01576, allocations: 4.22 MB / 285 MB, free: 5.363 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009351/0.01669, allocations: 95.56 kB / 285.1 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003881/0.02057, allocations: 4.007 MB / 289.1 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1317/0.1523, allocations: 2.166 MB / 291.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001438/0.1538, allocations: 0.7431 MB / 292 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004783/0.1585, allocations: 4.606 MB / 296.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004732/0.1633, allocations: 4.021 MB / 300.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00409/0.1674, allocations: 2.818 MB / 303.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003233/0.1706, allocations: 2.623 MB / 306.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006521/0.1712, allocations: 420.4 kB / 306.5 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.1728, allocations: 1.1 MB / 307.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001232/0.174, allocations: 2.414 MB / 310 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.1753, allocations: 1.555 MB / 311.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004345/0.1796, allocations: 5.22 MB / 316.8 MB, free: 6.156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1796, allocations: 4 kB / 316.8 MB, free: 6.152 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1796, allocations: 0 / 316.8 MB, free: 6.152 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.585e-05/0.1797, allocations: 0 / 316.8 MB, free: 6.152 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.009816/0.1895, allocations: 6.842 MB / 323.6 MB, free: 15.4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.1896, allocations: 8.922 kB / 323.6 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004149/0.1937, allocations: 2.507 MB / 326.1 MB, free: 12.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/0.1971, allocations: 2.436 MB / 328.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/0.1972, allocations: 295 kB / 328.9 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004623/0.1977, allocations: 404.8 kB / 329.3 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01118/0.2089, allocations: 7.352 MB / 336.6 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.555e-05/0.209, allocations: 43.92 kB / 336.7 MB, free: 1.859 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003489/0.2093, allocations: 191.2 kB / 336.8 MB, free: 1.711 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002359/0.2117, allocations: 2.253 MB / 339.1 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/0.222, allocations: 4.291 MB / 343.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04002/0.262, allocations: 48.77 MB / 392.2 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008837/0.2709, allocations: 2.729 MB / 394.9 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.2724, allocations: 0.9162 MB / 395.8 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000348/0.2728, allocations: 140.6 kB / 395.9 MB, free: 5.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.2728, allocations: 62.08 kB / 396 MB, free: 5.902 MB / 346.7 MB Notification: Performance of pre-optimization done (n=200): time 5.38e-06/0.2728, allocations: 0 / 396 MB, free: 5.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=231): time 0.03679/0.3096, allocations: 17.03 MB / 413 MB, free: 4.883 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.3097, allocations: 154.5 kB / 413.2 MB, free: 4.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004094/0.3138, allocations: 3.702 MB / 416.9 MB, free: 1.004 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003391/0.3141, allocations: 65.7 kB / 416.9 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.3161, allocations: 3.779 MB / 420.7 MB, free: 13.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008887/0.317, allocations: 0.9485 MB / 421.7 MB, free: 12.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001636/0.3187, allocations: 1.57 MB / 423.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.3188, allocations: 484.5 kB / 423.7 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001737/0.3205, allocations: 0.9187 MB / 424.6 MB, free: 9.254 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1641/0.4846, allocations: 6.776 MB / 431.4 MB, free: 107.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008997/0.4936, allocations: 8.546 MB / 440 MB, free: 99.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001802/0.4938, allocations: 40.81 kB / 440 MB, free: 99.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.0143/0.5081, allocations: 6.756 MB / 446.7 MB, free: 98.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.301e-05/0.5082, allocations: 68.97 kB / 446.8 MB, free: 98.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001879/0.5084, allocations: 140.5 kB / 447 MB, free: 98.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.5101, allocations: 0.6801 MB / 447.6 MB, free: 98.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003917/0.514, allocations: 1.756 MB / 449.4 MB, free: 98.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003533/0.5175, allocations: 3.346 MB / 452.7 MB, free: 96.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00383/0.5213, allocations: 442.4 kB / 453.2 MB, free: 96.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007034/0.522, allocations: 464 kB / 453.6 MB, free: 96.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * 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 (837): * Single equations (assignments): 833 * 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 {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002201/0.5242, allocations: 0.7228 MB / 454.3 MB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007351/0.525, allocations: 443.7 kB / 454.8 MB, free: 96.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00411/0.5291, allocations: 2.771 MB / 457.5 MB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.703e-05/0.5291, allocations: 27.06 kB / 457.6 MB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.5291, allocations: 4.5 kB / 457.6 MB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.5291, allocations: 11.16 kB / 457.6 MB, free: 96.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01087/0.54, allocations: 7.345 MB / 464.9 MB, free: 94.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.54, allocations: 4 kB / 464.9 MB, free: 94.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.5415, allocations: 0.5667 MB / 465.5 MB, free: 94.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.5427, allocations: 0.5026 MB / 466 MB, free: 93.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002203/0.5429, allocations: 102.6 kB / 466.1 MB, free: 93.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002971/0.5459, allocations: 3.061 MB / 469.2 MB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.5459, allocations: 7.938 kB / 469.2 MB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005712/0.5516, allocations: 4.033 MB / 473.2 MB, free: 87.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/0.5531, allocations: 0.7528 MB / 474 MB, free: 87.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003024/0.5534, allocations: 45.31 kB / 474 MB, free: 87.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.5546, allocations: 199.6 kB / 474.2 MB, free: 86.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/0.5549, allocations: 202.6 kB / 474.4 MB, free: 86.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001689/0.5551, allocations: 122.1 kB / 474.5 MB, free: 86.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001872/0.557, allocations: 1.587 MB / 476.1 MB, free: 85.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.557, allocations: 0 / 476.1 MB, free: 85.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003986/0.5609, allocations: 1.275 MB / 477.4 MB, free: 83.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (203): * Single equations (assignments): 199 * 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 {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004636/0.5614, allocations: 212.9 kB / 477.6 MB, free: 83.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005656/0.5671, allocations: 3.915 MB / 481.5 MB, free: 79.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.5671, allocations: 4.188 kB / 481.5 MB, free: 79.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.5687, allocations: 1.294 MB / 482.8 MB, free: 78.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002031/0.5707, allocations: 0.5081 MB / 483.3 MB, free: 78.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01307/0.5838, allocations: 9.306 MB / 492.6 MB, free: 68.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001346/0.5851, allocations: 1.436 MB / 494.1 MB, free: 67.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003267/0.5884, allocations: 1.879 MB / 495.9 MB, free: 65.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001172/0.5895, allocations: 456.1 kB / 496.4 MB, free: 64.84 MB / 378.7 MB Notification: Performance of SimCode: time 3.286e-06/0.5896, allocations: 3.938 kB / 496.4 MB, free: 64.84 MB / 378.7 MB Notification: Performance of Templates: time 0.05976/0.6493, allocations: 49.78 MB / 0.5334 GB, free: 15.58 MB / 378.7 MB " [Timeout remaining time 659] 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: 4.375451778061688]