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.001108/0.001108, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001108/0.001108, allocations: 194.9 kB / 18 MB, free: 5.176 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 51.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3082, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01201/0.3203, allocations: 11.12 MB / 411.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008709/0.329, allocations: 3.812 MB / 415.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.331, allocations: 63.88 kB / 415.7 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005492/0.3366, allocations: 2.687 MB / 418.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004884/0.3415, allocations: 1.856 MB / 420.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00137/0.3429, allocations: 0.5615 MB / 420.8 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005037/0.3479, allocations: 3.598 MB / 424.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004718/0.3527, allocations: 3.608 MB / 428 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002434/0.3551, allocations: 1.476 MB / 429.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00279/0.3579, allocations: 2.005 MB / 431.5 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008751/0.3588, allocations: 316 kB / 431.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002425/0.3613, allocations: 1.065 MB / 432.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002262/0.3635, allocations: 1.835 MB / 434.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002853/0.3664, allocations: 2.132 MB / 436.8 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006345/0.3728, allocations: 6.802 MB / 443.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3728, allocations: 0 / 443.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3728, allocations: 0 / 443.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001045/0.3729, allocations: 0 / 443.6 MB, free: 13.74 MB / 366.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.01568/0.3886, allocations: 5.102 MB / 448.7 MB, free: 8.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.3886, allocations: 8.031 kB / 448.8 MB, free: 8.562 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006562/0.3952, allocations: 1.863 MB / 450.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003755/0.399, allocations: 2.268 MB / 452.9 MB, free: 4.363 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.3991, allocations: 229.7 kB / 453.1 MB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005536/0.3997, allocations: 303.8 kB / 453.4 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01623/0.416, allocations: 10.22 MB / 463.6 MB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.802e-05/0.4161, allocations: 39.67 kB / 463.7 MB, free: 8.902 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004051/0.4165, allocations: 151.8 kB / 463.8 MB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003394/0.4199, allocations: 1.86 MB / 465.7 MB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.4387, allocations: 9.116 MB / 474.8 MB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04365/0.4824, allocations: 38.17 MB / 0.5009 GB, free: 6.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01311/0.4956, allocations: 3.577 MB / 0.5044 GB, free: 2.758 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002318/0.4979, allocations: 1.676 MB / 0.5061 GB, free: 1.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005984/0.4986, allocations: 363.6 kB / 0.5064 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.4986, allocations: 55.06 kB / 0.5065 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of pre-optimization done (n=127): time 3.667e-06/0.4986, allocations: 0 / 0.5065 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.04358/0.5422, allocations: 12.72 MB / 0.5189 GB, free: 3.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/0.5423, allocations: 145.2 kB / 0.519 GB, free: 3.578 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005912/0.5482, allocations: 4.061 MB / 0.523 GB, free: 15.48 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002167/0.5485, allocations: 41.7 kB / 0.523 GB, free: 15.44 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001907/0.5504, allocations: 3.055 MB / 0.526 GB, free: 12.34 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005549/0.5509, allocations: 0.5364 MB / 0.5265 GB, free: 11.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/0.5523, allocations: 1.181 MB / 0.5277 GB, free: 10.61 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.343e-05/0.5524, allocations: 305.1 kB / 0.528 GB, free: 10.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/0.5553, allocations: 1.963 MB / 0.5299 GB, free: 8.336 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00591/0.5612, allocations: 5.684 MB / 0.5355 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2547/0.8159, allocations: 8.289 MB / 0.5435 GB, free: 118.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.64e-05/0.8161, allocations: 35.44 kB / 0.5436 GB, free: 118.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.01208/0.8282, allocations: 8.102 MB / 0.5515 GB, free: 115.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.549e-05/0.8283, allocations: 62.22 kB / 0.5515 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001319/0.8284, allocations: 137.4 kB / 0.5517 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002243/0.8307, allocations: 0.9051 MB / 0.5526 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003842/0.8345, allocations: 1.33 MB / 0.5539 GB, free: 115.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005487/0.84, allocations: 5.193 MB / 0.5589 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/0.8442, allocations: 308.5 kB / 0.5592 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005252/0.8447, allocations: 372.7 kB / 0.5596 GB, free: 111.4 MB / 462.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.00267/0.8474, allocations: 2.017 MB / 0.5616 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005404/0.8479, allocations: 328.3 kB / 0.5619 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004452/0.8524, allocations: 2.771 MB / 0.5646 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.659e-05/0.8524, allocations: 12 kB / 0.5646 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.8525, allocations: 11.75 kB / 0.5646 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.8525, allocations: 7.984 kB / 0.5646 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009933/0.8624, allocations: 7.113 MB / 0.5715 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.8625, allocations: 6.281 kB / 0.5716 GB, free: 100.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009512/0.8634, allocations: 211.8 kB / 0.5718 GB, free: 99.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/0.8653, allocations: 0.7242 MB / 0.5725 GB, free: 99.24 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.8655, allocations: 35.97 kB / 0.5725 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004879/0.8703, allocations: 4.743 MB / 0.5771 GB, free: 94.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8704, allocations: 8.062 kB / 0.5771 GB, free: 94.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006238/0.8766, allocations: 5.079 MB / 0.5821 GB, free: 89.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009405/0.8776, allocations: 400.6 kB / 0.5825 GB, free: 88.94 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000347/0.8779, allocations: 16 kB / 0.5825 GB, free: 88.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.8791, allocations: 79.73 kB / 0.5826 GB, free: 88.85 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.8793, allocations: 84.47 kB / 0.5827 GB, free: 88.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.599e-05/0.8794, allocations: 48.16 kB / 0.5827 GB, free: 88.72 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002916/0.8823, allocations: 2.547 MB / 0.5852 GB, free: 86.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8824, allocations: 0 / 0.5852 GB, free: 86.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004044/0.8864, allocations: 0.905 MB / 0.5861 GB, free: 85.26 MB / 462.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.0003288/0.8868, allocations: 163.4 kB / 0.5862 GB, free: 85.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005665/0.8924, allocations: 4.683 MB / 0.5908 GB, free: 80.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.8925, allocations: 256 / 0.5908 GB, free: 80.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00148/0.8939, allocations: 1.353 MB / 0.5921 GB, free: 79.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002332/0.8963, allocations: 422.7 kB / 0.5925 GB, free: 78.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.9076, allocations: 8.412 MB / 0.6007 GB, free: 70.21 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002469/0.9101, allocations: 3.093 MB / 0.6038 GB, free: 67.09 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003453/0.9136, allocations: 1.842 MB / 0.6056 GB, free: 65.24 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005723/0.9142, allocations: 263.3 kB / 0.6058 GB, free: 64.98 MB / 462.1 MB Notification: Performance of SimCode: time 1.964e-06/0.9142, allocations: 0 / 0.6058 GB, free: 64.98 MB / 462.1 MB Notification: Performance of Templates: time 0.05186/0.966, allocations: 32.04 MB / 0.6371 GB, free: 33.17 MB / 462.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins/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