Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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.001391/0.001391, allocations: 79.75 kB / 21.18 MB, free: 3.379 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.001526/0.001526, allocations: 161 kB / 24.56 MB, free: 12 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 0.9099/0.9099, allocations: 177.1 MB / 205 MB, free: 5.59 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.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.07e-05/2.25e-05, allocations: 2.312 kB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01383/0.01385, allocations: 12.67 MB / 285.6 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008235/0.02208, allocations: 4.231 MB / 289.9 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.02342, allocations: 95.56 kB / 290 MB, free: 464 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1172/0.1407, allocations: 3.979 MB / 293.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003891/0.1446, allocations: 2.118 MB / 296.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1458, allocations: 0.7603 MB / 296.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004271/0.15, allocations: 4.632 MB / 301.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003515/0.1535, allocations: 3.988 MB / 305.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002958/0.1565, allocations: 2.911 MB / 308.4 MB, free: 9.293 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002196/0.1587, allocations: 2.5 MB / 310.9 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006105/0.1593, allocations: 402.2 kB / 311.3 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.1606, allocations: 1.069 MB / 312.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.1616, allocations: 2.348 MB / 314.7 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001418/0.163, allocations: 1.508 MB / 316.2 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003532/0.1665, allocations: 5.058 MB / 321.2 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1665, allocations: 0 / 321.2 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1665, allocations: 0 / 321.2 MB, free: 15.31 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000133/0.1667, allocations: 0 / 321.2 MB, free: 15.31 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.007936/0.1746, allocations: 6.58 MB / 327.8 MB, free: 8.777 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.1746, allocations: 8.031 kB / 327.8 MB, free: 8.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004312/0.179, allocations: 2.502 MB / 330.3 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002415/0.1814, allocations: 2.387 MB / 332.7 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.1815, allocations: 289.7 kB / 333 MB, free: 3.809 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003976/0.1819, allocations: 390 kB / 333.4 MB, free: 3.465 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007311/0.1892, allocations: 6.815 MB / 340.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.351e-05/0.1893, allocations: 51.62 kB / 340.2 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002857/0.1896, allocations: 183.3 kB / 340.4 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001562/0.1911, allocations: 1.962 MB / 342.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006046/0.1972, allocations: 3.446 MB / 345.8 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02892/0.2261, allocations: 47.79 MB / 393.6 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003941/0.23, allocations: 1.791 MB / 395.4 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009553/0.231, allocations: 0.5724 MB / 396 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005135/0.2361, allocations: 4.619 MB / 400.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.2362, allocations: 54.33 kB / 400.6 MB, free: 14.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=146): time 3.627e-06/0.2362, allocations: 0 / 400.6 MB, free: 14.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=156): time 0.01594/0.2521, allocations: 9.909 MB / 410.6 MB, free: 4.215 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.2522, allocations: 149.5 kB / 410.7 MB, free: 4.039 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003052/0.2552, allocations: 3.88 MB / 414.6 MB, free: 180 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.022e-05/0.2553, allocations: 45.7 kB / 414.6 MB, free: 128 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001869/0.2572, allocations: 3.913 MB / 418.5 MB, free: 12.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004027/0.2576, allocations: 0.6811 MB / 419.2 MB, free: 11.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001116/0.2587, allocations: 1.408 MB / 420.6 MB, free: 10.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.816e-05/0.2588, allocations: 480.8 kB / 421.1 MB, free: 9.664 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009653/0.2597, allocations: 0.649 MB / 421.7 MB, free: 9.012 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003721/0.2635, allocations: 6.872 MB / 428.6 MB, free: 15.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005731/0.2692, allocations: 8.325 MB / 436.9 MB, free: 4.055 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.32e-05/0.2692, allocations: 40 kB / 437 MB, free: 4.016 MB / 394.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.1181/0.3874, allocations: 5.67 MB / 442.7 MB, free: 118.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.3875, allocations: 73.88 kB / 442.7 MB, free: 118.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001819/0.3877, allocations: 149.3 kB / 442.9 MB, free: 118.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000638/0.3883, allocations: 299.7 kB / 443.2 MB, free: 118.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003129/0.3914, allocations: 1.553 MB / 444.7 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.3929, allocations: 2.244 MB / 447 MB, free: 116.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002498/0.3954, allocations: 377.4 kB / 447.3 MB, free: 116.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003748/0.3958, allocations: 407.8 kB / 447.7 MB, free: 116.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 682 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (821): * Single equations (assignments): 817 * 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.001137/0.3969, allocations: 0.7118 MB / 448.4 MB, free: 116.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000362/0.3973, allocations: 396.2 kB / 448.8 MB, free: 116.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.3989, allocations: 1.131 MB / 450 MB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.3989, allocations: 18.52 kB / 450 MB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.3989, allocations: 9.219 kB / 450 MB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.3989, allocations: 10.47 kB / 450 MB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007143/0.4061, allocations: 5.272 MB / 455.3 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.4061, allocations: 10.34 kB / 455.3 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006665/0.4067, allocations: 282.9 kB / 455.6 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002786/0.407, allocations: 108.3 kB / 455.7 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.287e-05/0.4071, allocations: 40.77 kB / 455.7 MB, free: 115.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009116/0.408, allocations: 1.972 MB / 457.7 MB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.408, allocations: 3.781 kB / 457.7 MB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.4101, allocations: 2.389 MB / 460.1 MB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004854/0.4106, allocations: 0.4927 MB / 460.6 MB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/0.4108, allocations: 34.41 kB / 460.6 MB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000627/0.4114, allocations: 102.9 kB / 460.7 MB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.4116, allocations: 115.1 kB / 460.8 MB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.993e-05/0.4116, allocations: 53.16 kB / 460.9 MB, free: 112.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001427/0.4131, allocations: 1.645 MB / 462.5 MB, free: 112.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4131, allocations: 0 / 462.5 MB, free: 112.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002808/0.4159, allocations: 1.038 MB / 463.5 MB, free: 112.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (141): * Single equations (assignments): 137 * 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.0003272/0.4162, allocations: 184.4 kB / 463.7 MB, free: 112.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003362/0.4196, allocations: 3.103 MB / 466.8 MB, free: 111.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4196, allocations: 1.312 kB / 466.8 MB, free: 111.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007579/0.4203, allocations: 0.739 MB / 467.6 MB, free: 111.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.4216, allocations: 428.7 kB / 468 MB, free: 111.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007394/0.429, allocations: 8.389 MB / 476.4 MB, free: 105.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008452/0.4298, allocations: 1.373 MB / 477.7 MB, free: 104.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002009/0.4318, allocations: 1.706 MB / 479.4 MB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003783/0.4322, allocations: 244.2 kB / 479.7 MB, free: 103.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.343e-06/0.4322, allocations: 0 / 479.7 MB, free: 103.5 MB / 394.7 MB Notification: Performance of Templates: time 0.03706/0.4693, allocations: 28.27 MB / 0.496 GB, free: 76.51 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.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.9202485140413046]