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.0009697/0.0009697, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001534/0.001534, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9079/0.9079, allocations: 173.3 MB / 201.5 MB, free: 9.324 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.563e-06/1.563e-06, allocations: 3.938 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.418e-05/1.574e-05, allocations: 2.312 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.008323/0.008339, allocations: 10.82 MB / 278.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005188/0.01353, allocations: 3.746 MB / 282.6 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005789/0.01411, allocations: 83.56 kB / 282.7 MB, free: 8.008 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002627/0.01673, allocations: 2.881 MB / 285.6 MB, free: 5.117 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002241/0.01897, allocations: 1.94 MB / 287.5 MB, free: 3.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006696/0.01964, allocations: 0.6198 MB / 288.2 MB, free: 2.547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1177/0.1374, allocations: 3.943 MB / 292.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003516/0.1409, allocations: 3.102 MB / 295.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003125/0.144, allocations: 2.242 MB / 297.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002411/0.1464, allocations: 2.207 MB / 299.7 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000575/0.147, allocations: 325 kB / 300 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001331/0.1483, allocations: 1.003 MB / 301 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001147/0.1495, allocations: 1.98 MB / 303 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000916/0.1504, allocations: 1.233 MB / 304.2 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002961/0.1534, allocations: 4.385 MB / 308.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1534, allocations: 3.312 kB / 308.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1534, allocations: 0 / 308.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.545e-05/0.1534, allocations: 0 / 308.6 MB, free: 11.78 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.01032/0.1637, allocations: 5.679 MB / 314.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.1638, allocations: 11.98 kB / 314.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005126/0.1689, allocations: 2.337 MB / 316.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002385/0.1713, allocations: 2.031 MB / 318.6 MB, free: 4.879 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.1714, allocations: 228.8 kB / 318.9 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004277/0.1718, allocations: 297.9 kB / 319.1 MB, free: 4.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00853/0.1803, allocations: 6.095 MB / 325.2 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.8e-05/0.1804, allocations: 41.47 kB / 325.3 MB, free: 13.58 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003711/0.1808, allocations: 148.2 kB / 325.4 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002512/0.1833, allocations: 1.868 MB / 327.3 MB, free: 11.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008839/0.1922, allocations: 3.341 MB / 330.6 MB, free: 8.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03055/0.2227, allocations: 42.02 MB / 372.7 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006112/0.2288, allocations: 1.838 MB / 374.5 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006347/0.2295, allocations: 499.1 kB / 375 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/0.2297, allocations: 135.8 kB / 375.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.2297, allocations: 46.05 kB / 375.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 3.266e-06/0.2297, allocations: 4 kB / 375.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=133): time 0.02056/0.2503, allocations: 9.517 MB / 384.7 MB, free: 1.492 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.2504, allocations: 144.5 kB / 384.8 MB, free: 1.324 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.2535, allocations: 3.449 MB / 388.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.03e-05/0.2536, allocations: 45.7 kB / 388.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001503/0.2551, allocations: 3.333 MB / 391.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000409/0.2555, allocations: 0.587 MB / 392.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001089/0.2566, allocations: 1.275 MB / 393.5 MB, free: 8.625 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.2567, allocations: 484.7 kB / 394 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001036/0.2578, allocations: 0.581 MB / 394.6 MB, free: 7.562 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003348/0.2611, allocations: 6.094 MB / 400.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005055/0.2662, allocations: 7.39 MB / 408 MB, free: 5.203 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.144e-05/0.2662, allocations: 40 kB / 408.1 MB, free: 5.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.006636/0.2728, allocations: 5.43 MB / 413.5 MB, free: 15.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.981e-05/0.2729, allocations: 64 kB / 413.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/0.273, allocations: 136.1 kB / 413.7 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.2742, allocations: 0.616 MB / 414.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002236/0.2765, allocations: 1.333 MB / 415.7 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002967/0.2794, allocations: 3.233 MB / 418.9 MB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001919/0.2814, allocations: 339.6 kB / 419.2 MB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004045/0.2818, allocations: 372 kB / 419.6 MB, free: 9.531 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * 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 (702): * Single equations (assignments): 698 * 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.001045/0.2828, allocations: 0.6449 MB / 420.2 MB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003105/0.2831, allocations: 349.9 kB / 420.6 MB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/0.2852, allocations: 1.403 MB / 422 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/0.2853, allocations: 16 kB / 422 MB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.2853, allocations: 4 kB / 422 MB, free: 7.082 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.2853, allocations: 7.984 kB / 422 MB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006053/0.2913, allocations: 4.766 MB / 426.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2913, allocations: 3.938 kB / 426.8 MB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000529/0.2919, allocations: 227.6 kB / 427 MB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.2929, allocations: 436.5 kB / 427.4 MB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.642e-05/0.293, allocations: 43 kB / 427.5 MB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.117/0.41, allocations: 2.919 MB / 430.4 MB, free: 116.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.41, allocations: 5.797 kB / 430.4 MB, free: 116.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003843/0.4139, allocations: 2.398 MB / 432.8 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005752/0.4145, allocations: 299.5 kB / 433.1 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.4147, allocations: 20.48 kB / 433.1 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000757/0.4155, allocations: 107.7 kB / 433.2 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.4157, allocations: 102.4 kB / 433.3 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.005e-05/0.4158, allocations: 49.34 kB / 433.4 MB, free: 115.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002237/0.418, allocations: 1.469 MB / 434.8 MB, free: 115.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.418, allocations: 0 / 434.8 MB, free: 115.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003382/0.4214, allocations: 0.9762 MB / 435.8 MB, free: 115.3 MB / 378.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.0003522/0.4218, allocations: 181.8 kB / 436 MB, free: 115.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004485/0.4263, allocations: 2.813 MB / 438.8 MB, free: 114.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4263, allocations: 0 / 438.8 MB, free: 114.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007713/0.427, allocations: 0.6637 MB / 439.5 MB, free: 114.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001356/0.4284, allocations: 393.8 kB / 439.8 MB, free: 114.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008029/0.4364, allocations: 6.892 MB / 446.7 MB, free: 111.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008484/0.4373, allocations: 1.164 MB / 447.9 MB, free: 111.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002192/0.4395, allocations: 1.564 MB / 449.5 MB, free: 111.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/0.4399, allocations: 251.5 kB / 449.7 MB, free: 111.3 MB / 378.7 MB Notification: Performance of SimCode: time 2.334e-06/0.4399, allocations: 0 / 449.7 MB, free: 111.3 MB / 378.7 MB Notification: Performance of Templates: time 0.0445/0.4844, allocations: 29.53 MB / 479.2 MB, free: 87.61 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.8139997110702097]