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.001029/0.001029, allocations: 100.8 kB / 17.63 MB, free: 5.547 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.001012/0.001012, allocations: 195.8 kB / 18.57 MB, free: 4.617 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.342/1.342, allocations: 222.9 MB / 242.3 MB, free: 15.27 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.2108/0.2108, allocations: 44.19 MB / 336.6 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 67.25 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1189, allocations: 60.82 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01327/0.1322, allocations: 11.16 MB / 480.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008616/0.1408, allocations: 3.824 MB / 484.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002844/0.1437, allocations: 59.88 kB / 484.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005681/0.1494, allocations: 2.69 MB / 487.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005682/0.1552, allocations: 1.82 MB / 488.9 MB, free: 10.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.1569, allocations: 0.6901 MB / 489.6 MB, free: 9.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005009/0.1619, allocations: 3.578 MB / 493.2 MB, free: 6.395 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004499/0.1665, allocations: 3.718 MB / 496.9 MB, free: 2.613 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002155/0.1686, allocations: 1.483 MB / 498.4 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002543/0.1712, allocations: 2.017 MB / 0.4887 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006629/0.1719, allocations: 328 kB / 0.489 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001886/0.1738, allocations: 1.065 MB / 0.49 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001577/0.1754, allocations: 1.831 MB / 0.4918 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002218/0.1776, allocations: 2.14 MB / 0.4939 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007016/0.1846, allocations: 6.612 MB / 0.5004 GB, free: 3.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1847, allocations: 0 / 0.5004 GB, free: 3.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1847, allocations: 0 / 0.5004 GB, free: 3.094 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001691/0.1848, allocations: 0 / 0.5004 GB, free: 3.094 MB / 382.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.2534/0.4383, allocations: 5.136 MB / 0.5054 GB, free: 45.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.518e-05/0.4384, allocations: 9.594 kB / 0.5054 GB, free: 45.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001994/0.4404, allocations: 0.69 MB / 0.5061 GB, free: 45.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007697/0.4481, allocations: 1.866 MB / 0.5079 GB, free: 45.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007146/0.4553, allocations: 2.559 MB / 0.5104 GB, free: 44.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.4555, allocations: 228.4 kB / 0.5106 GB, free: 44.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001311/0.4568, allocations: 306.1 kB / 0.5109 GB, free: 43.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02134/0.4782, allocations: 10.23 MB / 0.5209 GB, free: 38.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001357/0.4784, allocations: 39.88 kB / 0.5209 GB, free: 38.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000497/0.4789, allocations: 147.1 kB / 0.5211 GB, free: 38.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002908/0.4818, allocations: 1.866 MB / 0.5229 GB, free: 37.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01623/0.4981, allocations: 9.185 MB / 0.5319 GB, free: 29.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03936/0.5375, allocations: 37.62 MB / 0.5686 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01363/0.5511, allocations: 3.726 MB / 0.5722 GB, free: 3.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002445/0.5536, allocations: 1.711 MB / 0.5739 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009596/0.5546, allocations: 0.6746 MB / 0.5746 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.5547, allocations: 43.12 kB / 0.5746 GB, free: 0.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=130): time 4.719e-06/0.5547, allocations: 4 kB / 0.5746 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of matching and sorting (n=136): time 0.04245/0.5971, allocations: 12.93 MB / 0.5872 GB, free: 3.773 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.5973, allocations: 153 kB / 0.5874 GB, free: 3.594 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00499/0.6023, allocations: 3.976 MB / 0.5913 GB, free: 15.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.6025, allocations: 45.7 kB / 0.5913 GB, free: 15.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002021/0.6045, allocations: 3.005 MB / 0.5942 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000714/0.6053, allocations: 0.5557 MB / 0.5948 GB, free: 11.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001418/0.6067, allocations: 1.142 MB / 0.5959 GB, free: 10.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.6068, allocations: 309.1 kB / 0.5962 GB, free: 10.52 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002627/0.6094, allocations: 1.924 MB / 0.5981 GB, free: 8.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004776/0.6142, allocations: 5.516 MB / 0.6035 GB, free: 1.266 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008442/0.6227, allocations: 8.071 MB / 0.6113 GB, free: 7.406 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-05/0.6228, allocations: 36 kB / 0.6114 GB, free: 7.371 MB / 446.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01376/0.6365, allocations: 7.928 MB / 0.6191 GB, free: 15.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.974e-05/0.6367, allocations: 56 kB / 0.6192 GB, free: 15.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/0.6368, allocations: 128 kB / 0.6193 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/0.6392, allocations: 0.9064 MB / 0.6202 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003819/0.643, allocations: 1.287 MB / 0.6214 GB, free: 13.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006361/0.6494, allocations: 5.191 MB / 0.6265 GB, free: 7.727 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/0.6532, allocations: 307.6 kB / 0.6268 GB, free: 7.426 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006581/0.6539, allocations: 352 kB / 0.6271 GB, free: 7.082 MB / 462.1 MB 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.003115/0.657, allocations: 1.998 MB / 0.6291 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006677/0.6577, allocations: 331.7 kB / 0.6294 GB, free: 4.742 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005323/0.663, allocations: 2.782 MB / 0.6321 GB, free: 1.945 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.143e-05/0.6631, allocations: 12 kB / 0.6321 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.6631, allocations: 4 kB / 0.6321 GB, free: 1.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.133e-05/0.6631, allocations: 11.97 kB / 0.6321 GB, free: 1.918 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/0.6758, allocations: 7.257 MB / 0.6392 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.32e-05/0.6759, allocations: 4 kB / 0.6392 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.6771, allocations: 247.6 kB / 0.6395 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002089/0.6792, allocations: 0.7214 MB / 0.6402 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.6793, allocations: 35.95 kB / 0.6402 GB, free: 9.586 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005985/0.6853, allocations: 4.749 MB / 0.6449 GB, free: 4.703 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.6853, allocations: 7.969 kB / 0.6449 GB, free: 4.695 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00753/0.6929, allocations: 5.139 MB / 0.6499 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009969/0.6939, allocations: 388.6 kB / 0.6502 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003692/0.6943, allocations: 20 kB / 0.6503 GB, free: 15.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.6955, allocations: 79.89 kB / 0.6503 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002654/0.6958, allocations: 96.45 kB / 0.6504 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.6959, allocations: 47.97 kB / 0.6505 GB, free: 14.88 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003447/0.6993, allocations: 2.489 MB / 0.6529 GB, free: 12.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6993, allocations: 0 / 0.6529 GB, free: 12.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003976/0.7033, allocations: 0.897 MB / 0.6538 GB, free: 11.52 MB / 494.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 (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.007688/0.711, allocations: 5.768 MB / 0.6594 GB, free: 5.703 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00747/0.7185, allocations: 5.053 MB / 0.6644 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.7185, allocations: 0 / 0.6644 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001778/0.7203, allocations: 1.368 MB / 0.6657 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.7228, allocations: 443.4 kB / 0.6661 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2885/1.011, allocations: 48.16 MB / 0.7131 GB, free: 157.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003398/1.015, allocations: 3.112 MB / 0.7162 GB, free: 155.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003787/1.019, allocations: 1.802 MB / 0.7179 GB, free: 155.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001963/1.021, allocations: 1.776 MB / 0.7197 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.193e-06/1.021, allocations: 7.844 kB / 0.7197 GB, free: 154.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1143/1.135, allocations: 68.08 MB / 0.7862 GB, free: 94.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.77, allocations: 7.922 kB / 0.7862 GB, free: 94.51 MB / 0.5137 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