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.001092/0.001092, allocations: 80.31 kB / 22.21 MB, free: 2.293 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.001167/0.001167, allocations: 170.5 kB / 25.61 MB, free: 8.914 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.9928/0.9928, allocations: 177.1 MB / 206 MB, free: 4.504 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.844e-06/1.844e-06, allocations: 0 / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.401e-05/2.585e-05, allocations: 2.312 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01421/0.01423, allocations: 12.27 MB / 286.5 MB, free: 8.105 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01038/0.02462, allocations: 4.191 MB / 290.7 MB, free: 3.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/0.02648, allocations: 95.56 kB / 290.7 MB, free: 3.816 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00439/0.03087, allocations: 3.917 MB / 294.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003629/0.0345, allocations: 2.122 MB / 296.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.03572, allocations: 0.7562 MB / 297.5 MB, free: 13 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004322/0.04004, allocations: 4.637 MB / 302.2 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003523/0.04356, allocations: 3.995 MB / 306.2 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002975/0.04654, allocations: 2.92 MB / 309.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00237/0.0489, allocations: 2.482 MB / 311.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005461/0.04945, allocations: 404 kB / 312 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001934/0.05139, allocations: 1.069 MB / 313 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001563/0.05295, allocations: 2.341 MB / 315.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001378/0.05433, allocations: 1.507 MB / 316.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004718/0.05904, allocations: 5.056 MB / 321.9 MB, free: 4.469 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.05905, allocations: 0 / 321.9 MB, free: 4.469 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.05905, allocations: 0 / 321.9 MB, free: 4.469 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.433e-05/0.05915, allocations: 0 / 321.9 MB, free: 4.469 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: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.007692/0.06684, allocations: 6.384 MB / 328.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.06689, allocations: 8.031 kB / 328.3 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003506/0.0704, allocations: 1.593 MB / 329.9 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.07277, allocations: 2.185 MB / 332.1 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.07293, allocations: 291.6 kB / 332.4 MB, free: 9.891 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004285/0.07336, allocations: 395.7 kB / 332.8 MB, free: 9.504 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006393/0.07975, allocations: 6.158 MB / 338.9 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.251e-05/0.07984, allocations: 47.58 kB / 339 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003059/0.08015, allocations: 175.9 kB / 339.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001506/0.08166, allocations: 1.796 MB / 341 MB, free: 316 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0043/0.08596, allocations: 2.699 MB / 343.7 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1972/0.2831, allocations: 47.25 MB / 390.9 MB, free: 39.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00475/0.2879, allocations: 1.561 MB / 392.5 MB, free: 39.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006464/0.2885, allocations: 486.2 kB / 392.9 MB, free: 39.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005875/0.2944, allocations: 4.302 MB / 397.2 MB, free: 38.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.2944, allocations: 60.55 kB / 397.3 MB, free: 38.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=146): time 3.357e-06/0.2944, allocations: 0.75 kB / 397.3 MB, free: 38.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=156): time 0.01705/0.3115, allocations: 6.062 MB / 403.4 MB, free: 36.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.3115, allocations: 146.2 kB / 403.5 MB, free: 36.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006394/0.3179, allocations: 3.877 MB / 407.4 MB, free: 34.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.425e-05/0.318, allocations: 46.7 kB / 407.4 MB, free: 34.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004513/0.3225, allocations: 3.945 MB / 411.4 MB, free: 30.72 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003837/0.3229, allocations: 0.6825 MB / 412.1 MB, free: 30.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/0.3241, allocations: 1.444 MB / 413.5 MB, free: 28.58 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.034e-05/0.3241, allocations: 476.8 kB / 414 MB, free: 28.11 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004017/0.3282, allocations: 0.5826 MB / 414.5 MB, free: 27.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003088/0.3312, allocations: 6.84 MB / 421.4 MB, free: 17.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004886/0.3361, allocations: 8.163 MB / 429.6 MB, free: 7.203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.19e-05/0.3362, allocations: 48 kB / 429.6 MB, free: 7.156 MB / 330.7 MB Notification: Performance of matching and sorting (n=847) (initialization): time 0.005965/0.3422, allocations: 5.237 MB / 434.8 MB, free: 1.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.348e-05/0.3422, allocations: 74.28 kB / 434.9 MB, free: 1.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001091/0.3423, allocations: 152 kB / 435.1 MB, free: 1.691 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004178/0.3427, allocations: 259.6 kB / 435.3 MB, free: 1.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002916/0.3457, allocations: 1.489 MB / 436.8 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001746/0.3474, allocations: 2.152 MB / 439 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002755/0.3502, allocations: 295.7 kB / 439.2 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003943/0.3506, allocations: 356 kB / 439.6 MB, free: 13.04 MB / 346.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.001195/0.3517, allocations: 0.7119 MB / 440.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004624/0.3522, allocations: 401.5 kB / 440.7 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001599/0.3538, allocations: 0.9836 MB / 441.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-05/0.3538, allocations: 16 kB / 441.7 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.3538, allocations: 7.938 kB / 441.7 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.3539, allocations: 11.97 kB / 441.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007963/0.3618, allocations: 5.009 MB / 446.7 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.3618, allocations: 8.656 kB / 446.7 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008521/0.3627, allocations: 259.6 kB / 447 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002945/0.363, allocations: 71.14 kB / 447.1 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.072e-05/0.3631, allocations: 31.94 kB / 447.1 MB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.3644, allocations: 1.874 MB / 449 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.3644, allocations: 11.94 kB / 449 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/0.3669, allocations: 2.18 MB / 451.1 MB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007126/0.3676, allocations: 461.3 kB / 451.6 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/0.3679, allocations: 28 kB / 451.6 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008379/0.3687, allocations: 37.77 kB / 451.7 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3689, allocations: 112.6 kB / 451.8 MB, free: 484 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.545e-05/0.369, allocations: 39.98 kB / 451.8 MB, free: 444 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001708/0.3707, allocations: 1.533 MB / 453.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3707, allocations: 0 / 453.3 MB, free: 14.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003824/0.3746, allocations: 1.043 MB / 454.4 MB, free: 13.88 MB / 362.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.0003106/0.3749, allocations: 182.8 kB / 454.6 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003984/0.3789, allocations: 2.884 MB / 457.5 MB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3789, allocations: 4 kB / 457.5 MB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008301/0.3797, allocations: 0.6486 MB / 458.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.3814, allocations: 437.9 kB / 458.5 MB, free: 9.742 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.3924, allocations: 8.349 MB / 466.9 MB, free: 1.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.3935, allocations: 1.367 MB / 468.2 MB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001126/0.3946, allocations: 0.5203 MB / 468.8 MB, free: 15.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007758/0.3954, allocations: 0.6035 MB / 469.4 MB, free: 14.71 MB / 378.7 MB Notification: Performance of SimCode: time 8.41e-07/0.3954, allocations: 0 / 469.4 MB, free: 14.71 MB / 378.7 MB Notification: Performance of Templates: time 0.04823/0.4437, allocations: 30.93 MB / 0.4886 GB, free: 268 kB / 394.7 MB " [Timeout remaining time 659] 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: 4.4170286152511835]