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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 113.6 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 46.42 kB / 302.1 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09763, allocations: 49.45 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01222/0.1099, allocations: 11.1 MB / 362.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007316/0.1172, allocations: 3.835 MB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001562/0.1188, allocations: 67.75 kB / 366.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004865/0.1238, allocations: 2.691 MB / 369.2 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004053/0.1278, allocations: 1.812 MB / 371 MB, free: 116 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1552/0.283, allocations: 0.5621 MB / 371.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004694/0.2878, allocations: 3.575 MB / 375.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003878/0.2917, allocations: 3.62 MB / 378.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.294, allocations: 1.469 MB / 380.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.2966, allocations: 2.006 MB / 382.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006123/0.2972, allocations: 318.7 kB / 382.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001808/0.299, allocations: 1.06 MB / 383.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001555/0.3006, allocations: 1.826 MB / 385.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001655/0.3022, allocations: 2.124 MB / 387.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005123/0.3074, allocations: 6.8 MB / 394.4 MB, free: 4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3074, allocations: 6.469 kB / 394.4 MB, free: 3.996 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3074, allocations: 0 / 394.4 MB, free: 3.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001162/0.3075, allocations: 0 / 394.4 MB, free: 3.996 MB / 302.1 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.01525/0.3228, allocations: 5.098 MB / 399.5 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.3228, allocations: 14.23 kB / 399.5 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005983/0.3288, allocations: 1.853 MB / 401.3 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004947/0.3338, allocations: 2.278 MB / 403.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.3339, allocations: 225.8 kB / 403.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000625/0.3346, allocations: 302.4 kB / 404.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01699/0.3516, allocations: 10.22 MB / 414.4 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.557e-05/0.3517, allocations: 37.44 kB / 414.4 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003796/0.3521, allocations: 143.5 kB / 414.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003/0.3551, allocations: 1.864 MB / 416.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01706/0.3722, allocations: 9.128 MB / 425.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04479/0.417, allocations: 38.15 MB / 463.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01252/0.4295, allocations: 3.585 MB / 467.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002204/0.4318, allocations: 1.676 MB / 468.9 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006605/0.4325, allocations: 360.7 kB / 469.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.4325, allocations: 47.12 kB / 469.3 MB, free: 9.961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 4.058e-06/0.4325, allocations: 0 / 469.3 MB, free: 9.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.042/0.4745, allocations: 12.73 MB / 482.1 MB, free: 13.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/0.4746, allocations: 149 kB / 482.2 MB, free: 12.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006009/0.4807, allocations: 4.064 MB / 486.3 MB, free: 8.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.4809, allocations: 45.7 kB / 486.3 MB, free: 8.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001994/0.4829, allocations: 3.051 MB / 489.4 MB, free: 5.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005724/0.4834, allocations: 0.5485 MB / 489.9 MB, free: 5.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001606/0.4851, allocations: 1.174 MB / 491.1 MB, free: 4.023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.914e-05/0.4851, allocations: 301.1 kB / 491.4 MB, free: 3.727 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002685/0.4878, allocations: 1.963 MB / 493.3 MB, free: 1.758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004629/0.4925, allocations: 5.678 MB / 499 MB, free: 10.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008155/0.5006, allocations: 8.283 MB / 0.4954 GB, free: 108 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.821e-05/0.5007, allocations: 40 kB / 0.4954 GB, free: 68 kB / 414.1 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.0162/0.5169, allocations: 8.115 MB / 0.5034 GB, free: 7.949 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.806e-05/0.5171, allocations: 60 kB / 0.5034 GB, free: 7.891 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/0.5172, allocations: 136 kB / 0.5036 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00237/0.5196, allocations: 0.9062 MB / 0.5044 GB, free: 6.848 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004161/0.5237, allocations: 1.322 MB / 0.5057 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006501/0.5303, allocations: 5.188 MB / 0.5108 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004215/0.5345, allocations: 303.7 kB / 0.5111 GB, free: 15.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008043/0.5353, allocations: 375.9 kB / 0.5115 GB, free: 15.54 MB / 446.1 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.003455/0.5388, allocations: 2.011 MB / 0.5134 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006433/0.5394, allocations: 339.5 kB / 0.5137 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005123/0.5446, allocations: 2.763 MB / 0.5164 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.533e-05/0.5446, allocations: 16 kB / 0.5165 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.5446, allocations: 11.98 kB / 0.5165 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.5446, allocations: 3.984 kB / 0.5165 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01215/0.5568, allocations: 7.109 MB / 0.5234 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.5568, allocations: 0 / 0.5234 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.5579, allocations: 219.8 kB / 0.5236 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/0.56, allocations: 0.7076 MB / 0.5243 GB, free: 2.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.5601, allocations: 31.97 kB / 0.5243 GB, free: 2.238 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1574/0.7175, allocations: 4.749 MB / 0.529 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.7175, allocations: 3.641 kB / 0.529 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0075/0.7251, allocations: 5.092 MB / 0.534 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.7261, allocations: 395.6 kB / 0.5343 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003524/0.7265, allocations: 24.8 kB / 0.5344 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.7276, allocations: 70.39 kB / 0.5344 GB, free: 142.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002606/0.7279, allocations: 88.72 kB / 0.5345 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/0.728, allocations: 48.34 kB / 0.5346 GB, free: 142.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003642/0.7317, allocations: 2.54 MB / 0.537 GB, free: 141.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7317, allocations: 1 kB / 0.537 GB, free: 141.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004361/0.736, allocations: 0.9084 MB / 0.5379 GB, free: 141.7 MB / 446.1 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.0003364/0.7364, allocations: 151.6 kB / 0.5381 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00659/0.743, allocations: 4.691 MB / 0.5426 GB, free: 140 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.743, allocations: 0 / 0.5426 GB, free: 140 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.7446, allocations: 1.356 MB / 0.544 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/0.7468, allocations: 439.7 kB / 0.5444 GB, free: 139.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/0.7576, allocations: 8.412 MB / 0.5526 GB, free: 135.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002868/0.7605, allocations: 3.114 MB / 0.5556 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003499/0.764, allocations: 1.834 MB / 0.5574 GB, free: 134.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005493/0.7646, allocations: 256.3 kB / 0.5577 GB, free: 134.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.372e-06/0.7646, allocations: 3.844 kB / 0.5577 GB, free: 134.4 MB / 446.1 MB Notification: Performance of Templates: time 0.05383/0.8184, allocations: 30.07 MB / 0.5871 GB, free: 106.4 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches