Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2",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.001688/0.001688, allocations: 113.5 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.001868/0.001868, allocations: 200 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.413/1.413, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 43.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2392, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.07426/0.3135, allocations: 65.58 MB / 465.8 MB, free: 7.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00741/0.321, allocations: 5.453 MB / 471.3 MB, free: 1.535 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002985/0.3213, allocations: 4 kB / 471.3 MB, free: 1.531 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009725/0.3223, allocations: 350 kB / 471.6 MB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009441/0.3233, allocations: 0.5127 MB / 472.1 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01909/0.3424, allocations: 7.431 MB / 479.6 MB, free: 9.242 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002133/0.3445, allocations: 1.555 MB / 481.1 MB, free: 7.684 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.3449, allocations: 220.8 kB / 481.3 MB, free: 7.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.3459, allocations: 0.623 MB / 482 MB, free: 6.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000839/0.3468, allocations: 0.5683 MB / 482.5 MB, free: 6.262 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.347, allocations: 84 kB / 482.6 MB, free: 6.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0191/0.3661, allocations: 10.2 MB / 492.8 MB, free: 11.97 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004972/0.3666, allocations: 319.2 kB / 493.1 MB, free: 11.66 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000653/0.3673, allocations: 434.4 kB / 493.5 MB, free: 11.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01269/0.38, allocations: 5.959 MB / 499.5 MB, free: 5.258 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.38, allocations: 0 / 499.5 MB, free: 5.258 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.38, allocations: 0 / 499.5 MB, free: 5.258 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.3801, allocations: 4 kB / 499.5 MB, free: 5.254 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003766/0.3838, allocations: 1.604 MB / 0.4894 GB, free: 3.598 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3839, allocations: 12.03 kB / 0.4894 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.384, allocations: 110.5 kB / 0.4895 GB, free: 3.469 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004327/0.3845, allocations: 91.5 kB / 0.4896 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006456/0.3851, allocations: 448.9 kB / 0.49 GB, free: 2.902 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.7e-05/0.3852, allocations: 49.31 kB / 0.49 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.3853, allocations: 60 kB / 0.4901 GB, free: 2.797 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.3871, allocations: 0.8068 MB / 0.4909 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.965e-05/0.3872, allocations: 8 kB / 0.4909 GB, free: 1.977 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.3873, allocations: 24 kB / 0.4909 GB, free: 1.953 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.3873, allocations: 16 kB / 0.4909 GB, free: 1.938 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.3893, allocations: 1.028 MB / 0.4919 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01835/0.4076, allocations: 12.79 MB / 0.5044 GB, free: 1.973 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001833/0.4095, allocations: 0.7413 MB / 0.5052 GB, free: 1.219 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006114/0.4101, allocations: 407.9 kB / 0.5055 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01594/0.4261, allocations: 12.24 MB / 0.5175 GB, free: 2.195 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.741e-05/0.4262, allocations: 47.22 kB / 0.5175 GB, free: 2.141 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 2.615e-06/0.4262, allocations: 0 / 0.5175 GB, free: 2.141 MB / 446.1 MB Notification: Performance of matching and sorting (n=88): time 0.01012/0.4363, allocations: 3.392 MB / 0.5209 GB, free: 14.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.4364, allocations: 64.41 kB / 0.5209 GB, free: 14.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.4368, allocations: 356.5 kB / 0.5213 GB, free: 14.23 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.4369, allocations: 45.7 kB / 0.5213 GB, free: 14.18 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.4371, allocations: 237.2 kB / 0.5215 GB, free: 13.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/0.4373, allocations: 325.2 kB / 0.5218 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.4376, allocations: 158.6 kB / 0.522 GB, free: 13.46 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.4378, allocations: 366.8 kB / 0.5223 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006164/0.4384, allocations: 369.8 kB / 0.5227 GB, free: 12.73 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009952/0.4394, allocations: 492.2 kB / 0.5232 GB, free: 12.21 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/0.4413, allocations: 0.906 MB / 0.524 GB, free: 11.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4413, allocations: 0 / 0.524 GB, free: 11.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.0027/0.444, allocations: 1.125 MB / 0.5251 GB, free: 10.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.444, allocations: 8.266 kB / 0.5252 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.444, allocations: 8 kB / 0.5252 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008373/0.4449, allocations: 159.3 kB / 0.5253 GB, free: 9.949 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007679/0.4457, allocations: 191.7 kB / 0.5255 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003314/0.449, allocations: 4.124 MB / 0.5295 GB, free: 5.309 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.4494, allocations: 20 kB / 0.5295 GB, free: 5.289 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.4495, allocations: 47.97 kB / 0.5296 GB, free: 5.242 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003851/0.4499, allocations: 227.4 kB / 0.5298 GB, free: 5.012 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004023/0.4503, allocations: 59.67 kB / 0.5299 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002542/0.4529, allocations: 1.288 MB / 0.5311 GB, free: 3.629 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.4529, allocations: 8 kB / 0.5311 GB, free: 3.621 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.4529, allocations: 0 / 0.5311 GB, free: 3.621 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001938/0.4549, allocations: 1.327 MB / 0.5324 GB, free: 2.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003314/0.4582, allocations: 1.956 MB / 0.5343 GB, free: 144 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.4582, allocations: 0 / 0.5343 GB, free: 144 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1883/0.6465, allocations: 157 kB / 0.5345 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/0.6486, allocations: 296.6 kB / 0.5348 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/0.6487, allocations: 28.89 kB / 0.5348 GB, free: 138.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005961/0.6493, allocations: 1.291 MB / 0.5361 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6493, allocations: 1.281 kB / 0.5361 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002859/0.6522, allocations: 1.428 MB / 0.5375 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.6524, allocations: 129.5 kB / 0.5376 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.6525, allocations: 20.81 kB / 0.5376 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005249/0.653, allocations: 28.91 kB / 0.5376 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.6531, allocations: 51.62 kB / 0.5377 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.09e-05/0.6532, allocations: 46.41 kB / 0.5377 GB, free: 137.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002977/0.6535, allocations: 279.4 kB / 0.538 GB, free: 137.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6535, allocations: 4.625 kB / 0.538 GB, free: 137.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003231/0.6568, allocations: 1.417 MB / 0.5394 GB, free: 137 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007389/0.6642, allocations: 3.603 MB / 0.5429 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.6661, allocations: 1.158 MB / 0.544 GB, free: 135.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.361e-06/0.6661, allocations: 0 / 0.544 GB, free: 135.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007548/0.6668, allocations: 0.4938 MB / 0.5445 GB, free: 135 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001795/0.6687, allocations: 395.7 kB / 0.5449 GB, free: 134.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009494/0.6782, allocations: 7.069 MB / 0.5518 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.6785, allocations: 0.9128 MB / 0.5527 GB, free: 128.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006903/0.6792, allocations: 206.7 kB / 0.5529 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002978/0.6795, allocations: 227.3 kB / 0.5531 GB, free: 128.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6795, allocations: 3.938 kB / 0.5531 GB, free: 128.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08072/0.7602, allocations: 56.84 MB / 0.6086 GB, free: 71.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/15.21, allocations: 11.03 kB / 0.6086 GB, free: 71.89 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches