Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 179 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.6 MB / 223.7 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009269/0.0009269, allocations: 86.38 kB / 272.1 MB, free: 8.113 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002662/0.0002664, allocations: 8 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2429, allocations: 47.58 MB / 376.6 MB, free: 45.6 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.0329/0.2759, allocations: 45.67 MB / 422.3 MB, free: 2.711 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02437/0.3003, allocations: 12.86 MB / 435.1 MB, free: 5.172 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007884/0.3082, allocations: 211.5 kB / 435.3 MB, free: 4.965 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.3098, allocations: 421.9 kB / 435.8 MB, free: 4.551 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004355/0.3141, allocations: 1.775 MB / 437.5 MB, free: 2.77 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001233/0.3154, allocations: 0.5227 MB / 438.1 MB, free: 2.246 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006253/0.3216, allocations: 5.515 MB / 443.6 MB, free: 12.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007157/0.3288, allocations: 5.969 MB / 449.5 MB, free: 6.422 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002194/0.331, allocations: 1.245 MB / 450.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002737/0.3338, allocations: 1.958 MB / 452.7 MB, free: 3.207 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005291/0.3344, allocations: 140 kB / 452.9 MB, free: 3.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001962/0.3363, allocations: 0.9047 MB / 453.8 MB, free: 2.164 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001569/0.3379, allocations: 1.69 MB / 455.5 MB, free: 480 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002093/0.34, allocations: 2.012 MB / 457.5 MB, free: 14.44 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007889/0.3479, allocations: 6.66 MB / 464.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.348, allocations: 0 / 464.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.348, allocations: 3.938 kB / 464.1 MB, free: 7.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002197/0.3482, allocations: 0 / 464.1 MB, free: 7.75 MB / 346.7 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.01589/0.3641, allocations: 4.374 MB / 468.5 MB, free: 3.309 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3642, allocations: 12.03 kB / 468.5 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006525/0.3707, allocations: 1.937 MB / 470.5 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/0.3754, allocations: 2.342 MB / 472.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.3756, allocations: 242 kB / 473 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007663/0.3764, allocations: 315.8 kB / 473.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01908/0.3955, allocations: 10.71 MB / 484.1 MB, free: 3.008 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000124/0.3956, allocations: 47.58 kB / 484.1 MB, free: 2.961 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004405/0.3961, allocations: 147.9 kB / 484.3 MB, free: 2.816 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003172/0.3993, allocations: 1.985 MB / 486.2 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01902/0.4183, allocations: 9.547 MB / 495.8 MB, free: 7.254 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2375/0.6559, allocations: 39.9 MB / 0.5231 GB, free: 79.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/0.6673, allocations: 3.838 MB / 0.5269 GB, free: 77.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002225/0.6696, allocations: 1.85 MB / 0.5287 GB, free: 76.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005306/0.6702, allocations: 359.1 kB / 0.529 GB, free: 76.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.6702, allocations: 50.66 kB / 0.5291 GB, free: 76.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=148): time 4.899e-06/0.6702, allocations: 0 / 0.5291 GB, free: 76.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.03792/0.7081, allocations: 13.77 MB / 0.5425 GB, free: 64.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.7082, allocations: 141.5 kB / 0.5427 GB, free: 64.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004177/0.7124, allocations: 4.135 MB / 0.5467 GB, free: 59.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/0.7126, allocations: 49.7 kB / 0.5467 GB, free: 59.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001201/0.7138, allocations: 3.163 MB / 0.5498 GB, free: 56.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003885/0.7142, allocations: 0.6118 MB / 0.5504 GB, free: 56.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.7144, allocations: 121.2 kB / 0.5505 GB, free: 56.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.7146, allocations: 0.5581 MB / 0.5511 GB, free: 55.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002296/0.7169, allocations: 2.116 MB / 0.5532 GB, free: 53.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003502/0.7205, allocations: 5.944 MB / 0.559 GB, free: 45.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007302/0.7278, allocations: 8.764 MB / 0.5675 GB, free: 34.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-05/0.7278, allocations: 43.94 kB / 0.5676 GB, free: 34.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=779) (initialization): time 0.0112/0.7391, allocations: 8.531 MB / 0.5759 GB, free: 26.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.681e-05/0.7392, allocations: 64 kB / 0.576 GB, free: 26.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.001e-05/0.7393, allocations: 136 kB / 0.5761 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/0.7413, allocations: 0.9178 MB / 0.577 GB, free: 25.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003539/0.7449, allocations: 1.4 MB / 0.5783 GB, free: 23.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005009/0.7499, allocations: 4.864 MB / 0.5831 GB, free: 18.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004427/0.7543, allocations: 336.2 kB / 0.5834 GB, free: 18.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006432/0.755, allocations: 385.2 kB / 0.5838 GB, free: 18 MB / 378.7 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.003026/0.758, allocations: 2.103 MB / 0.5858 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006155/0.7586, allocations: 347.5 kB / 0.5862 GB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004795/0.7634, allocations: 3.148 MB / 0.5892 GB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.657e-05/0.7635, allocations: 17.02 kB / 0.5893 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.7635, allocations: 4 kB / 0.5893 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.7635, allocations: 12 kB / 0.5893 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/0.7748, allocations: 7.844 MB / 0.5969 GB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.7748, allocations: 0 / 0.5969 GB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.776, allocations: 263.6 kB / 0.5972 GB, free: 4.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001816/0.7778, allocations: 0.7134 MB / 0.5979 GB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/0.778, allocations: 43.91 kB / 0.5979 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004962/0.7829, allocations: 4.41 MB / 0.6022 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.783, allocations: 4.031 kB / 0.6022 GB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009266/0.7923, allocations: 5.675 MB / 0.6078 GB, free: 9.184 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/0.794, allocations: 0.6407 MB / 0.6084 GB, free: 8.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004122/0.7945, allocations: 27.59 kB / 0.6084 GB, free: 8.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.7957, allocations: 87.89 kB / 0.6085 GB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003042/0.796, allocations: 108.7 kB / 0.6086 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.7961, allocations: 51.97 kB / 0.6087 GB, free: 8.254 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003685/0.7998, allocations: 2.571 MB / 0.6112 GB, free: 5.672 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7998, allocations: 0.5625 kB / 0.6112 GB, free: 5.672 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004397/0.8042, allocations: 0.9635 MB / 0.6121 GB, free: 4.711 MB / 394.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 (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.0003834/0.8046, allocations: 164.2 kB / 0.6123 GB, free: 4.547 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007812/0.8125, allocations: 5.069 MB / 0.6172 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.8125, allocations: 0 / 0.6172 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002214/0.8147, allocations: 1.535 MB / 0.6187 GB, free: 13.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004984/0.8197, allocations: 425 kB / 0.6191 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02418/0.8439, allocations: 11.13 MB / 0.63 GB, free: 2.363 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005577/0.8496, allocations: 3.235 MB / 0.6332 GB, free: 15.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.007884/0.8575, allocations: 1.933 MB / 0.635 GB, free: 13.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/0.8587, allocations: 267.3 kB / 0.6353 GB, free: 12.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.393e-06/0.8587, allocations: 4 kB / 0.6353 GB, free: 12.89 MB / 426.7 MB Notification: Performance of Templates: time 0.2412/1.1, allocations: 35.24 MB / 0.6697 GB, free: 133.4 MB / 426.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches