Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001191/0.001191, allocations: 199.8 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007796/0.0007796, allocations: 94.91 kB / 299.9 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002241/0.0002242, allocations: 4 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2247, allocations: 51.42 MB / 412.1 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.03457/0.2594, allocations: 45.1 MB / 457.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02377/0.2832, allocations: 13.17 MB / 470.3 MB, free: 14.76 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007861/0.2911, allocations: 207.5 kB / 470.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.2925, allocations: 409.9 kB / 470.9 MB, free: 14.15 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004077/0.2966, allocations: 1.686 MB / 472.6 MB, free: 12.46 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.2977, allocations: 0.5227 MB / 473.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00541/0.3031, allocations: 5.326 MB / 478.5 MB, free: 6.598 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006629/0.3098, allocations: 5.887 MB / 484.4 MB, free: 392 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001936/0.3118, allocations: 1.198 MB / 485.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002152/0.3139, allocations: 1.837 MB / 487.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003669/0.3143, allocations: 128 kB / 487.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001698/0.316, allocations: 0.9045 MB / 488.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001398/0.3174, allocations: 1.601 MB / 490 MB, free: 10.7 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001705/0.3191, allocations: 1.892 MB / 491.9 MB, free: 8.789 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00584/0.325, allocations: 6.314 MB / 498.2 MB, free: 2.453 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.325, allocations: 0 / 498.2 MB, free: 2.453 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.325, allocations: 3.938 kB / 498.2 MB, free: 2.449 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001223/0.3251, allocations: 0 / 498.2 MB, free: 2.449 MB / 362.7 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.01388/0.339, allocations: 4.236 MB / 0.4907 GB, free: 14.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3391, allocations: 12.03 kB / 0.4907 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006523/0.3456, allocations: 1.941 MB / 0.4926 GB, free: 12.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004585/0.3502, allocations: 2.213 MB / 0.4948 GB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.3504, allocations: 229.7 kB / 0.495 GB, free: 9.688 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000684/0.3511, allocations: 303.8 kB / 0.4953 GB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2243/0.5754, allocations: 10.19 MB / 0.5052 GB, free: 90.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/0.5756, allocations: 42.16 kB / 0.5053 GB, free: 90.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004644/0.5761, allocations: 144.8 kB / 0.5054 GB, free: 90.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003383/0.5795, allocations: 1.868 MB / 0.5072 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01616/0.5957, allocations: 9.107 MB / 0.5161 GB, free: 87.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03706/0.6328, allocations: 38.27 MB / 0.5535 GB, free: 49.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.6439, allocations: 3.593 MB / 0.557 GB, free: 45.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001784/0.6457, allocations: 1.68 MB / 0.5586 GB, free: 43.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000432/0.6462, allocations: 355.4 kB / 0.559 GB, free: 43.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.6462, allocations: 51.11 kB / 0.559 GB, free: 43.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.108e-06/0.6462, allocations: 7.984 kB / 0.559 GB, free: 43.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.03461/0.6808, allocations: 12.73 MB / 0.5715 GB, free: 30.63 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.6809, allocations: 149 kB / 0.5716 GB, free: 30.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004255/0.6852, allocations: 4.033 MB / 0.5756 GB, free: 26.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.6854, allocations: 41.7 kB / 0.5756 GB, free: 26.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001254/0.6866, allocations: 3.052 MB / 0.5786 GB, free: 23.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003829/0.687, allocations: 0.5472 MB / 0.5791 GB, free: 22.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001893/0.6872, allocations: 116 kB / 0.5792 GB, free: 22.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002185/0.6874, allocations: 0.5457 MB / 0.5798 GB, free: 22.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/0.6896, allocations: 1.948 MB / 0.5817 GB, free: 20.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003266/0.6929, allocations: 5.665 MB / 0.5872 GB, free: 12.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006164/0.6991, allocations: 8.264 MB / 0.5953 GB, free: 2.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.181e-05/0.6992, allocations: 40 kB / 0.5953 GB, free: 2.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=741) (initialization): time 0.0127/0.7119, allocations: 8.061 MB / 0.6032 GB, free: 10.37 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.259e-05/0.712, allocations: 68.78 kB / 0.6032 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001331/0.7121, allocations: 132 kB / 0.6034 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002322/0.7144, allocations: 0.9099 MB / 0.6042 GB, free: 9.262 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003888/0.7183, allocations: 1.329 MB / 0.6055 GB, free: 7.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006574/0.7249, allocations: 4.851 MB / 0.6103 GB, free: 2.945 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004219/0.7292, allocations: 319.6 kB / 0.6106 GB, free: 2.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006276/0.7298, allocations: 368 kB / 0.6109 GB, free: 2.273 MB / 394.7 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.003291/0.7331, allocations: 2.009 MB / 0.6129 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006047/0.7337, allocations: 339.6 kB / 0.6132 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005119/0.7389, allocations: 2.774 MB / 0.6159 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.929e-05/0.7389, allocations: 23.77 kB / 0.616 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.7389, allocations: 4 kB / 0.616 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.7389, allocations: 3.984 kB / 0.616 GB, free: 13.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/0.7513, allocations: 7.142 MB / 0.6229 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.7513, allocations: 0 / 0.6229 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009943/0.7523, allocations: 215.7 kB / 0.6231 GB, free: 5.688 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002046/0.7544, allocations: 0.718 MB / 0.6238 GB, free: 4.969 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.7545, allocations: 35.97 kB / 0.6239 GB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005703/0.7602, allocations: 4.419 MB / 0.6282 GB, free: 384 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.7603, allocations: 7.969 kB / 0.6282 GB, free: 376 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007507/0.7678, allocations: 5.091 MB / 0.6332 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.769, allocations: 408.6 kB / 0.6336 GB, free: 10.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/0.7693, allocations: 19.94 kB / 0.6336 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.7705, allocations: 79.91 kB / 0.6337 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003272/0.7708, allocations: 88.52 kB / 0.6337 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.7709, allocations: 43.98 kB / 0.6338 GB, free: 10.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004582/0.7755, allocations: 2.51 MB / 0.6362 GB, free: 8.062 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7755, allocations: 0 / 0.6362 GB, free: 8.062 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004322/0.7799, allocations: 0.8986 MB / 0.6371 GB, free: 7.164 MB / 426.7 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.0003747/0.7802, allocations: 168.6 kB / 0.6373 GB, free: 6.992 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006913/0.7872, allocations: 4.66 MB / 0.6418 GB, free: 2.348 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.7872, allocations: 0 / 0.6418 GB, free: 2.348 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001738/0.7889, allocations: 1.348 MB / 0.6431 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/0.7918, allocations: 416.4 kB / 0.6435 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/0.8058, allocations: 10.43 MB / 0.6537 GB, free: 6.105 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003233/0.8091, allocations: 3.097 MB / 0.6567 GB, free: 2.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004453/0.8136, allocations: 1.842 MB / 0.6585 GB, free: 1.129 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006283/0.8142, allocations: 251.3 kB / 0.6588 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of SimCode: time 2.615e-06/0.8142, allocations: 0 / 0.6588 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of Templates: time 0.2357/1.05, allocations: 33.45 MB / 0.6915 GB, free: 147 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches