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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001726/0.001726, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2367, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.01162/0.2484, allocations: 11.12 MB / 411.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007338/0.2558, allocations: 3.812 MB / 415.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001558/0.2574, allocations: 67.81 kB / 415.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005173/0.2626, allocations: 2.694 MB / 417.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004559/0.2672, allocations: 1.847 MB / 419.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001365/0.2686, allocations: 0.5654 MB / 420.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004766/0.2734, allocations: 3.592 MB / 423.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004487/0.2779, allocations: 3.619 MB / 427.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002503/0.2804, allocations: 1.464 MB / 429 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003037/0.2835, allocations: 2.009 MB / 431 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009481/0.2844, allocations: 320 kB / 431.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.2868, allocations: 1.053 MB / 432.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0023/0.2892, allocations: 1.843 MB / 434.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003535/0.2927, allocations: 2.124 MB / 436.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008476/0.3012, allocations: 6.852 MB / 443.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3012, allocations: 0 / 443.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3013, allocations: 0 / 443.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002211/0.3015, allocations: 0 / 443.2 MB, free: 13.63 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.01798/0.3195, allocations: 5.239 MB / 448.4 MB, free: 8.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3195, allocations: 8.031 kB / 448.5 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001627/0.3212, allocations: 0.6905 MB / 449.1 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007112/0.3283, allocations: 1.889 MB / 451 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005723/0.3341, allocations: 2.604 MB / 453.6 MB, free: 3.055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000215/0.3343, allocations: 217.8 kB / 453.9 MB, free: 2.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001094/0.3354, allocations: 303.8 kB / 454.1 MB, free: 2.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01955/0.355, allocations: 10.21 MB / 464.4 MB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001759/0.3552, allocations: 47.64 kB / 464.4 MB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009331/0.3561, allocations: 139.8 kB / 464.5 MB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003408/0.3596, allocations: 1.868 MB / 466.4 MB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01841/0.378, allocations: 9.131 MB / 475.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04992/0.4279, allocations: 38.22 MB / 0.5017 GB, free: 5.129 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01335/0.4413, allocations: 3.585 MB / 0.5052 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002449/0.4438, allocations: 1.68 MB / 0.5069 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006802/0.4446, allocations: 363.4 kB / 0.5072 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.854e-05/0.4446, allocations: 47.12 kB / 0.5073 GB, free: 15.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 5.019e-06/0.4446, allocations: 0 / 0.5073 GB, free: 15.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.04409/0.4887, allocations: 12.95 MB / 0.5199 GB, free: 2.184 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.785e-05/0.4889, allocations: 141.2 kB / 0.52 GB, free: 2.016 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006407/0.4953, allocations: 4.082 MB / 0.524 GB, free: 13.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002708/0.4956, allocations: 41.7 kB / 0.5241 GB, free: 13.86 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/0.498, allocations: 3.178 MB / 0.5272 GB, free: 10.65 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007908/0.4988, allocations: 0.5661 MB / 0.5277 GB, free: 10.08 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002115/0.5009, allocations: 1.182 MB / 0.5289 GB, free: 8.887 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.501, allocations: 301.1 kB / 0.5292 GB, free: 8.59 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003008/0.5041, allocations: 1.955 MB / 0.5311 GB, free: 6.629 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2096/0.7136, allocations: 5.664 MB / 0.5366 GB, free: 124.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008136/0.7218, allocations: 8.275 MB / 0.5447 GB, free: 118.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/0.722, allocations: 39.28 kB / 0.5447 GB, free: 118.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=737) (initialization): time 0.01244/0.7344, allocations: 8.097 MB / 0.5526 GB, free: 115.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.3e-05/0.7345, allocations: 62.81 kB / 0.5527 GB, free: 115.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001378/0.7347, allocations: 137.3 kB / 0.5528 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002232/0.7369, allocations: 0.9039 MB / 0.5537 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003944/0.7409, allocations: 1.321 MB / 0.555 GB, free: 115.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005381/0.7463, allocations: 5.187 MB / 0.5601 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003999/0.7503, allocations: 311.8 kB / 0.5604 GB, free: 110.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007151/0.7511, allocations: 365 kB / 0.5607 GB, free: 110.5 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 (698): * Single equations (assignments): 694 * 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.00257/0.7536, allocations: 2.012 MB / 0.5627 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005344/0.7542, allocations: 351.9 kB / 0.563 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/0.7585, allocations: 2.764 MB / 0.5657 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.631e-05/0.7586, allocations: 19.83 kB / 0.5657 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.7586, allocations: 4 kB / 0.5657 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.7586, allocations: 7.266 kB / 0.5657 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/0.769, allocations: 7.132 MB / 0.5727 GB, free: 99.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.769, allocations: 0 / 0.5727 GB, free: 99.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000991/0.77, allocations: 219.6 kB / 0.5729 GB, free: 98.98 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/0.7719, allocations: 0.7148 MB / 0.5736 GB, free: 98.27 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/0.772, allocations: 31.97 kB / 0.5736 GB, free: 98.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004617/0.7767, allocations: 4.748 MB / 0.5783 GB, free: 93.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.7767, allocations: 0 / 0.5783 GB, free: 93.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006079/0.7828, allocations: 5.112 MB / 0.5833 GB, free: 88.35 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007757/0.7836, allocations: 403.2 kB / 0.5836 GB, free: 87.95 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003932/0.784, allocations: 27.98 kB / 0.5837 GB, free: 87.92 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.7852, allocations: 67.92 kB / 0.5837 GB, free: 87.85 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/0.7854, allocations: 94.84 kB / 0.5838 GB, free: 87.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.711e-05/0.7855, allocations: 43.97 kB / 0.5839 GB, free: 87.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002991/0.7885, allocations: 2.554 MB / 0.5864 GB, free: 85.15 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7885, allocations: 0 / 0.5864 GB, free: 85.15 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004129/0.7927, allocations: 0.902 MB / 0.5872 GB, free: 84.25 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.006298/0.799, allocations: 5.744 MB / 0.5929 GB, free: 78.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005719/0.8047, allocations: 4.68 MB / 0.5974 GB, free: 73.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.8047, allocations: 0 / 0.5974 GB, free: 73.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001478/0.8062, allocations: 1.356 MB / 0.5988 GB, free: 72.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/0.8087, allocations: 442.9 kB / 0.5992 GB, free: 72.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04621/0.8549, allocations: 43.78 MB / 0.6419 GB, free: 22.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0026/0.8575, allocations: 3.104 MB / 0.645 GB, free: 19.45 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00332/0.8609, allocations: 1.842 MB / 0.6468 GB, free: 17.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001873/0.8628, allocations: 1.788 MB / 0.6485 GB, free: 15.81 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.8628, allocations: 0 / 0.6485 GB, free: 15.81 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1107/0.9735, allocations: 64.54 MB / 0.7115 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.89/23.86, allocations: 12.11 kB / 0.7115 GB, free: 15.7 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > 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.csv","/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