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.001035/0.001035, allocations: 80.41 kB / 22.21 MB, free: 2.285 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.001193/0.001193, allocations: 166.4 kB / 25.61 MB, free: 8.594 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.9237/0.9237, allocations: 177.1 MB / 206 MB, free: 4.469 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.953e-06/1.953e-06, allocations: 0 / 274.2 MB, free: 4.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.752e-05/2.948e-05, allocations: 6.25 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.00969/0.009719, allocations: 10.4 MB / 284.6 MB, free: 10 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008039/0.01776, allocations: 3.733 MB / 288.3 MB, free: 6.266 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001973/0.01973, allocations: 75.62 kB / 288.4 MB, free: 6.191 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003783/0.02351, allocations: 2.835 MB / 291.2 MB, free: 3.348 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004657/0.02817, allocations: 1.874 MB / 293.1 MB, free: 1.465 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001385/0.02956, allocations: 0.6392 MB / 293.7 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005638/0.03519, allocations: 3.974 MB / 297.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004443/0.03964, allocations: 3.088 MB / 300.8 MB, free: 9.688 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004787/0.04442, allocations: 2.296 MB / 303.1 MB, free: 7.387 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003474/0.0479, allocations: 2.089 MB / 305.2 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008186/0.04872, allocations: 316 kB / 305.5 MB, free: 4.984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001994/0.05071, allocations: 0.9829 MB / 306.5 MB, free: 4 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001826/0.05254, allocations: 1.913 MB / 308.4 MB, free: 2.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002023/0.05456, allocations: 1.195 MB / 309.6 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006641/0.0612, allocations: 4.238 MB / 313.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.06121, allocations: 0 / 313.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.06121, allocations: 0 / 313.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001732/0.06138, allocations: 0 / 313.8 MB, free: 12.63 MB / 298.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.009384/0.07077, allocations: 5.248 MB / 319.1 MB, free: 7.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.07082, allocations: 8.031 kB / 319.1 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004358/0.07518, allocations: 1.411 MB / 320.5 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002966/0.07814, allocations: 1.813 MB / 322.3 MB, free: 4.031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/0.07831, allocations: 225.8 kB / 322.5 MB, free: 3.809 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004764/0.07879, allocations: 295.8 kB / 322.8 MB, free: 3.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008081/0.08687, allocations: 5.119 MB / 327.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.08699, allocations: 39.64 kB / 328 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003504/0.08734, allocations: 143.9 kB / 328.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001822/0.08916, allocations: 1.513 MB / 329.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005814/0.09497, allocations: 2.172 MB / 331.8 MB, free: 9.602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2079/0.3029, allocations: 40.89 MB / 372.7 MB, free: 45.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002876/0.3057, allocations: 0.9893 MB / 373.7 MB, free: 45.22 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005174/0.3063, allocations: 300.2 kB / 374 MB, free: 45.17 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004722/0.311, allocations: 2.802 MB / 376.8 MB, free: 44.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.311, allocations: 44.97 kB / 376.8 MB, free: 44.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=93): time 3.606e-06/0.311, allocations: 0 / 376.8 MB, free: 44.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=94): time 0.006967/0.318, allocations: 2.598 MB / 379.4 MB, free: 43.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.318, allocations: 139.5 kB / 379.5 MB, free: 43.47 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003611/0.3216, allocations: 3.545 MB / 383.1 MB, free: 42.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.735e-05/0.3217, allocations: 38.45 kB / 383.1 MB, free: 42.9 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001762/0.3235, allocations: 3.434 MB / 386.6 MB, free: 40.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004483/0.3239, allocations: 461.4 kB / 387 MB, free: 40.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001084/0.325, allocations: 1.257 MB / 388.3 MB, free: 40.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.353e-05/0.3251, allocations: 480.1 kB / 388.7 MB, free: 40.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008771/0.3259, allocations: 462 kB / 389.2 MB, free: 40.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002675/0.3286, allocations: 6.177 MB / 395.4 MB, free: 32.3 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005002/0.3336, allocations: 7.297 MB / 402.7 MB, free: 24.19 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001411/0.3338, allocations: 40 kB / 402.7 MB, free: 24.19 MB / 330.7 MB Notification: Performance of matching and sorting (n=729) (initialization): time 0.006691/0.3404, allocations: 4.528 MB / 407.2 MB, free: 20.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.834e-05/0.3405, allocations: 74.25 kB / 407.3 MB, free: 20.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000133/0.3406, allocations: 136 kB / 407.4 MB, free: 20.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/0.341, allocations: 225.3 kB / 407.7 MB, free: 19.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002146/0.3431, allocations: 1.276 MB / 408.9 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001009/0.3442, allocations: 2.048 MB / 411 MB, free: 16.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002985/0.3471, allocations: 263.7 kB / 411.2 MB, free: 16.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003036/0.3474, allocations: 320 kB / 411.5 MB, free: 15.98 MB / 330.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.001226/0.3487, allocations: 0.6523 MB / 412.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005063/0.3492, allocations: 325.9 kB / 412.5 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006929/0.3499, allocations: 0.5248 MB / 413 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.3499, allocations: 12 kB / 413.1 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.3499, allocations: 4 kB / 413.1 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.3499, allocations: 7.922 kB / 413.1 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004648/0.3545, allocations: 3.359 MB / 416.4 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.3546, allocations: 4 kB / 416.4 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003509/0.3549, allocations: 131.8 kB / 416.6 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.3551, allocations: 41.28 kB / 416.6 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.758e-05/0.3551, allocations: 20.2 kB / 416.6 MB, free: 10.81 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007109/0.3558, allocations: 1.794 MB / 418.4 MB, free: 8.902 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.3558, allocations: 4 kB / 418.4 MB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.3573, allocations: 1.461 MB / 419.9 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004878/0.3577, allocations: 281.8 kB / 420.1 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001931/0.3579, allocations: 16 kB / 420.2 MB, free: 7.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/0.3584, allocations: 19.94 kB / 420.2 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3585, allocations: 55.84 kB / 420.2 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.201e-05/0.3585, allocations: 35.22 kB / 420.3 MB, free: 6.988 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0012/0.3597, allocations: 1.398 MB / 421.7 MB, free: 5.602 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3597, allocations: 0 / 421.7 MB, free: 5.602 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003633/0.3634, allocations: 0.8397 MB / 422.5 MB, free: 4.762 MB / 330.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.0003414/0.3637, allocations: 166.2 kB / 422.7 MB, free: 4.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003414/0.3671, allocations: 2.375 MB / 425 MB, free: 2.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/0.3671, allocations: 0 / 425 MB, free: 2.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004364/0.3676, allocations: 419.5 kB / 425.5 MB, free: 1.789 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.3694, allocations: 371.9 kB / 425.8 MB, free: 1.453 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/0.3813, allocations: 6.489 MB / 432.3 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/0.3829, allocations: 1.119 MB / 433.4 MB, free: 9.742 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001561/0.3844, allocations: 447 kB / 433.9 MB, free: 9.309 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006783/0.3851, allocations: 0.5176 MB / 434.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of SimCode: time 3.266e-06/0.3851, allocations: 0 / 434.4 MB, free: 8.789 MB / 346.7 MB Notification: Performance of Templates: time 0.04678/0.4319, allocations: 22.91 MB / 457.3 MB, free: 2.379 MB / 362.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: 4.231793812010437]