Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.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.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed",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.001519/0.001519, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.00171/0.001711, allocations: 183.9 kB / 18.71 MB, free: 4.34 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.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2248/0.2248, allocations: 44.19 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3776/0.3791, allocations: 60.81 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.004653/0.3838, allocations: 2.607 MB / 0.5209 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.3854, allocations: 0.6487 MB / 0.5216 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004234/0.3859, allocations: 9.344 kB / 0.5216 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002493/0.3861, allocations: 42.22 kB / 0.5216 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003649/0.3866, allocations: 85.34 kB / 0.5217 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004862/0.3871, allocations: 90.09 kB / 0.5218 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005623/0.3876, allocations: 333.8 kB / 0.5221 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.3879, allocations: 81.78 kB / 0.5222 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003061/0.3882, allocations: 125.6 kB / 0.5223 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.3885, allocations: 136.7 kB / 0.5224 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.358e-05/0.3885, allocations: 21.44 kB / 0.5225 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.383e-05/0.3886, allocations: 21.88 kB / 0.5225 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.888e-05/0.3887, allocations: 59.19 kB / 0.5225 GB, free: 484 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.3889, allocations: 147 kB / 0.5227 GB, free: 392 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000499/0.3894, allocations: 303.9 kB / 0.523 GB, free: 264 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3894, allocations: 4 kB / 0.523 GB, free: 260 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3894, allocations: 0 / 0.523 GB, free: 260 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.763e-05/0.3894, allocations: 0.7031 kB / 0.523 GB, free: 260 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001207/0.3907, allocations: 0.5837 MB / 0.5235 GB, free: 15.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.3907, allocations: 9.625 kB / 0.5236 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.3908, allocations: 68.31 kB / 0.5236 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.3909, allocations: 33.77 kB / 0.5237 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/0.3915, allocations: 276.4 kB / 0.5239 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.3915, allocations: 19.97 kB / 0.5239 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/0.3916, allocations: 30 kB / 0.524 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/0.3922, allocations: 280.8 kB / 0.5242 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.3923, allocations: 10.5 kB / 0.5242 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.3923, allocations: 6.688 kB / 0.5242 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.3923, allocations: 6.531 kB / 0.5243 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004676/0.3928, allocations: 187.7 kB / 0.5244 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.3949, allocations: 1.31 MB / 0.5257 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004677/0.3954, allocations: 240.4 kB / 0.5259 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000249/0.3956, allocations: 105.7 kB / 0.526 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.3957, allocations: 2.844 kB / 0.526 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.3957, allocations: 42.05 kB / 0.5261 GB, free: 13.84 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 2.104e-06/0.3957, allocations: 0 / 0.5261 GB, free: 13.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.003203/0.3989, allocations: 1.564 MB / 0.5276 GB, free: 12.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.3991, allocations: 141.3 kB / 0.5277 GB, free: 12.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003184/0.3994, allocations: 229.7 kB / 0.528 GB, free: 12.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.3994, allocations: 31.08 kB / 0.528 GB, free: 12.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.3996, allocations: 182.6 kB / 0.5282 GB, free: 12.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.3997, allocations: 115.4 kB / 0.5283 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.3999, allocations: 74.03 kB / 0.5284 GB, free: 11.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4001, allocations: 338.1 kB / 0.5287 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003063/0.4004, allocations: 103.4 kB / 0.5288 GB, free: 11.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.4008, allocations: 230.9 kB / 0.529 GB, free: 11.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007034/0.4015, allocations: 384.2 kB / 0.5294 GB, free: 11.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4015, allocations: 1.531 kB / 0.5294 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008782/0.4024, allocations: 401 kB / 0.5297 GB, free: 10.86 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.4025, allocations: 7.312 kB / 0.5298 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4025, allocations: 7.781 kB / 0.5298 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.679e-05/0.4025, allocations: 7.062 kB / 0.5298 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.4029, allocations: 98.66 kB / 0.5299 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.403, allocations: 7 kB / 0.5299 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.4032, allocations: 32.67 kB / 0.5299 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.729e-05/0.4033, allocations: 23.14 kB / 0.5299 GB, free: 10.8 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002137/0.4035, allocations: 155.7 kB / 0.5301 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.4036, allocations: 29.88 kB / 0.5301 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.091e-05/0.4037, allocations: 35.45 kB / 0.5301 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4038, allocations: 5.422 kB / 0.5301 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.4038, allocations: 1.062 kB / 0.5301 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.4038, allocations: 5.141 kB / 0.5301 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/0.4055, allocations: 0.9791 MB / 0.5311 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.4055, allocations: 1.375 kB / 0.5311 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.4059, allocations: 81.38 kB / 0.5312 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.258e-06/0.4059, allocations: 3.781 kB / 0.5312 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.4059, allocations: 15.31 kB / 0.5312 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4059, allocations: 2.188 kB / 0.5312 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.4059, allocations: 6.469 kB / 0.5312 GB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.407, allocations: 0.7217 MB / 0.5319 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.4071, allocations: 105 kB / 0.532 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.4072, allocations: 11.81 kB / 0.532 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.4075, allocations: 21.86 kB / 0.532 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.932e-05/0.4076, allocations: 28 kB / 0.5321 GB, free: 9.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.4076, allocations: 14.86 kB / 0.5321 GB, free: 9.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001788/0.4078, allocations: 154.2 kB / 0.5322 GB, free: 8.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4078, allocations: 0 / 0.5322 GB, free: 8.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005476/0.4084, allocations: 67.84 kB / 0.5323 GB, free: 8.922 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001352/0.4097, allocations: 1.276 MB / 0.5335 GB, free: 7.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007611/0.4105, allocations: 287.7 kB / 0.5338 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4105, allocations: 0 / 0.5338 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003147/0.4109, allocations: 130.3 kB / 0.5339 GB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007116/0.4116, allocations: 33.2 kB / 0.534 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004896/0.4165, allocations: 3.511 MB / 0.5374 GB, free: 4.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.4169, allocations: 0.774 MB / 0.5382 GB, free: 4.031 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001665/0.4171, allocations: 34.23 kB / 0.5382 GB, free: 4.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.4172, allocations: 92.22 kB / 0.5383 GB, free: 3.938 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4172, allocations: 0 / 0.5383 GB, free: 3.938 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02891/0.4462, allocations: 5.311 MB / 0.5435 GB, free: 1.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.392/8.838, allocations: 7.109 kB / 0.5435 GB, free: 1.293 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches