Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_3_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.001143/0.001143, allocations: 106.2 kB / 16.41 MB, free: 6.508 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.001198/0.001198, allocations: 194.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2077/0.2077, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 69.47 kB / 441.3 MB, free: 6.125 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1052, allocations: 57.78 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01389/0.1192, allocations: 11.81 MB / 0.4989 GB, free: 416 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00881/0.128, allocations: 3.91 MB / 0.5027 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002316/0.1304, allocations: 67.81 kB / 0.5028 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005363/0.1358, allocations: 2.71 MB / 0.5055 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005065/0.1409, allocations: 1.934 MB / 0.5073 GB, free: 7.758 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.1428, allocations: 0.6939 MB / 0.508 GB, free: 7.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005468/0.1483, allocations: 3.765 MB / 0.5117 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005046/0.1534, allocations: 3.785 MB / 0.5154 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002766/0.1562, allocations: 1.55 MB / 0.5169 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003177/0.1594, allocations: 2.13 MB / 0.519 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.1605, allocations: 348 kB / 0.5193 GB, free: 11.4 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002771/0.1633, allocations: 1.069 MB / 0.5204 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002541/0.1659, allocations: 1.944 MB / 0.5223 GB, free: 8.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003754/0.1697, allocations: 2.264 MB / 0.5245 GB, free: 6.105 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.24/0.4097, allocations: 7.237 MB / 0.5315 GB, free: 14.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.4098, allocations: 0 / 0.5315 GB, free: 14.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.845e-06/0.4098, allocations: 2.625 kB / 0.5315 GB, free: 14.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002967/0.4101, allocations: 0 / 0.5315 GB, free: 14.59 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.02072/0.4308, allocations: 5.481 MB / 0.5369 GB, free: 12.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.4309, allocations: 20.12 kB / 0.5369 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002212/0.4331, allocations: 0.7245 MB / 0.5376 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008151/0.4413, allocations: 1.92 MB / 0.5395 GB, free: 12.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006595/0.4479, allocations: 2.831 MB / 0.5423 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.4482, allocations: 244.2 kB / 0.5425 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001701/0.4499, allocations: 323.2 kB / 0.5428 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02181/0.4717, allocations: 10.73 MB / 0.5533 GB, free: 9.223 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001487/0.4719, allocations: 47.39 kB / 0.5533 GB, free: 9.215 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006008/0.4725, allocations: 150 kB / 0.5535 GB, free: 9.148 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003327/0.4758, allocations: 1.979 MB / 0.5554 GB, free: 8.828 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01732/0.4932, allocations: 9.64 MB / 0.5648 GB, free: 5.914 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04873/0.542, allocations: 39.18 MB / 0.6031 GB, free: 15.92 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01367/0.5557, allocations: 3.934 MB / 0.6069 GB, free: 11.86 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002635/0.5584, allocations: 1.879 MB / 0.6088 GB, free: 9.973 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009601/0.5593, allocations: 0.6841 MB / 0.6094 GB, free: 9.188 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/0.5594, allocations: 55.33 kB / 0.6095 GB, free: 9.125 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.229e-06/0.5594, allocations: 0 / 0.6095 GB, free: 9.125 MB / 462.1 MB Notification: Performance of matching and sorting (n=157): time 0.04467/0.6041, allocations: 14.2 MB / 0.6233 GB, free: 10.88 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.322e-05/0.6042, allocations: 145.5 kB / 0.6235 GB, free: 10.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005947/0.6102, allocations: 4.098 MB / 0.6275 GB, free: 6.586 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000416/0.6106, allocations: 45.7 kB / 0.6275 GB, free: 6.535 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002241/0.6129, allocations: 3.253 MB / 0.6307 GB, free: 3.309 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/0.6139, allocations: 0.6465 MB / 0.6313 GB, free: 2.672 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001906/0.6158, allocations: 1.198 MB / 0.6325 GB, free: 1.461 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.493e-05/0.6159, allocations: 305.1 kB / 0.6328 GB, free: 1.16 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003164/0.6191, allocations: 2.096 MB / 0.6348 GB, free: 15.06 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005705/0.6248, allocations: 5.8 MB / 0.6405 GB, free: 7.469 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009608/0.6345, allocations: 8.556 MB / 0.6489 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00011/0.6346, allocations: 36 kB / 0.6489 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.01646/0.6511, allocations: 8.41 MB / 0.6571 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.6513, allocations: 74.09 kB / 0.6572 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002227/0.6516, allocations: 132 kB / 0.6573 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002724/0.6543, allocations: 0.9109 MB / 0.6582 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004581/0.6589, allocations: 1.365 MB / 0.6595 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007146/0.6661, allocations: 5.199 MB / 0.6646 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00466/0.6708, allocations: 319.8 kB / 0.6649 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001109/0.6719, allocations: 373.1 kB / 0.6653 GB, free: 12.92 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (718): * Single equations (assignments): 714 * 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.004253/0.6762, allocations: 2.091 MB / 0.6673 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009242/0.6771, allocations: 371.1 kB / 0.6677 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006725/0.6839, allocations: 3.163 MB / 0.6708 GB, free: 7.277 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-05/0.6839, allocations: 20 kB / 0.6708 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/0.684, allocations: 4 kB / 0.6708 GB, free: 7.254 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.693e-05/0.684, allocations: 5.672 kB / 0.6708 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0166/0.7006, allocations: 7.966 MB / 0.6786 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.7007, allocations: 0 / 0.6786 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.7021, allocations: 303.6 kB / 0.6788 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.7043, allocations: 0.7124 MB / 0.6795 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.7044, allocations: 39.97 kB / 0.6796 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005854/0.7103, allocations: 4.767 MB / 0.6842 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.7103, allocations: 0 / 0.6842 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00864/0.719, allocations: 5.745 MB / 0.6898 GB, free: 3.523 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001841/0.7209, allocations: 0.6468 MB / 0.6905 GB, free: 2.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005438/0.7214, allocations: 27.84 kB / 0.6905 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001433/0.7229, allocations: 91.88 kB / 0.6906 GB, free: 2.742 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.7232, allocations: 100.7 kB / 0.6907 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.7233, allocations: 59.97 kB / 0.6907 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003763/0.7271, allocations: 2.562 MB / 0.6932 GB, free: 12 kB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/0.7271, allocations: 0 / 0.6932 GB, free: 12 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004649/0.7318, allocations: 0.9531 MB / 0.6942 GB, free: 15.05 MB / 0.545 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 (126): * Single equations (assignments): 122 * 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.008964/0.7408, allocations: 6.374 MB / 0.7004 GB, free: 8.645 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007516/0.7483, allocations: 5.014 MB / 0.7053 GB, free: 3.645 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.7483, allocations: 0 / 0.7053 GB, free: 3.645 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002203/0.7506, allocations: 1.55 MB / 0.7068 GB, free: 2.09 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002774/0.7533, allocations: 445.5 kB / 0.7072 GB, free: 1.656 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2704/1.024, allocations: 45.62 MB / 0.7518 GB, free: 211 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004129/1.028, allocations: 3.246 MB / 0.755 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004711/1.033, allocations: 1.89 MB / 0.7568 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002538/1.035, allocations: 1.879 MB / 0.7586 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of SimCode: time 6.92e-07/1.035, allocations: 0 / 0.7586 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1058/1.141, allocations: 67.45 MB / 0.8245 GB, free: 161.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.5/18.64, allocations: 11.86 kB / 0.8245 GB, free: 161.6 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches