Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001494/0.001494, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001086/0.001086, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9454/0.9454, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.922e-05/3.064e-05, allocations: 2.312 kB / 272.9 MB, free: 1.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.01004/0.01007, allocations: 12.67 MB / 285.6 MB, free: 4.727 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007327/0.0174, allocations: 4.223 MB / 289.8 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001719/0.01912, allocations: 95.56 kB / 289.9 MB, free: 408 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1388/0.1579, allocations: 3.987 MB / 293.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006923/0.1649, allocations: 2.11 MB / 296 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001547/0.1664, allocations: 0.7563 MB / 296.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006314/0.1727, allocations: 4.635 MB / 301.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004696/0.1774, allocations: 3.992 MB / 305.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003979/0.1814, allocations: 2.773 MB / 308.2 MB, free: 9.293 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002881/0.1843, allocations: 2.613 MB / 310.8 MB, free: 8.082 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006191/0.1849, allocations: 415.6 kB / 311.2 MB, free: 8.082 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001549/0.1865, allocations: 1.072 MB / 312.2 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001277/0.1877, allocations: 2.362 MB / 314.6 MB, free: 5.383 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001334/0.1891, allocations: 1.528 MB / 316.1 MB, free: 3.926 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004195/0.1933, allocations: 5.119 MB / 321.3 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1933, allocations: 0 / 321.3 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1933, allocations: 0 / 321.3 MB, free: 15.14 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.536e-05/0.1933, allocations: 0 / 321.3 MB, free: 15.14 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.01293/0.2062, allocations: 6.789 MB / 328 MB, free: 8.402 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.2063, allocations: 11.98 kB / 328.1 MB, free: 8.391 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005729/0.212, allocations: 2.507 MB / 330.6 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003642/0.2157, allocations: 2.424 MB / 333 MB, free: 3.637 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.2158, allocations: 297.8 kB / 333.3 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004224/0.2162, allocations: 383.9 kB / 333.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009219/0.2254, allocations: 7.291 MB / 340.9 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.133e-05/0.2255, allocations: 51.06 kB / 341 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006341/0.2262, allocations: 185.7 kB / 341.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002196/0.2284, allocations: 2.196 MB / 343.4 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008495/0.2368, allocations: 4.241 MB / 347.6 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03647/0.2733, allocations: 48.44 MB / 396 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008158/0.2815, allocations: 2.714 MB / 398.8 MB, free: 88 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001397/0.2829, allocations: 0.912 MB / 399.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003401/0.2832, allocations: 149 kB / 399.8 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.2833, allocations: 62.64 kB / 399.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=200): time 4.087e-06/0.2833, allocations: 0 / 399.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=231): time 0.03514/0.3184, allocations: 16.97 MB / 416.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.215e-05/0.3185, allocations: 150.5 kB / 417 MB, free: 13.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003469/0.3219, allocations: 3.697 MB / 420.7 MB, free: 10.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002024/0.3221, allocations: 65.7 kB / 420.8 MB, free: 9.988 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002262/0.3244, allocations: 3.733 MB / 424.5 MB, free: 6.273 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007749/0.3252, allocations: 0.9485 MB / 425.4 MB, free: 5.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/0.3267, allocations: 1.568 MB / 427 MB, free: 3.758 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3268, allocations: 480.8 kB / 427.5 MB, free: 3.285 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/0.3283, allocations: 0.9186 MB / 428.4 MB, free: 2.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1425/0.4708, allocations: 6.741 MB / 435.1 MB, free: 103.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007886/0.4787, allocations: 8.509 MB / 443.6 MB, free: 96.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000101/0.4788, allocations: 47.88 kB / 443.7 MB, free: 96.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.01208/0.4909, allocations: 6.741 MB / 450.4 MB, free: 95.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.145e-05/0.491, allocations: 67.09 kB / 450.5 MB, free: 95.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/0.4911, allocations: 140 kB / 450.6 MB, free: 95.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.4927, allocations: 0.6755 MB / 451.3 MB, free: 95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003319/0.496, allocations: 1.755 MB / 453.1 MB, free: 94.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003394/0.4994, allocations: 3.346 MB / 456.4 MB, free: 92.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003321/0.5027, allocations: 439.3 kB / 456.8 MB, free: 92.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004638/0.5032, allocations: 462.8 kB / 457.3 MB, free: 92.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 631 * 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 (834): * Single equations (assignments): 830 * 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.001699/0.5049, allocations: 0.7167 MB / 458 MB, free: 92.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006188/0.5055, allocations: 442.1 kB / 458.4 MB, free: 92.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003989/0.5095, allocations: 2.773 MB / 461.2 MB, free: 92.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-05/0.5095, allocations: 23.27 kB / 461.2 MB, free: 92.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.5095, allocations: 9.609 kB / 461.2 MB, free: 92.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/0.5095, allocations: 9.938 kB / 461.3 MB, free: 92.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/0.5199, allocations: 7.309 MB / 468.6 MB, free: 90.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.5199, allocations: 0 / 468.6 MB, free: 90.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.5214, allocations: 0.5679 MB / 469.1 MB, free: 89.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.5226, allocations: 0.5007 MB / 469.6 MB, free: 89.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001831/0.5228, allocations: 94.64 kB / 469.7 MB, free: 89.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/0.5255, allocations: 3.069 MB / 472.8 MB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5255, allocations: 4 kB / 472.8 MB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005362/0.5309, allocations: 4.031 MB / 476.8 MB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.5322, allocations: 0.7468 MB / 477.6 MB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003039/0.5325, allocations: 51.98 kB / 477.6 MB, free: 82.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.5336, allocations: 195.8 kB / 477.8 MB, free: 82.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003152/0.534, allocations: 199.5 kB / 478 MB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/0.5341, allocations: 119.9 kB / 478.1 MB, free: 82.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001746/0.5359, allocations: 1.587 MB / 479.7 MB, free: 80.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5359, allocations: 0 / 479.7 MB, free: 80.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004201/0.5401, allocations: 1.242 MB / 481 MB, free: 79.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (203): * Single equations (assignments): 199 * 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 Backend phase and start with SimCode phase: time 0.000473/0.5405, allocations: 204.6 kB / 481.2 MB, free: 79.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005665/0.5462, allocations: 3.911 MB / 485.1 MB, free: 75.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.5462, allocations: 4 kB / 485.1 MB, free: 75.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.5478, allocations: 1.298 MB / 486.4 MB, free: 73.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.5497, allocations: 0.493 MB / 486.9 MB, free: 73.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/0.5627, allocations: 9.216 MB / 496.1 MB, free: 64.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/0.5638, allocations: 1.407 MB / 497.5 MB, free: 62.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003006/0.5668, allocations: 1.877 MB / 499.4 MB, free: 60.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/0.5678, allocations: 456.1 kB / 499.8 MB, free: 60.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5678, allocations: 4 kB / 499.8 MB, free: 60.42 MB / 378.7 MB Notification: Performance of Templates: time 0.05841/0.6262, allocations: 49.52 MB / 0.5365 GB, free: 11.43 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.40482336981222]