Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.MoistAir1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001373/0.001373, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001419/0.001419, allocations: 201.2 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.416/1.416, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.001898/0.001898, allocations: 55.91 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.254, allocations: 50.54 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.05939/0.3134, allocations: 50.66 MB / 459.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006569/0.32, allocations: 5.199 MB / 464.9 MB, free: 9.316 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002358/0.3203, allocations: 4 kB / 464.9 MB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007612/0.3211, allocations: 254.5 kB / 465.2 MB, free: 9.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000655/0.3218, allocations: 358 kB / 465.5 MB, free: 8.711 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01809/0.3399, allocations: 7.123 MB / 472.7 MB, free: 1.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.3415, allocations: 1.087 MB / 473.7 MB, free: 0.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002907/0.3418, allocations: 157.5 kB / 473.9 MB, free: 352 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007314/0.3491, allocations: 3.593 MB / 477.5 MB, free: 12.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006888/0.3498, allocations: 402.6 kB / 477.9 MB, free: 12.34 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.35, allocations: 56 kB / 477.9 MB, free: 12.29 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01899/0.3689, allocations: 9.959 MB / 487.9 MB, free: 2.316 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003822/0.3694, allocations: 227.4 kB / 488.1 MB, free: 2.094 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000482/0.3699, allocations: 306.9 kB / 488.4 MB, free: 1.793 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01292/0.3828, allocations: 5.526 MB / 494 MB, free: 12.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.3828, allocations: 0 / 494 MB, free: 12.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3828, allocations: 0 / 494 MB, free: 12.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.3829, allocations: 4 kB / 494 MB, free: 12.25 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.003452/0.3863, allocations: 1.406 MB / 495.4 MB, free: 10.79 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3864, allocations: 8.031 kB / 495.4 MB, free: 10.78 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.3865, allocations: 86.52 kB / 495.5 MB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003404/0.3868, allocations: 63.72 kB / 495.5 MB, free: 10.62 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000521/0.3874, allocations: 367.1 kB / 495.9 MB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/0.3874, allocations: 29 kB / 495.9 MB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.943e-05/0.3875, allocations: 48 kB / 495.9 MB, free: 10.15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.3889, allocations: 0.5843 MB / 496.5 MB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.3889, allocations: 0 / 496.5 MB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.489e-05/0.389, allocations: 16 kB / 496.5 MB, free: 9.539 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.389, allocations: 16 kB / 496.6 MB, free: 9.523 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.3904, allocations: 0.7417 MB / 497.3 MB, free: 8.785 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.4075, allocations: 11.96 MB / 0.4973 GB, free: 10.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.4088, allocations: 0.5351 MB / 0.4979 GB, free: 10.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003813/0.4092, allocations: 251.4 kB / 0.4981 GB, free: 9.953 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01587/0.4251, allocations: 11.87 MB / 0.5097 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.845e-05/0.4252, allocations: 50.88 kB / 0.5097 GB, free: 11.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=50): time 2.905e-06/0.4252, allocations: 3.938 kB / 0.5097 GB, free: 11.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=55): time 0.005984/0.4312, allocations: 2.125 MB / 0.5118 GB, free: 9.492 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.4313, allocations: 59.97 kB / 0.5119 GB, free: 9.418 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000375/0.4317, allocations: 318.9 kB / 0.5122 GB, free: 9.102 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.056e-05/0.4317, allocations: 37.7 kB / 0.5122 GB, free: 9.059 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.4319, allocations: 204.7 kB / 0.5124 GB, free: 8.855 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.4321, allocations: 198.3 kB / 0.5126 GB, free: 8.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.4323, allocations: 118.2 kB / 0.5127 GB, free: 8.539 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.4325, allocations: 346.8 kB / 0.513 GB, free: 8.191 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003975/0.4329, allocations: 241 kB / 0.5133 GB, free: 7.957 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006596/0.4335, allocations: 343.3 kB / 0.5136 GB, free: 7.586 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/0.4347, allocations: 0.5956 MB / 0.5142 GB, free: 6.957 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4347, allocations: 0 / 0.5142 GB, free: 6.957 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001843/0.4366, allocations: 0.7558 MB / 0.5149 GB, free: 6.188 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.046e-05/0.4366, allocations: 7.938 kB / 0.5149 GB, free: 6.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.4366, allocations: 4 kB / 0.5149 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000486/0.4371, allocations: 106.8 kB / 0.515 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004977/0.4377, allocations: 131.8 kB / 0.5152 GB, free: 5.934 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002773/0.4404, allocations: 3.472 MB / 0.5185 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.4408, allocations: 12 kB / 0.5186 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/0.4408, allocations: 31.98 kB / 0.5186 GB, free: 2.113 MB / 446.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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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.0003022/0.4412, allocations: 197.8 kB / 0.5188 GB, free: 1.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.4414, allocations: 47.72 kB / 0.5188 GB, free: 1.863 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.4432, allocations: 0.8152 MB / 0.5196 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4432, allocations: 4 kB / 0.5196 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.4432, allocations: 0 / 0.5196 GB, free: 1.008 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001245/0.4445, allocations: 0.7713 MB / 0.5204 GB, free: 172 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.4467, allocations: 1.297 MB / 0.5216 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.4467, allocations: 0 / 0.5216 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004571/0.4471, allocations: 107.8 kB / 0.5217 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009343/0.4481, allocations: 152.7 kB / 0.5219 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.477e-05/0.4481, allocations: 19.98 kB / 0.5219 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004753/0.4486, allocations: 0.6523 MB / 0.5225 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4486, allocations: 4.031 kB / 0.5226 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.4504, allocations: 0.9094 MB / 0.5234 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.4505, allocations: 113 kB / 0.5235 GB, free: 12.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.108e-05/0.4506, allocations: 12 kB / 0.5236 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003902/0.451, allocations: 20.08 kB / 0.5236 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.23e-05/0.4511, allocations: 32.39 kB / 0.5236 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.777e-05/0.4511, allocations: 35.97 kB / 0.5236 GB, free: 12.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002905/0.4514, allocations: 249.9 kB / 0.5239 GB, free: 12.44 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4515, allocations: 0 / 0.5239 GB, free: 12.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004002/0.4555, allocations: 1.341 MB / 0.5252 GB, free: 11.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008293/0.4638, allocations: 3.061 MB / 0.5282 GB, free: 8.008 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.4655, allocations: 0.8036 MB / 0.529 GB, free: 7.172 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/0.4655, allocations: 4.562 kB / 0.529 GB, free: 7.168 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005768/0.4661, allocations: 291.2 kB / 0.5292 GB, free: 6.883 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.4676, allocations: 277.3 kB / 0.5295 GB, free: 6.613 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009463/0.4771, allocations: 5.323 MB / 0.5347 GB, free: 1.113 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004749/0.4776, allocations: 0.8364 MB / 0.5355 GB, free: 256 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000547/0.4782, allocations: 156.1 kB / 0.5357 GB, free: 96 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1859/0.6641, allocations: 158 kB / 0.5358 GB, free: 130.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.041e-06/0.6642, allocations: 0 / 0.5358 GB, free: 130.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07646/0.7406, allocations: 50.62 MB / 0.5853 GB, free: 88.65 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.25, allocations: 11.73 kB / 0.5853 GB, free: 88.64 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir1_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_MoistAir1.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1)