Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.00139/0.00139, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.000924/0.000924, allocations: 149.4 kB / 24.8 MB, free: 8.941 MB / 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.9096/0.9096, allocations: 173.3 MB / 201.4 MB, free: 9.23 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.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.259e-05, allocations: 6.25 kB / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008443/0.008465, allocations: 10.53 MB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006795/0.01526, allocations: 3.726 MB / 282.7 MB, free: 7.895 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002009/0.01727, allocations: 75.62 kB / 282.7 MB, free: 7.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.02055, allocations: 2.838 MB / 285.6 MB, free: 4.973 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00428/0.02483, allocations: 1.944 MB / 287.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.0261, allocations: 0.6315 MB / 288.1 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1275/0.1536, allocations: 3.938 MB / 292.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004235/0.1578, allocations: 3.106 MB / 295.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004655/0.1625, allocations: 2.329 MB / 297.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003898/0.1664, allocations: 2.117 MB / 299.6 MB, free: 15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001089/0.1675, allocations: 316.6 kB / 299.9 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001939/0.1694, allocations: 1 MB / 300.9 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001528/0.1709, allocations: 1.966 MB / 302.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001814/0.1728, allocations: 1.226 MB / 304.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004756/0.1775, allocations: 4.353 MB / 308.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1775, allocations: 0 / 308.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1775, allocations: 0 / 308.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002093/0.1777, allocations: 2.312 kB / 308.5 MB, free: 12.25 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: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.006918/0.1847, allocations: 5.31 MB / 313.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1847, allocations: 11.58 kB / 313.8 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00306/0.1878, allocations: 1.416 MB / 315.2 MB, free: 8.352 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/0.1899, allocations: 1.825 MB / 317.1 MB, free: 6.633 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.974e-05/0.19, allocations: 225.2 kB / 317.3 MB, free: 6.445 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002963/0.1903, allocations: 297.5 kB / 317.6 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004733/0.195, allocations: 5.188 MB / 322.8 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.517e-05/0.1951, allocations: 39.95 kB / 322.8 MB, free: 500 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002482/0.1953, allocations: 143.6 kB / 322.9 MB, free: 392 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00133/0.1967, allocations: 1.572 MB / 324.5 MB, free: 14.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004015/0.2007, allocations: 2.202 MB / 326.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0272/0.2279, allocations: 41.25 MB / 368 MB, free: 3.438 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002246/0.2301, allocations: 0.9757 MB / 368.9 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003776/0.2305, allocations: 304.6 kB / 369.2 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003635/0.2341, allocations: 2.822 MB / 372 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.2342, allocations: 49.09 kB / 372.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=93): time 4.137e-06/0.2342, allocations: 4 kB / 372.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.005847/0.24, allocations: 2.61 MB / 374.7 MB, free: 12.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.2401, allocations: 144 kB / 374.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00305/0.2431, allocations: 3.551 MB / 378.4 MB, free: 9.484 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.413e-05/0.2432, allocations: 40.36 kB / 378.4 MB, free: 9.441 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/0.2448, allocations: 3.474 MB / 381.9 MB, free: 6.121 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.245, allocations: 461.1 kB / 382.4 MB, free: 5.691 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001103/0.2461, allocations: 1.267 MB / 383.6 MB, free: 4.504 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.2462, allocations: 480.8 kB / 384.1 MB, free: 4.031 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007499/0.247, allocations: 458.8 kB / 384.6 MB, free: 3.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003244/0.2502, allocations: 6.208 MB / 390.8 MB, free: 10.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005019/0.2553, allocations: 7.328 MB / 398.1 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/0.2554, allocations: 43.94 kB / 398.1 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.007055/0.2624, allocations: 4.568 MB / 402.7 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.306e-05/0.2625, allocations: 64 kB / 402.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/0.2626, allocations: 136 kB / 402.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000368/0.263, allocations: 220.1 kB / 403.1 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002701/0.2657, allocations: 1.29 MB / 404.4 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.267, allocations: 2.044 MB / 406.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003128/0.2702, allocations: 263.7 kB / 406.7 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003356/0.2705, allocations: 320 kB / 407 MB, free: 7.875 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.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 (706): * Single equations (assignments): 702 * 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.001195/0.2717, allocations: 0.6496 MB / 407.7 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004318/0.2721, allocations: 325.9 kB / 408 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008532/0.273, allocations: 0.529 MB / 408.5 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.273, allocations: 16 kB / 408.5 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.273, allocations: 0 / 408.5 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.273, allocations: 11.98 kB / 408.5 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005527/0.2785, allocations: 3.408 MB / 411.9 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.2785, allocations: 0 / 411.9 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004602/0.279, allocations: 131.8 kB / 412.1 MB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001781/0.2792, allocations: 43.86 kB / 412.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/0.2792, allocations: 24 kB / 412.1 MB, free: 2.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.2804, allocations: 1.78 MB / 413.9 MB, free: 0.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.2804, allocations: 7.938 kB / 413.9 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00159/0.282, allocations: 1.463 MB / 415.4 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004727/0.2825, allocations: 285.8 kB / 415.7 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002418/0.2827, allocations: 19.92 kB / 415.7 MB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006542/0.2834, allocations: 16 kB / 415.7 MB, free: 14.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.2835, allocations: 55.84 kB / 415.8 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.678e-05/0.2835, allocations: 27.98 kB / 415.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001811/0.2853, allocations: 1.399 MB / 417.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2853, allocations: 0 / 417.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003782/0.2891, allocations: 0.8671 MB / 418.1 MB, free: 12.57 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.0003532/0.2895, allocations: 182.8 kB / 418.2 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004403/0.2939, allocations: 2.375 MB / 420.6 MB, free: 10 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.2939, allocations: 448 / 420.6 MB, free: 10 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007004/0.2946, allocations: 426.9 kB / 421 MB, free: 9.562 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.2968, allocations: 375.1 kB / 421.4 MB, free: 9.211 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/0.308, allocations: 6.588 MB / 428 MB, free: 2.508 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/0.3096, allocations: 1.137 MB / 429.1 MB, free: 1.344 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001517/0.3111, allocations: 468.2 kB / 429.6 MB, free: 0.8867 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007474/0.3119, allocations: 0.5137 MB / 430.1 MB, free: 380 kB / 378.7 MB Notification: Performance of SimCode: time 1.883e-06/0.3119, allocations: 0 / 430.1 MB, free: 380 kB / 378.7 MB Notification: Performance of Templates: time 0.1539/0.4658, allocations: 22.75 MB / 452.8 MB, free: 101 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.637041182257235]