Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",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.001616/0.001616, allocations: 113.2 kB / 17.78 MB, free: 5.277 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.001762/0.001762, allocations: 184.2 kB / 18.72 MB, free: 4.352 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.429/1.429, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2189/0.2189, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 64.08 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3197, allocations: 60.83 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01292/0.3327, allocations: 11.17 MB / 0.5293 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008709/0.3414, allocations: 3.806 MB / 0.5331 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002016/0.3435, allocations: 65.41 kB / 0.5331 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005492/0.349, allocations: 2.697 MB / 0.5358 GB, free: 6.762 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005013/0.3541, allocations: 1.81 MB / 0.5375 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.3558, allocations: 0.6809 MB / 0.5382 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005453/0.3613, allocations: 3.592 MB / 0.5417 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004558/0.3659, allocations: 3.72 MB / 0.5453 GB, free: 484 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002605/0.3685, allocations: 1.487 MB / 0.5468 GB, free: 14.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.3715, allocations: 2.009 MB / 0.5487 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007133/0.3722, allocations: 328 kB / 0.5491 GB, free: 12.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.3743, allocations: 1.065 MB / 0.5501 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00184/0.3762, allocations: 1.839 MB / 0.5519 GB, free: 9.734 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002612/0.3788, allocations: 2.136 MB / 0.554 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008741/0.3876, allocations: 6.864 MB / 0.5607 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3876, allocations: 0 / 0.5607 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3876, allocations: 0 / 0.5607 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001685/0.3878, allocations: 4 kB / 0.5607 GB, free: 0.6914 MB / 414.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.01807/0.4059, allocations: 5.258 MB / 0.5658 GB, free: 11.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.406, allocations: 19.97 kB / 0.5658 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001045/0.407, allocations: 0.6866 MB / 0.5665 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007001/0.414, allocations: 1.897 MB / 0.5684 GB, free: 8.742 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004901/0.4189, allocations: 2.604 MB / 0.5709 GB, free: 6.078 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001825/0.4191, allocations: 229.8 kB / 0.5711 GB, free: 5.852 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006498/0.4198, allocations: 303.8 kB / 0.5714 GB, free: 5.555 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01865/0.4385, allocations: 10.22 MB / 0.5814 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.4386, allocations: 43.62 kB / 0.5814 GB, free: 10.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004482/0.4391, allocations: 147.9 kB / 0.5816 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003469/0.4425, allocations: 1.864 MB / 0.5834 GB, free: 8.629 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01911/0.4617, allocations: 9.187 MB / 0.5924 GB, free: 15.42 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04778/0.5095, allocations: 37.55 MB / 0.629 GB, free: 8.789 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01388/0.5234, allocations: 3.717 MB / 0.6327 GB, free: 4.922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002523/0.526, allocations: 1.704 MB / 0.6343 GB, free: 3.203 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001004/0.527, allocations: 0.6785 MB / 0.635 GB, free: 2.414 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.5e-05/0.527, allocations: 51.06 kB / 0.635 GB, free: 2.355 MB / 494.1 MB Notification: Performance of pre-optimization done (n=130): time 3.807e-06/0.5271, allocations: 0 / 0.635 GB, free: 2.355 MB / 494.1 MB Notification: Performance of matching and sorting (n=136): time 0.04397/0.571, allocations: 13.16 MB / 0.6479 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.376e-05/0.5712, allocations: 141.2 kB / 0.648 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006245/0.5774, allocations: 3.989 MB / 0.6519 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003113/0.5778, allocations: 45.7 kB / 0.652 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002675/0.5804, allocations: 3.144 MB / 0.655 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007837/0.5812, allocations: 0.5739 MB / 0.6556 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001614/0.5829, allocations: 1.151 MB / 0.6567 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.583, allocations: 301.1 kB / 0.657 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003034/0.586, allocations: 1.924 MB / 0.6589 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006432/0.5925, allocations: 5.512 MB / 0.6643 GB, free: 2.445 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/0.603, allocations: 8.068 MB / 0.6722 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001064/0.6031, allocations: 40 kB / 0.6722 GB, free: 8.547 MB / 0.5294 GB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01576/0.6189, allocations: 7.938 MB / 0.6799 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.6191, allocations: 62.34 kB / 0.68 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002073/0.6193, allocations: 132 kB / 0.6801 GB, free: 428 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002747/0.622, allocations: 0.8989 MB / 0.681 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004149/0.6262, allocations: 1.283 MB / 0.6823 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007706/0.6339, allocations: 5.205 MB / 0.6873 GB, free: 8.891 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004075/0.638, allocations: 299.8 kB / 0.6876 GB, free: 8.598 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000967/0.639, allocations: 360 kB / 0.688 GB, free: 8.246 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * 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 (680): * Single equations (assignments): 676 * 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.004254/0.6433, allocations: 2.002 MB / 0.6899 GB, free: 6.23 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/0.6444, allocations: 345.7 kB / 0.6903 GB, free: 5.891 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006516/0.6509, allocations: 2.786 MB / 0.693 GB, free: 3.086 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.876e-05/0.651, allocations: 12 kB / 0.693 GB, free: 3.074 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/0.651, allocations: 4 kB / 0.693 GB, free: 3.07 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.307e-05/0.651, allocations: 7.984 kB / 0.693 GB, free: 3.062 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01618/0.6672, allocations: 7.242 MB / 0.7001 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.6673, allocations: 0 / 0.7001 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.6686, allocations: 251.8 kB / 0.7003 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.671, allocations: 0.7147 MB / 0.701 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.6713, allocations: 31.92 kB / 0.701 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006952/0.6782, allocations: 4.762 MB / 0.7057 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.6783, allocations: 3.938 kB / 0.7057 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008826/0.6871, allocations: 5.145 MB / 0.7107 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009238/0.688, allocations: 410.6 kB / 0.7111 GB, free: 244 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006046/0.6887, allocations: 16 kB / 0.7111 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/0.6902, allocations: 87.83 kB / 0.7112 GB, free: 140 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003025/0.6905, allocations: 80.53 kB / 0.7113 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.6907, allocations: 51.95 kB / 0.7113 GB, free: 8 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005096/0.6958, allocations: 2.493 MB / 0.7138 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.61e-07/0.6958, allocations: 4 kB / 0.7138 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005031/0.7008, allocations: 0.8983 MB / 0.7147 GB, free: 12.63 MB / 0.5762 GB 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 (104): * Single equations (assignments): 100 * 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.009697/0.7105, allocations: 5.792 MB / 0.7203 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008385/0.719, allocations: 4.605 MB / 0.7248 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.719, allocations: 0 / 0.7248 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002359/0.7214, allocations: 1.372 MB / 0.7261 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/0.7244, allocations: 432.5 kB / 0.7266 GB, free: 416 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2842/1.009, allocations: 43.06 MB / 0.7686 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003086/1.012, allocations: 3.111 MB / 0.7716 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003386/1.015, allocations: 1.801 MB / 0.7734 GB, free: 152.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/1.017, allocations: 1.788 MB / 0.7751 GB, free: 151 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/1.017, allocations: 0 / 0.7751 GB, free: 151 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/1.119, allocations: 64.49 MB / 0.8381 GB, free: 86.96 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.74/23.86, allocations: 0 / 0.8381 GB, free: 86.96 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches