Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.001009/0.001009, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.0009738/0.0009738, allocations: 161 kB / 24.56 MB, free: 12 kB / 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.92/0.92, allocations: 177.1 MB / 205 MB, free: 5.289 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.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273 MB, free: 1.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.292e-05/1.458e-05, allocations: 2.312 kB / 273 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008541/0.008556, allocations: 10.72 MB / 283.7 MB, free: 6.637 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006178/0.01473, allocations: 3.765 MB / 287.5 MB, free: 2.863 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.01588, allocations: 75.62 kB / 287.5 MB, free: 2.789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.112/0.1279, allocations: 2.878 MB / 290.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004383/0.1323, allocations: 1.874 MB / 292.3 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.1334, allocations: 0.6294 MB / 292.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004463/0.1378, allocations: 3.972 MB / 296.9 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003423/0.1413, allocations: 3.081 MB / 300 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002604/0.1439, allocations: 2.289 MB / 302.3 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.1459, allocations: 2.109 MB / 304.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005147/0.1464, allocations: 320.8 kB / 304.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.1475, allocations: 0.9776 MB / 305.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008438/0.1483, allocations: 1.914 MB / 307.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008821/0.1492, allocations: 1.199 MB / 308.8 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002611/0.1518, allocations: 4.241 MB / 313 MB, free: 7.539 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1518, allocations: 0 / 313 MB, free: 7.539 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1518, allocations: 0 / 313 MB, free: 7.539 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.108e-05/0.1519, allocations: 0 / 313 MB, free: 7.539 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.00455/0.1565, allocations: 5.391 MB / 318.4 MB, free: 2.188 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.1565, allocations: 8.031 kB / 318.4 MB, free: 2.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004687/0.1612, allocations: 2.319 MB / 320.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002493/0.1637, allocations: 1.985 MB / 322.7 MB, free: 14.01 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.1638, allocations: 230.2 kB / 322.9 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004129/0.1642, allocations: 293.4 kB / 323.2 MB, free: 13.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00728/0.1715, allocations: 5.583 MB / 328.8 MB, free: 7.242 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.132e-05/0.1716, allocations: 39.73 kB / 328.9 MB, free: 7.223 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003111/0.1719, allocations: 146.6 kB / 329 MB, free: 7.113 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001906/0.1738, allocations: 1.688 MB / 330.7 MB, free: 5.461 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006028/0.1799, allocations: 2.718 MB / 333.4 MB, free: 2.938 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02833/0.2082, allocations: 41.3 MB / 374.7 MB, free: 8.707 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003377/0.2116, allocations: 1.123 MB / 375.8 MB, free: 7.535 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005803/0.2121, allocations: 352.1 kB / 376.2 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004229/0.2164, allocations: 2.927 MB / 379.1 MB, free: 4.242 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.2164, allocations: 45.66 kB / 379.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=93): time 2.625e-06/0.2164, allocations: 4 kB / 379.1 MB, free: 4.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.007627/0.224, allocations: 5.388 MB / 384.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.2241, allocations: 136.5 kB / 384.7 MB, free: 14.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.2272, allocations: 3.553 MB / 388.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.2272, allocations: 41.7 kB / 388.3 MB, free: 10.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.2287, allocations: 3.407 MB / 391.7 MB, free: 7.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002693/0.229, allocations: 451.2 kB / 392.1 MB, free: 7.141 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/0.2302, allocations: 1.239 MB / 393.3 MB, free: 5.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.069e-05/0.2303, allocations: 480.8 kB / 393.8 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007645/0.231, allocations: 0.4989 MB / 394.3 MB, free: 4.918 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003294/0.2343, allocations: 6.205 MB / 400.5 MB, free: 12.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005104/0.2394, allocations: 7.389 MB / 407.9 MB, free: 2.043 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/0.2395, allocations: 40 kB / 407.9 MB, free: 2.004 MB / 362.7 MB Notification: Performance of matching and sorting (n=729) (initialization): time 0.006839/0.2464, allocations: 4.836 MB / 412.8 MB, free: 13.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.386e-05/0.2464, allocations: 64.03 kB / 412.8 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/0.2466, allocations: 144.9 kB / 413 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003842/0.247, allocations: 219.6 kB / 413.2 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002206/0.2492, allocations: 1.298 MB / 414.5 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.2504, allocations: 2.083 MB / 416.6 MB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00237/0.2528, allocations: 327.5 kB / 416.9 MB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003198/0.2531, allocations: 363.3 kB / 417.3 MB, free: 8.555 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (703): * Single equations (assignments): 699 * 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.001055/0.2542, allocations: 0.6456 MB / 417.9 MB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.2545, allocations: 329.9 kB / 418.2 MB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000756/0.2553, allocations: 0.5599 MB / 418.8 MB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.2553, allocations: 15.94 kB / 418.8 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2553, allocations: 0 / 418.8 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.2553, allocations: 3.984 kB / 418.8 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004641/0.26, allocations: 3.397 MB / 422.2 MB, free: 3.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.26, allocations: 4 kB / 422.2 MB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003767/0.2603, allocations: 156 kB / 422.4 MB, free: 3.367 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.2605, allocations: 51.61 kB / 422.4 MB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.2606, allocations: 16 kB / 422.4 MB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009068/0.2615, allocations: 1.826 MB / 424.2 MB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2615, allocations: 4 kB / 424.3 MB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.2629, allocations: 1.543 MB / 425.8 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003328/0.2632, allocations: 289.8 kB / 426.1 MB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/0.2634, allocations: 15.98 kB / 426.1 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005169/0.2639, allocations: 67.94 kB / 426.2 MB, free: 15.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.264, allocations: 63.83 kB / 426.2 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-05/0.264, allocations: 31.98 kB / 426.3 MB, free: 15.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001554/0.2656, allocations: 1.496 MB / 427.7 MB, free: 13.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2656, allocations: 0 / 427.7 MB, free: 13.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002577/0.2682, allocations: 0.8474 MB / 428.6 MB, free: 12.96 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (71): * Single equations (assignments): 67 * 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.0002909/0.2685, allocations: 159.2 kB / 428.8 MB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.2714, allocations: 2.493 MB / 431.2 MB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2714, allocations: 4 kB / 431.2 MB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003923/0.2718, allocations: 450.1 kB / 431.7 MB, free: 9.852 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.273, allocations: 367.5 kB / 432 MB, free: 9.504 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007857/0.2808, allocations: 6.513 MB / 438.6 MB, free: 2.883 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001161/0.282, allocations: 1.116 MB / 439.7 MB, free: 1.742 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002037/0.284, allocations: 1.513 MB / 441.2 MB, free: 232 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002965/0.2843, allocations: 204.5 kB / 441.4 MB, free: 28 kB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.2843, allocations: 3.938 kB / 441.4 MB, free: 24 kB / 394.7 MB Notification: Performance of Templates: time 0.1382/0.4225, allocations: 20.78 MB / 462.2 MB, free: 122.7 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.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.60201984224841]