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.0009158/0.0009158, allocations: 77.97 kB / 21.42 MB, free: 3.066 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.001666/0.001666, allocations: 172.8 kB / 24.82 MB, free: 9.277 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.9546/0.9546, allocations: 177.1 MB / 205.3 MB, free: 5.512 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 2.966e-06/2.966e-06, allocations: 0 / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.78e-05/4.077e-05, allocations: 2.312 kB / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.00993/0.009971, allocations: 10.4 MB / 283.8 MB, free: 6.871 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00597/0.01594, allocations: 3.718 MB / 287.5 MB, free: 3.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.01701, allocations: 75.62 kB / 287.6 MB, free: 3.066 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00289/0.0199, allocations: 2.85 MB / 290.4 MB, free: 212 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1166/0.1365, allocations: 1.857 MB / 292.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.1377, allocations: 0.6315 MB / 292.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004367/0.142, allocations: 3.98 MB / 296.9 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003839/0.1459, allocations: 3.082 MB / 300 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004749/0.1506, allocations: 2.293 MB / 302.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003627/0.1542, allocations: 2.093 MB / 304.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001121/0.1554, allocations: 314.1 kB / 304.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.1572, allocations: 0.9827 MB / 305.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001064/0.1583, allocations: 1.913 MB / 307.6 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001292/0.1596, allocations: 1.197 MB / 308.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00326/0.1629, allocations: 4.242 MB / 313 MB, free: 7.438 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1629, allocations: 0 / 313 MB, free: 7.438 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1629, allocations: 0 / 313 MB, free: 7.438 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001464/0.163, allocations: 0 / 313 MB, free: 7.438 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.005019/0.168, allocations: 5.245 MB / 318.3 MB, free: 2.492 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1681, allocations: 12.03 kB / 318.3 MB, free: 2.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002713/0.1708, allocations: 1.403 MB / 319.7 MB, free: 1.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/0.1726, allocations: 1.823 MB / 321.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.1727, allocations: 221.9 kB / 321.7 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003107/0.173, allocations: 300.7 kB / 322 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005484/0.1785, allocations: 5.12 MB / 327.1 MB, free: 9.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.053e-05/0.1786, allocations: 39.17 kB / 327.2 MB, free: 9.301 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002502/0.1789, allocations: 143.9 kB / 327.3 MB, free: 9.195 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00123/0.1801, allocations: 1.514 MB / 328.8 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003788/0.1839, allocations: 2.171 MB / 331 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02654/0.2104, allocations: 40.9 MB / 371.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.2127, allocations: 0.9957 MB / 372.9 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003881/0.2131, allocations: 298.1 kB / 373.2 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003759/0.2168, allocations: 2.792 MB / 376 MB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.2169, allocations: 45.66 kB / 376 MB, free: 8.523 MB / 330.7 MB Notification: Performance of pre-optimization done (n=93): time 3.156e-06/0.2169, allocations: 0 / 376 MB, free: 8.523 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.006087/0.2229, allocations: 2.61 MB / 378.6 MB, free: 5.879 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.223, allocations: 140.5 kB / 378.8 MB, free: 5.711 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002928/0.2259, allocations: 3.538 MB / 382.3 MB, free: 2.477 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.051e-05/0.226, allocations: 41.64 kB / 382.3 MB, free: 2.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001983/0.228, allocations: 3.427 MB / 385.8 MB, free: 14.97 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00044/0.2284, allocations: 456.9 kB / 386.2 MB, free: 14.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.2295, allocations: 1.266 MB / 387.5 MB, free: 13.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2296, allocations: 480.8 kB / 387.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008523/0.2305, allocations: 458.8 kB / 388.4 MB, free: 12.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003535/0.234, allocations: 6.175 MB / 394.6 MB, free: 3.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005189/0.2392, allocations: 7.301 MB / 401.9 MB, free: 9.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.912e-05/0.2393, allocations: 40 kB / 401.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=729) (initialization): time 0.005135/0.2444, allocations: 4.544 MB / 406.5 MB, free: 4.977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003072/0.2447, allocations: 64 kB / 406.5 MB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/0.2448, allocations: 136 kB / 406.7 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.2451, allocations: 219.6 kB / 406.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001965/0.2471, allocations: 1.283 MB / 408.1 MB, free: 3.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.2482, allocations: 2.041 MB / 410.2 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002262/0.2505, allocations: 263.7 kB / 410.4 MB, free: 0.8594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002636/0.2508, allocations: 321.9 kB / 410.8 MB, free: 0.5469 MB / 362.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.001046/0.2518, allocations: 0.6499 MB / 411.4 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003806/0.2522, allocations: 329.9 kB / 411.7 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006617/0.2528, allocations: 0.5364 MB / 412.3 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.2529, allocations: 12 kB / 412.3 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2529, allocations: 4 kB / 412.3 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.2529, allocations: 3.984 kB / 412.3 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004525/0.2574, allocations: 3.353 MB / 415.6 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.2574, allocations: 4 kB / 415.6 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.2577, allocations: 127.8 kB / 415.8 MB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001448/0.2579, allocations: 51.56 kB / 415.8 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.2579, allocations: 19.98 kB / 415.8 MB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008901/0.2588, allocations: 1.796 MB / 417.6 MB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2588, allocations: 4 kB / 417.6 MB, free: 9.441 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/0.2602, allocations: 1.459 MB / 419.1 MB, free: 7.922 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003993/0.2606, allocations: 285.8 kB / 419.4 MB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.2607, allocations: 15.98 kB / 419.4 MB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004326/0.2612, allocations: 16 kB / 419.4 MB, free: 7.609 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.2613, allocations: 59.78 kB / 419.5 MB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/0.2613, allocations: 27.98 kB / 419.5 MB, free: 7.523 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001281/0.2626, allocations: 1.402 MB / 420.9 MB, free: 6.133 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2626, allocations: 0 / 420.9 MB, free: 6.133 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0037/0.2663, allocations: 0.8358 MB / 421.7 MB, free: 5.297 MB / 378.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.0003929/0.2667, allocations: 163 kB / 421.9 MB, free: 5.129 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00345/0.2702, allocations: 2.377 MB / 424.3 MB, free: 2.766 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.2702, allocations: 3.938 kB / 424.3 MB, free: 2.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004201/0.2706, allocations: 415.6 kB / 424.7 MB, free: 2.336 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001407/0.272, allocations: 382.1 kB / 425.1 MB, free: 1.973 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008515/0.2805, allocations: 6.487 MB / 431.5 MB, free: 11.38 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009662/0.2815, allocations: 1.12 MB / 432.7 MB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001136/0.2826, allocations: 447.6 kB / 433.1 MB, free: 9.797 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005875/0.2832, allocations: 0.5137 MB / 433.6 MB, free: 9.281 MB / 394.7 MB Notification: Performance of SimCode: time 1.794e-06/0.2832, allocations: 0 / 433.6 MB, free: 9.281 MB / 394.7 MB Notification: Performance of Templates: time 0.1466/0.4298, allocations: 22.44 MB / 456.1 MB, free: 126.4 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.579668104182929]