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.001916/0.001916, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.001952/0.001952, allocations: 165.3 kB / 24.27 MB, free: 152 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 1.605/1.605, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.523e-06/1.523e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.761e-05/2.913e-05, allocations: 6.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01501/0.01504, allocations: 10.65 MB / 283 MB, free: 7.141 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008912/0.02395, allocations: 3.742 MB / 286.7 MB, free: 3.387 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001885/0.02583, allocations: 75.69 kB / 286.8 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005778/0.03161, allocations: 2.885 MB / 289.7 MB, free: 428 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1407/0.1724, allocations: 1.851 MB / 291.5 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001572/0.1739, allocations: 0.6314 MB / 292.1 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006293/0.1802, allocations: 3.973 MB / 296.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004456/0.1847, allocations: 3.096 MB / 299.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003955/0.1886, allocations: 2.202 MB / 301.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003783/0.1924, allocations: 2.178 MB / 303.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007929/0.1932, allocations: 322.5 kB / 303.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001993/0.1952, allocations: 0.9853 MB / 304.9 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001443/0.1966, allocations: 1.931 MB / 306.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001437/0.1981, allocations: 1.208 MB / 308 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005861/0.2039, allocations: 6.723 MB / 314.8 MB, free: 5.359 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.204, allocations: 4 kB / 314.8 MB, free: 5.355 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.204, allocations: 0 / 314.8 MB, free: 5.355 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001817/0.2041, allocations: 0 / 314.8 MB, free: 5.355 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.01715/0.2213, allocations: 6.023 MB / 320.8 MB, free: 15.37 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.2213, allocations: 8.031 kB / 320.8 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008237/0.2296, allocations: 2.319 MB / 323.1 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005822/0.2354, allocations: 2.033 MB / 325.1 MB, free: 11.15 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.2356, allocations: 218.9 kB / 325.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008425/0.2365, allocations: 304 kB / 325.7 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01728/0.2537, allocations: 6.461 MB / 332.1 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/0.2539, allocations: 44.95 kB / 332.2 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004387/0.2543, allocations: 142.1 kB / 332.3 MB, free: 3.375 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003614/0.2579, allocations: 1.812 MB / 334.1 MB, free: 1.594 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01425/0.2722, allocations: 3.667 MB / 337.8 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06137/0.3335, allocations: 45 MB / 382.8 MB, free: 240 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01249/0.346, allocations: 1.942 MB / 384.7 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.3474, allocations: 0.5379 MB / 385.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005179/0.348, allocations: 126.8 kB / 385.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.598e-05/0.348, allocations: 47.64 kB / 385.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 3.978e-06/0.348, allocations: 0 / 385.4 MB, free: 13.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=133): time 0.04196/0.39, allocations: 9.697 MB / 395.1 MB, free: 3.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.3901, allocations: 141.2 kB / 395.3 MB, free: 3.602 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006792/0.3969, allocations: 4.364 MB / 399.6 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002582/0.3971, allocations: 41.7 kB / 399.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003446/0.4006, allocations: 3.495 MB / 403.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009974/0.4016, allocations: 0.6213 MB / 403.8 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002284/0.4039, allocations: 1.49 MB / 405.3 MB, free: 9.578 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002434/0.4041, allocations: 476.8 kB / 405.7 MB, free: 9.109 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/0.4058, allocations: 0.6668 MB / 406.4 MB, free: 8.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007324/0.4131, allocations: 6.326 MB / 412.7 MB, free: 15.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01058/0.4237, allocations: 7.692 MB / 420.4 MB, free: 5.383 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001529/0.4239, allocations: 40 kB / 420.5 MB, free: 5.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=738) (initialization): time 0.01466/0.4385, allocations: 5.573 MB / 426 MB, free: 15.76 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/0.4386, allocations: 60 kB / 426.1 MB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001981/0.4388, allocations: 132 kB / 426.2 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.4414, allocations: 0.6342 MB / 426.9 MB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004504/0.4459, allocations: 1.322 MB / 428.2 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005684/0.4516, allocations: 3.362 MB / 431.5 MB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004338/0.4559, allocations: 339.7 kB / 431.9 MB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009599/0.4569, allocations: 375.9 kB / 432.2 MB, free: 9.434 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * 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 (699): * Single equations (assignments): 695 * 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.002003/0.4589, allocations: 0.7348 MB / 433 MB, free: 8.688 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007922/0.4597, allocations: 345.9 kB / 433.3 MB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004568/0.4642, allocations: 1.485 MB / 434.8 MB, free: 6.848 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/0.4642, allocations: 16 kB / 434.8 MB, free: 6.832 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.4643, allocations: 4 kB / 434.8 MB, free: 6.828 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.4643, allocations: 11.92 kB / 434.8 MB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01433/0.4786, allocations: 5.708 MB / 440.5 MB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/0.4786, allocations: 0 / 440.5 MB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.4797, allocations: 219.7 kB / 440.7 MB, free: 0.8555 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002065/0.4818, allocations: 453 kB / 441.2 MB, free: 420 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.4819, allocations: 39.97 kB / 441.2 MB, free: 380 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1581/0.6401, allocations: 3.035 MB / 444.3 MB, free: 122.6 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.6401, allocations: 2.125 kB / 444.3 MB, free: 122.6 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006313/0.6464, allocations: 2.615 MB / 446.9 MB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.6477, allocations: 293.2 kB / 447.2 MB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003778/0.6481, allocations: 30.55 kB / 447.2 MB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.6495, allocations: 101.3 kB / 447.3 MB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/0.6499, allocations: 99.14 kB / 447.4 MB, free: 121.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.65, allocations: 51.98 kB / 447.4 MB, free: 121.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003428/0.6534, allocations: 1.752 MB / 449.2 MB, free: 121.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.6534, allocations: 1.094 kB / 449.2 MB, free: 121.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005784/0.6592, allocations: 0.9445 MB / 450.1 MB, free: 121.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (101): * Single equations (assignments): 97 * 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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005304/0.6598, allocations: 176.6 kB / 450.3 MB, free: 121.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006718/0.6665, allocations: 3.145 MB / 453.5 MB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.6665, allocations: 3.344 kB / 453.5 MB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.6679, allocations: 0.7526 MB / 454.2 MB, free: 120.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/0.6702, allocations: 395.3 kB / 454.6 MB, free: 120.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.6806, allocations: 6.878 MB / 461.5 MB, free: 118.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0022/0.6828, allocations: 2.288 MB / 463.8 MB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003122/0.6859, allocations: 1.555 MB / 465.3 MB, free: 117.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006027/0.6865, allocations: 258.1 kB / 465.6 MB, free: 117.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/0.6865, allocations: 0 / 465.6 MB, free: 117.7 MB / 394.7 MB Notification: Performance of Templates: time 0.05067/0.7372, allocations: 29.15 MB / 494.7 MB, free: 92.8 MB / 394.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.409373324015178]