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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001582/0.001582, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002022/0.002022, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.4 MB, free: 10.85 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 58.69 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/0.09881, allocations: 50.53 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.2205/0.3193, allocations: 61.55 MB / 418.5 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03035/0.3497, allocations: 12.1 MB / 430.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01244/0.3622, allocations: 271.3 kB / 430.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007064/0.3693, allocations: 3.569 MB / 434.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005973/0.3753, allocations: 1.837 MB / 436.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.3772, allocations: 0.6476 MB / 436.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005953/0.3832, allocations: 4.253 MB / 441.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006335/0.3896, allocations: 5.008 MB / 446.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00307/0.3927, allocations: 1.857 MB / 448.1 MB, free: 388 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00403/0.3967, allocations: 2.707 MB / 450.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001682/0.3984, allocations: 408 kB / 451.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003217/0.4017, allocations: 1.143 MB / 452.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002669/0.4044, allocations: 2.209 MB / 454.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003956/0.4083, allocations: 2.606 MB / 457.1 MB, free: 7.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00884/0.4172, allocations: 7.862 MB / 465 MB, free: 15.4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.4172, allocations: 3.984 kB / 465 MB, free: 15.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4173, allocations: 0 / 465 MB, free: 15.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003139/0.4176, allocations: 0 / 465 MB, free: 15.39 MB / 382.1 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.02117/0.4388, allocations: 6.18 MB / 471.2 MB, free: 9.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.4388, allocations: 8.031 kB / 471.2 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007175/0.446, allocations: 1.963 MB / 473.1 MB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0052/0.4512, allocations: 2.624 MB / 475.8 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/0.4515, allocations: 287.5 kB / 476.1 MB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/0.4527, allocations: 387.8 kB / 476.4 MB, free: 3.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02201/0.4747, allocations: 12.17 MB / 488.6 MB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001306/0.4749, allocations: 55.58 kB / 488.7 MB, free: 6.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005104/0.4754, allocations: 179.8 kB / 488.8 MB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003897/0.4793, allocations: 2.198 MB / 491 MB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02195/0.5013, allocations: 11.13 MB / 0.4904 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2418/0.7431, allocations: 46.59 MB / 0.5359 GB, free: 119.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01929/0.7624, allocations: 5.34 MB / 0.5411 GB, free: 118.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004526/0.767, allocations: 3.302 MB / 0.5443 GB, free: 118.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007166/0.7677, allocations: 378.1 kB / 0.5447 GB, free: 118.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.133e-05/0.7678, allocations: 54.42 kB / 0.5447 GB, free: 118.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=200): time 5.63e-06/0.7678, allocations: 5.156 kB / 0.5447 GB, free: 118.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=231): time 0.07032/0.8382, allocations: 26.74 MB / 0.5709 GB, free: 107.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/0.8383, allocations: 165.4 kB / 0.571 GB, free: 107.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005178/0.8435, allocations: 4.489 MB / 0.5754 GB, free: 102.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005618/0.8441, allocations: 57.7 kB / 0.5755 GB, free: 102.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.8456, allocations: 3.424 MB / 0.5788 GB, free: 99.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000748/0.8464, allocations: 0.8778 MB / 0.5797 GB, free: 98.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001509/0.8479, allocations: 1.45 MB / 0.5811 GB, free: 96.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.113e-05/0.8479, allocations: 301.1 kB / 0.5814 GB, free: 96.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/0.8515, allocations: 3.283 MB / 0.5846 GB, free: 93.35 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004889/0.8564, allocations: 7.224 MB / 0.5916 GB, free: 84.36 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009633/0.866, allocations: 11.3 MB / 0.6027 GB, free: 71.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.678e-05/0.8661, allocations: 43.94 kB / 0.6027 GB, free: 71.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.0151/0.8812, allocations: 11.41 MB / 0.6138 GB, free: 59.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.616e-05/0.8813, allocations: 64.09 kB / 0.6139 GB, free: 59.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.226e-05/0.8814, allocations: 143.9 kB / 0.614 GB, free: 59.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002497/0.8839, allocations: 1.126 MB / 0.6151 GB, free: 58.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005489/0.8894, allocations: 1.723 MB / 0.6168 GB, free: 56.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006652/0.8961, allocations: 6.332 MB / 0.623 GB, free: 50.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006013/0.9021, allocations: 415.4 kB / 0.6234 GB, free: 49.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001237/0.9034, allocations: 451.8 kB / 0.6238 GB, free: 49.5 MB / 446.1 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.004806/0.9082, allocations: 2.322 MB / 0.6261 GB, free: 47.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009297/0.9092, allocations: 402.8 kB / 0.6265 GB, free: 46.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008488/0.9177, allocations: 6.113 MB / 0.6325 GB, free: 40.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.904e-05/0.9177, allocations: 24 kB / 0.6325 GB, free: 40.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.9177, allocations: 7.984 kB / 0.6325 GB, free: 40.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-05/0.9178, allocations: 11.97 kB / 0.6325 GB, free: 40.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01893/0.9367, allocations: 12.86 MB / 0.6451 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.101e-05/0.9368, allocations: 11.23 kB / 0.6451 GB, free: 27.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002811/0.9396, allocations: 0.5265 MB / 0.6456 GB, free: 27.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002418/0.942, allocations: 0.9477 MB / 0.6465 GB, free: 26.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003544/0.9424, allocations: 87.89 kB / 0.6466 GB, free: 26.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006163/0.9486, allocations: 6.053 MB / 0.6525 GB, free: 19.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.9486, allocations: 7.938 kB / 0.6525 GB, free: 19.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/0.9611, allocations: 10.33 MB / 0.6626 GB, free: 9.516 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/0.9634, allocations: 0.8824 MB / 0.6635 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001373/0.9648, allocations: 47.98 kB / 0.6635 GB, free: 8.562 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002733/0.9676, allocations: 155.8 kB / 0.6637 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006482/0.9682, allocations: 177.6 kB / 0.6638 GB, free: 8.238 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003877/0.9686, allocations: 103.9 kB / 0.6639 GB, free: 8.137 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004378/0.973, allocations: 2.822 MB / 0.6667 GB, free: 5.312 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.973, allocations: 0 / 0.6667 GB, free: 5.312 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005304/0.9784, allocations: 1.201 MB / 0.6679 GB, free: 4.117 MB / 446.1 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.0005488/0.9789, allocations: 177.5 kB / 0.668 GB, free: 3.941 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01475/0.9937, allocations: 9.772 MB / 0.6776 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.9937, allocations: 192 / 0.6776 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004295/0.998, allocations: 2.966 MB / 0.6805 GB, free: 7.238 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/1.002, allocations: 0.5097 MB / 0.681 GB, free: 6.758 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02275/1.025, allocations: 14.17 MB / 0.6948 GB, free: 8.535 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005089/1.03, allocations: 3.62 MB / 0.6983 GB, free: 4.879 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005923/1.036, allocations: 2.297 MB / 0.7006 GB, free: 2.574 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/1.037, allocations: 419 kB / 0.701 GB, free: 2.164 MB / 478.1 MB Notification: Performance of SimCode: time 7.61e-07/1.037, allocations: 0 / 0.701 GB, free: 2.164 MB / 478.1 MB Notification: Performance of Templates: time 0.2707/1.308, allocations: 55.95 MB / 0.7556 GB, free: 133.4 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/MovingActuatedDrive/MovingActuatedDrive.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches