Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001803/0.001803, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001967/0.001967, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 227.7 MB / 247.2 MB, free: 10.17 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 64.03 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2497, allocations: 50.55 MB / 409.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.07278/0.3226, allocations: 65.71 MB / 474.8 MB, free: 15.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007101/0.3297, allocations: 5.468 MB / 480.3 MB, free: 10.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000333/0.3301, allocations: 8 kB / 480.3 MB, free: 10.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009644/0.3311, allocations: 346 kB / 480.6 MB, free: 9.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009748/0.3321, allocations: 0.505 MB / 481.1 MB, free: 9.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0183/0.3504, allocations: 7.448 MB / 488.6 MB, free: 1.738 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002123/0.3525, allocations: 1.543 MB / 490.1 MB, free: 192 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.353, allocations: 224.8 kB / 490.3 MB, free: 15.96 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001246/0.3542, allocations: 0.623 MB / 490.9 MB, free: 15.33 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.3554, allocations: 0.5645 MB / 491.5 MB, free: 14.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.3555, allocations: 84 kB / 491.6 MB, free: 14.68 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01949/0.375, allocations: 10.22 MB / 0.4901 GB, free: 4.445 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005254/0.3756, allocations: 319.2 kB / 0.4904 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006808/0.3763, allocations: 442.4 kB / 0.4908 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.3896, allocations: 5.974 MB / 0.4966 GB, free: 13.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.3896, allocations: 0 / 0.4966 GB, free: 13.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3896, allocations: 4 kB / 0.4966 GB, free: 13.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.472e-05/0.3897, allocations: 0 / 0.4966 GB, free: 13.71 MB / 430.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.004052/0.3937, allocations: 1.612 MB / 0.4982 GB, free: 12.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3938, allocations: 12.03 kB / 0.4982 GB, free: 12.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001458/0.3939, allocations: 102.5 kB / 0.4983 GB, free: 11.92 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004593/0.3944, allocations: 95.5 kB / 0.4984 GB, free: 11.82 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007059/0.3951, allocations: 441.1 kB / 0.4988 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.411e-05/0.3952, allocations: 49.31 kB / 0.4989 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.3953, allocations: 63.95 kB / 0.4989 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001884/0.3972, allocations: 0.8068 MB / 0.4997 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.3973, allocations: 8 kB / 0.4997 GB, free: 10.42 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.846e-05/0.3974, allocations: 24 kB / 0.4997 GB, free: 10.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.3974, allocations: 16 kB / 0.4998 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002078/0.3995, allocations: 1.028 MB / 0.5008 GB, free: 9.355 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.4183, allocations: 12.78 MB / 0.5132 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.4203, allocations: 0.7373 MB / 0.514 GB, free: 9.688 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006419/0.421, allocations: 414.6 kB / 0.5144 GB, free: 9.281 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01639/0.4374, allocations: 12.24 MB / 0.5263 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/0.4375, allocations: 47.59 kB / 0.5263 GB, free: 10.61 MB / 462.1 MB Notification: Performance of pre-optimization done (n=78): time 2.434e-06/0.4375, allocations: 0 / 0.5263 GB, free: 10.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=88): time 0.01003/0.4475, allocations: 3.373 MB / 0.5296 GB, free: 7.148 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.4476, allocations: 64.34 kB / 0.5297 GB, free: 7.074 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004355/0.448, allocations: 356.5 kB / 0.53 GB, free: 6.715 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.552e-05/0.4481, allocations: 45.7 kB / 0.5301 GB, free: 6.664 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.4483, allocations: 245.2 kB / 0.5303 GB, free: 6.422 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000266/0.4486, allocations: 321.2 kB / 0.5306 GB, free: 6.105 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.4489, allocations: 166.6 kB / 0.5308 GB, free: 5.934 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.449, allocations: 358.8 kB / 0.5311 GB, free: 5.574 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006091/0.4497, allocations: 369.8 kB / 0.5315 GB, free: 5.215 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009848/0.4507, allocations: 0.4885 MB / 0.532 GB, free: 4.691 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00182/0.4525, allocations: 0.9059 MB / 0.5328 GB, free: 3.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4525, allocations: 0 / 0.5328 GB, free: 3.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002689/0.4552, allocations: 1.121 MB / 0.5339 GB, free: 2.613 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.4552, allocations: 4 kB / 0.5339 GB, free: 2.609 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.4553, allocations: 4 kB / 0.5339 GB, free: 2.605 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008201/0.4561, allocations: 171.5 kB / 0.5341 GB, free: 2.426 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000762/0.4569, allocations: 191.7 kB / 0.5343 GB, free: 2.238 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1987/0.6556, allocations: 4.105 MB / 0.5383 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005336/0.6562, allocations: 17.84 kB / 0.5383 GB, free: 130 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.6563, allocations: 44.36 kB / 0.5384 GB, free: 130 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.000366/0.6567, allocations: 232.1 kB / 0.5386 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004207/0.6571, allocations: 64.73 kB / 0.5386 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002588/0.6597, allocations: 1.28 MB / 0.5399 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.6597, allocations: 7.938 kB / 0.5399 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.6597, allocations: 1.844 kB / 0.5399 GB, free: 129.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00159/0.6613, allocations: 1.321 MB / 0.5412 GB, free: 128.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/0.6642, allocations: 1.977 MB / 0.5431 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.6643, allocations: 0 / 0.5431 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006279/0.6649, allocations: 162.2 kB / 0.5433 GB, free: 127.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001591/0.6665, allocations: 293.8 kB / 0.5436 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.523e-05/0.6666, allocations: 31.66 kB / 0.5436 GB, free: 127.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005745/0.6672, allocations: 1.291 MB / 0.5448 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.6672, allocations: 3.703 kB / 0.5448 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002324/0.6695, allocations: 1.421 MB / 0.5462 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.6697, allocations: 128.4 kB / 0.5464 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.964e-05/0.6698, allocations: 21.41 kB / 0.5464 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005487/0.6704, allocations: 31.22 kB / 0.5464 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.18e-05/0.6705, allocations: 53.08 kB / 0.5465 GB, free: 125.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.187e-05/0.6706, allocations: 42.88 kB / 0.5465 GB, free: 125.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002892/0.6709, allocations: 282.9 kB / 0.5468 GB, free: 125.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6709, allocations: 0 / 0.5468 GB, free: 125.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003343/0.6742, allocations: 1.422 MB / 0.5482 GB, free: 125.3 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.007879/0.6822, allocations: 3.623 MB / 0.5517 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.6842, allocations: 1.162 MB / 0.5528 GB, free: 123.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.6842, allocations: 0 / 0.5528 GB, free: 123.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007617/0.685, allocations: 494.7 kB / 0.5533 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.6868, allocations: 391.6 kB / 0.5537 GB, free: 122.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01012/0.697, allocations: 7.082 MB / 0.5606 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.6973, allocations: 0.9128 MB / 0.5615 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006734/0.6979, allocations: 211.2 kB / 0.5617 GB, free: 114.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.6982, allocations: 223.4 kB / 0.5619 GB, free: 114.1 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/0.6982, allocations: 0 / 0.5619 GB, free: 114.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0803/0.7786, allocations: 57.06 MB / 0.6176 GB, free: 57.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.52/15.3, allocations: 19.5 kB / 0.6176 GB, free: 57.25 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir2.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1)