Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001082/0.001082, allocations: 108.4 kB / 18.36 MB, free: 4.641 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.001133/0.001133, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 47.92 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08942, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01313/0.1026, allocations: 11.75 MB / 340.5 MB, free: 7.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008027/0.1107, allocations: 3.918 MB / 344.4 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.1126, allocations: 67.81 kB / 344.5 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004986/0.1176, allocations: 2.71 MB / 347.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004562/0.1222, allocations: 1.887 MB / 349.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.1236, allocations: 0.5615 MB / 349.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005174/0.1288, allocations: 3.758 MB / 353.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004533/0.1334, allocations: 3.71 MB / 357.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002673/0.1361, allocations: 1.53 MB / 358.6 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003056/0.1392, allocations: 2.118 MB / 360.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007351/0.1399, allocations: 340 kB / 361.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001894/0.1418, allocations: 1.065 MB / 362.1 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001618/0.1434, allocations: 1.913 MB / 364 MB, free: 272 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002153/0.1456, allocations: 2.241 MB / 366.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006534/0.1521, allocations: 7.186 MB / 373.5 MB, free: 6.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.1522, allocations: 4 kB / 373.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1522, allocations: 0 / 373.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001616/0.1524, allocations: 0 / 373.5 MB, free: 6.797 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01718/0.1695, allocations: 5.306 MB / 378.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1696, allocations: 8.031 kB / 378.8 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1559/0.3256, allocations: 1.884 MB / 380.7 MB, free: 50.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006216/0.3318, allocations: 2.381 MB / 383.1 MB, free: 49.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002362/0.3321, allocations: 239.6 kB / 383.3 MB, free: 49.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001278/0.3334, allocations: 316.1 kB / 383.6 MB, free: 49.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0178/0.3512, allocations: 10.71 MB / 394.3 MB, free: 44.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/0.3513, allocations: 54.08 kB / 394.4 MB, free: 44.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/0.3517, allocations: 154.7 kB / 394.5 MB, free: 44.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00269/0.3544, allocations: 1.979 MB / 396.5 MB, free: 43.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01478/0.3692, allocations: 9.56 MB / 406.1 MB, free: 35.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03344/0.4027, allocations: 39.76 MB / 445.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01235/0.4151, allocations: 3.835 MB / 449.7 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002439/0.4175, allocations: 1.845 MB / 451.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005629/0.4181, allocations: 352.2 kB / 451.8 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.709e-05/0.4182, allocations: 55.55 kB / 451.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=148): time 3.547e-06/0.4182, allocations: 0 / 451.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=154): time 0.04151/0.4597, allocations: 13.76 MB / 465.7 MB, free: 6.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.714e-05/0.4598, allocations: 149.5 kB / 465.8 MB, free: 6.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005806/0.4656, allocations: 4.167 MB / 470 MB, free: 2.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002812/0.4659, allocations: 45.7 kB / 470 MB, free: 1.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002178/0.4681, allocations: 3.172 MB / 473.2 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007178/0.4688, allocations: 0.6156 MB / 473.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00145/0.4703, allocations: 1.225 MB / 475 MB, free: 12.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.823e-05/0.4704, allocations: 309.1 kB / 475.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002968/0.4734, allocations: 2.135 MB / 477.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00535/0.4787, allocations: 5.956 MB / 483.4 MB, free: 2.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009387/0.4881, allocations: 8.77 MB / 492.2 MB, free: 7.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/0.4883, allocations: 40 kB / 492.2 MB, free: 7.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.01467/0.503, allocations: 8.575 MB / 0.4891 GB, free: 15.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.998e-05/0.5031, allocations: 64 kB / 0.4891 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001311/0.5032, allocations: 136.1 kB / 0.4893 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0024/0.5056, allocations: 0.9265 MB / 0.4902 GB, free: 14.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00423/0.5099, allocations: 1.392 MB / 0.4915 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006617/0.5165, allocations: 5.205 MB / 0.4966 GB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004358/0.5209, allocations: 331.7 kB / 0.4969 GB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005412/0.5214, allocations: 380 kB / 0.4973 GB, free: 6.73 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (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 (740): * Single equations (assignments): 736 * 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.002861/0.5243, allocations: 2.099 MB / 0.4993 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005816/0.5249, allocations: 347.4 kB / 0.4997 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005559/0.5304, allocations: 3.144 MB / 0.5027 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.522e-05/0.5305, allocations: 20 kB / 0.5028 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.5305, allocations: 4 kB / 0.5028 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.5305, allocations: 7.969 kB / 0.5028 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/0.5436, allocations: 7.821 MB / 0.5104 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/0.5436, allocations: 0 / 0.5104 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.5448, allocations: 255.6 kB / 0.5106 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/0.5469, allocations: 0.7175 MB / 0.5114 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.547, allocations: 35.97 kB / 0.5114 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00581/0.5529, allocations: 4.74 MB / 0.516 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5529, allocations: 4 kB / 0.516 GB, free: 3.285 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008162/0.5611, allocations: 5.687 MB / 0.5216 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/0.5627, allocations: 0.6252 MB / 0.5222 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003784/0.5631, allocations: 23.98 kB / 0.5222 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/0.5644, allocations: 91.8 kB / 0.5223 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/0.5647, allocations: 100.8 kB / 0.5224 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.5648, allocations: 55.91 kB / 0.5224 GB, free: 12.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003521/0.5684, allocations: 2.607 MB / 0.525 GB, free: 10.04 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5684, allocations: 0 / 0.525 GB, free: 10.04 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004263/0.5727, allocations: 0.9637 MB / 0.5259 GB, free: 9.074 MB / 430.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 (123): * Single equations (assignments): 119 * 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.0003633/0.573, allocations: 162.3 kB / 0.5261 GB, free: 8.906 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007187/0.5802, allocations: 5.096 MB / 0.5311 GB, free: 3.836 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.5803, allocations: 0 / 0.5311 GB, free: 3.836 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002051/0.5823, allocations: 1.534 MB / 0.5326 GB, free: 2.289 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.5847, allocations: 439.5 kB / 0.533 GB, free: 1.867 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1627/0.7474, allocations: 8.977 MB / 0.5417 GB, free: 143.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004055/0.7515, allocations: 3.239 MB / 0.5449 GB, free: 143.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004023/0.7555, allocations: 1.932 MB / 0.5468 GB, free: 143 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006656/0.7562, allocations: 276.5 kB / 0.5471 GB, free: 143 MB / 430.1 MB Notification: Performance of SimCode: time 1.293e-06/0.7562, allocations: 0 / 0.5471 GB, free: 143 MB / 430.1 MB Notification: Performance of Templates: time 0.05299/0.8092, allocations: 31.77 MB / 0.5781 GB, free: 120.7 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches