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.001118/0.001118, allocations: 112 kB / 17.06 MB, free: 5.988 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.001138/0.001138, allocations: 195.9 kB / 18 MB, free: 5.074 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.283/1.283, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 43.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2265/0.2276, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.06172/0.2893, allocations: 65.58 MB / 465.8 MB, free: 7.023 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006554/0.2959, allocations: 5.457 MB / 471.3 MB, free: 1.551 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003058/0.2963, allocations: 8 kB / 471.3 MB, free: 1.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008976/0.2972, allocations: 353.9 kB / 471.6 MB, free: 1.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008491/0.2981, allocations: 0.5128 MB / 472.1 MB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01788/0.316, allocations: 7.455 MB / 479.6 MB, free: 9.227 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001731/0.3177, allocations: 1.555 MB / 481.2 MB, free: 7.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003318/0.3181, allocations: 212.9 kB / 481.4 MB, free: 7.449 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007593/0.3188, allocations: 0.6308 MB / 482 MB, free: 6.816 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006482/0.3195, allocations: 0.5683 MB / 482.6 MB, free: 6.246 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.3196, allocations: 84 kB / 482.6 MB, free: 6.164 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01663/0.3362, allocations: 10.21 MB / 492.9 MB, free: 11.94 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004087/0.3367, allocations: 311.3 kB / 493.2 MB, free: 11.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005569/0.3372, allocations: 446.3 kB / 493.6 MB, free: 11.2 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01232/0.3496, allocations: 5.955 MB / 499.5 MB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3496, allocations: 0 / 499.5 MB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3496, allocations: 0 / 499.5 MB, free: 5.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.3496, allocations: 0 / 499.5 MB, free: 5.23 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.003591/0.3532, allocations: 1.612 MB / 0.4894 GB, free: 3.566 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3533, allocations: 8.031 kB / 0.4894 GB, free: 3.559 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001304/0.3534, allocations: 110.5 kB / 0.4895 GB, free: 3.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004384/0.3539, allocations: 87.5 kB / 0.4896 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006838/0.3546, allocations: 453 kB / 0.49 GB, free: 2.875 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.477e-05/0.3546, allocations: 45.31 kB / 0.4901 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.794e-05/0.3547, allocations: 63.94 kB / 0.4901 GB, free: 2.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.3564, allocations: 0.8069 MB / 0.4909 GB, free: 1.957 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.3565, allocations: 3.984 kB / 0.4909 GB, free: 1.953 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.38e-05/0.3565, allocations: 28 kB / 0.491 GB, free: 1.926 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.3566, allocations: 16 kB / 0.491 GB, free: 1.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/0.3583, allocations: 1.028 MB / 0.492 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0167/0.3751, allocations: 12.79 MB / 0.5045 GB, free: 1.941 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.3768, allocations: 0.7375 MB / 0.5052 GB, free: 1.191 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005559/0.3774, allocations: 411.9 kB / 0.5056 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01456/0.3919, allocations: 12.24 MB / 0.5175 GB, free: 2.164 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.984e-05/0.392, allocations: 47.16 kB / 0.5176 GB, free: 2.109 MB / 446.1 MB Notification: Performance of pre-optimization done (n=78): time 2.935e-06/0.392, allocations: 0 / 0.5176 GB, free: 2.109 MB / 446.1 MB Notification: Performance of matching and sorting (n=88): time 0.01016/0.4022, allocations: 3.392 MB / 0.5209 GB, free: 14.62 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.4023, allocations: 64.39 kB / 0.521 GB, free: 14.55 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004491/0.4028, allocations: 356.5 kB / 0.5213 GB, free: 14.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.215e-05/0.4029, allocations: 41.7 kB / 0.5213 GB, free: 14.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.403, allocations: 241.2 kB / 0.5216 GB, free: 13.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.4033, allocations: 329.2 kB / 0.5219 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/0.4035, allocations: 158.6 kB / 0.522 GB, free: 13.42 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4037, allocations: 358.8 kB / 0.5224 GB, free: 13.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000586/0.4043, allocations: 369.8 kB / 0.5227 GB, free: 12.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009081/0.4052, allocations: 496.2 kB / 0.5232 GB, free: 12.18 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001674/0.4069, allocations: 0.9059 MB / 0.5241 GB, free: 11.24 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4069, allocations: 0 / 0.5241 GB, free: 11.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002509/0.4094, allocations: 1.121 MB / 0.5252 GB, free: 10.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.4094, allocations: 8 kB / 0.5252 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.4095, allocations: 0 / 0.5252 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008155/0.4103, allocations: 167.5 kB / 0.5254 GB, free: 9.922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007384/0.411, allocations: 191.7 kB / 0.5255 GB, free: 9.734 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003038/0.4141, allocations: 4.124 MB / 0.5296 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000453/0.4146, allocations: 20 kB / 0.5296 GB, free: 5.262 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.4147, allocations: 48.23 kB / 0.5296 GB, free: 5.215 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.0003775/0.4151, allocations: 221.6 kB / 0.5298 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004192/0.4155, allocations: 71.61 kB / 0.5299 GB, free: 4.918 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/0.4179, allocations: 1.277 MB / 0.5312 GB, free: 3.605 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.4179, allocations: 8 kB / 0.5312 GB, free: 3.598 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4179, allocations: 4 kB / 0.5312 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001888/0.4198, allocations: 1.324 MB / 0.5325 GB, free: 2.137 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003263/0.4231, allocations: 1.956 MB / 0.5344 GB, free: 120 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.4231, allocations: 0 / 0.5344 GB, free: 120 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2365/0.6596, allocations: 164.4 kB / 0.5345 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.6617, allocations: 294.6 kB / 0.5348 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/0.6619, allocations: 29.59 kB / 0.5348 GB, free: 138.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007067/0.6626, allocations: 1.292 MB / 0.5361 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6626, allocations: 1.375 kB / 0.5361 GB, free: 137.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003008/0.6656, allocations: 1.421 MB / 0.5375 GB, free: 137.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.6658, allocations: 134 kB / 0.5376 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.666, allocations: 20.19 kB / 0.5376 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005903/0.6665, allocations: 28.72 kB / 0.5377 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.6667, allocations: 56.86 kB / 0.5377 GB, free: 137.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.6668, allocations: 48.03 kB / 0.5378 GB, free: 137.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003078/0.6671, allocations: 280.1 kB / 0.538 GB, free: 137.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6671, allocations: 4.531 kB / 0.538 GB, free: 137.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003395/0.6705, allocations: 1.414 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.007831/0.6783, allocations: 3.608 MB / 0.5429 GB, free: 135.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.6804, allocations: 1.152 MB / 0.5441 GB, free: 135.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.6804, allocations: 3.938 kB / 0.5441 GB, free: 135.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008065/0.6812, allocations: 0.4907 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.001955/0.6832, allocations: 392.7 kB / 0.5449 GB, free: 135 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/0.6934, allocations: 7.07 MB / 0.5518 GB, free: 129.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.6937, allocations: 0.9088 MB / 0.5527 GB, free: 128.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007313/0.6944, allocations: 216 kB / 0.5529 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003182/0.6948, allocations: 227.3 kB / 0.5531 GB, free: 128.5 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6948, allocations: 0 / 0.5531 GB, free: 128.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0784/0.7732, allocations: 56.83 MB / 0.6086 GB, free: 71.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/14.59, allocations: 11.72 kB / 0.6086 GB, free: 71.91 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