Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.IdealGasH2O.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.IdealGasH2O,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001837/0.001837, allocations: 121.8 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002169/0.002169, allocations: 201.2 kB / 18.74 MB, free: 4.332 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.453/1.453, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.001928/0.001928, allocations: 63.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.2629, allocations: 50.55 MB / 409.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.4348/0.6977, allocations: 152.2 MB / 0.5481 GB, free: 1.461 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.6998, allocations: 2.542 MB / 0.5506 GB, free: 1.449 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.952e-05/0.6999, allocations: 1.031 kB / 0.5506 GB, free: 1.449 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.7001, allocations: 29.47 kB / 0.5506 GB, free: 1.449 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008013/0.7009, allocations: 340.3 kB / 0.5509 GB, free: 1.449 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.701, allocations: 65.64 kB / 0.551 GB, free: 1.445 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.7012, allocations: 99.56 kB / 0.5511 GB, free: 1.445 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.68e-05/0.7012, allocations: 8.094 kB / 0.5511 GB, free: 1.445 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.894e-05/0.7013, allocations: 40.03 kB / 0.5511 GB, free: 1.445 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.791e-05/0.7014, allocations: 43.67 kB / 0.5512 GB, free: 1.445 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.156e-05/0.7014, allocations: 7.062 kB / 0.5512 GB, free: 1.445 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006368/0.702, allocations: 367.2 kB / 0.5515 GB, free: 1.441 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 1.411e-05/0.7021, allocations: 8.922 kB / 0.5515 GB, free: 1.441 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.09e-05/0.7021, allocations: 37.92 kB / 0.5516 GB, free: 1.441 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004489/0.7026, allocations: 316.1 kB / 0.5519 GB, free: 1.426 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.7026, allocations: 0.9062 kB / 0.5519 GB, free: 1.426 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.7026, allocations: 0 / 0.5519 GB, free: 1.426 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.7026, allocations: 3.688 kB / 0.5519 GB, free: 1.426 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0009855/0.7036, allocations: 463.6 kB / 0.5523 GB, free: 17.03 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.7036, allocations: 10.66 kB / 0.5523 GB, free: 17.03 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.029e-05/0.7037, allocations: 41.44 kB / 0.5524 GB, free: 16.99 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005914/0.7096, allocations: 462.5 kB / 0.5528 GB, free: 16.98 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.7098, allocations: 183.4 kB / 0.553 GB, free: 16.78 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.7098, allocations: 7.5 kB / 0.553 GB, free: 16.78 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.928e-05/0.7099, allocations: 8.188 kB / 0.553 GB, free: 16.78 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007031/0.7107, allocations: 293 kB / 0.5533 GB, free: 16.75 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.7107, allocations: 6 kB / 0.5533 GB, free: 16.74 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.57e-05/0.7107, allocations: 8 kB / 0.5533 GB, free: 16.74 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-06/0.7107, allocations: 2.719 kB / 0.5533 GB, free: 16.74 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007604/0.7115, allocations: 276.2 kB / 0.5536 GB, free: 16.74 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002578/0.7118, allocations: 249 kB / 0.5538 GB, free: 16.53 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003716/0.7122, allocations: 166.2 kB / 0.554 GB, free: 16.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.7124, allocations: 89.61 kB / 0.554 GB, free: 16.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.7124, allocations: 1.969 kB / 0.554 GB, free: 16.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.7124, allocations: 35.36 kB / 0.5541 GB, free: 16.46 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 1.643e-06/0.7124, allocations: 0.9375 kB / 0.5541 GB, free: 16.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=24): time 0.002001/0.7144, allocations: 0.5808 MB / 0.5546 GB, free: 16.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.7145, allocations: 53.75 kB / 0.5547 GB, free: 16.33 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.177e-05/0.7146, allocations: 108.8 kB / 0.5548 GB, free: 16.23 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.102e-05/0.7146, allocations: 32.33 kB / 0.5548 GB, free: 16.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.154e-05/0.7147, allocations: 85.39 kB / 0.5549 GB, free: 16.12 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.824e-05/0.7147, allocations: 85.69 kB / 0.555 GB, free: 16.07 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.897e-05/0.7148, allocations: 46.73 kB / 0.555 GB, free: 16.05 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.715, allocations: 320.5 kB / 0.5553 GB, free: 15.74 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.7153, allocations: 102.3 kB / 0.5554 GB, free: 15.74 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.7156, allocations: 102.7 kB / 0.5555 GB, free: 15.74 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005544/0.7161, allocations: 229.6 kB / 0.5558 GB, free: 15.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.7161, allocations: 1.469 kB / 0.5558 GB, free: 15.73 MB / 478.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006623/0.7168, allocations: 283.8 kB / 0.556 GB, free: 15.68 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.7168, allocations: 5.844 kB / 0.556 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.7168, allocations: 3 kB / 0.556 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.7169, allocations: 3.938 kB / 0.556 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.7173, allocations: 58.97 kB / 0.5561 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.7173, allocations: 4.312 kB / 0.5561 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.7176, allocations: 16.2 kB / 0.5561 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.7176, allocations: 12.95 kB / 0.5561 GB, free: 15.68 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (24): * Single equations (assignments): 24 * 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.0001251/0.7177, allocations: 125.4 kB / 0.5563 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.389e-05/0.7178, allocations: 8.766 kB / 0.5563 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008673/0.7187, allocations: 359.3 kB / 0.5566 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.7187, allocations: 6.031 kB / 0.5566 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.7187, allocations: 3.859 kB / 0.5566 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.7187, allocations: 0 / 0.5566 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001415/0.7201, allocations: 0.7263 MB / 0.5573 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.7201, allocations: 2.5 kB / 0.5573 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003861/0.7205, allocations: 58.12 kB / 0.5574 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.7206, allocations: 3.781 kB / 0.5574 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.7206, allocations: 11.16 kB / 0.5574 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.7206, allocations: 3 kB / 0.5574 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.7206, allocations: 0.9062 kB / 0.5574 GB, free: 15.15 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007913/0.7214, allocations: 414.1 kB / 0.5578 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.415e-05/0.7215, allocations: 97.7 kB / 0.5579 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.7215, allocations: 3.094 kB / 0.5579 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.7219, allocations: 17.72 kB / 0.5579 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.7219, allocations: 26.58 kB / 0.5579 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.722, allocations: 14.44 kB / 0.5579 GB, free: 14.86 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.588e-05/0.722, allocations: 89.12 kB / 0.558 GB, free: 14.79 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.722, allocations: 0 / 0.558 GB, free: 14.79 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0003908/0.7224, allocations: 50.88 kB / 0.5581 GB, free: 14.79 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 simulation (26): * Single equations (assignments): 26 * 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.00133/0.7238, allocations: 0.9697 MB / 0.559 GB, free: 14.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007199/0.7245, allocations: 255.2 kB / 0.5593 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.7245, allocations: 0 / 0.5593 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003202/0.7248, allocations: 138.2 kB / 0.5594 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006067/0.7255, allocations: 58.67 kB / 0.5595 GB, free: 14.06 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/0.7288, allocations: 2.108 MB / 0.5615 GB, free: 12.77 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.7293, allocations: 0.7062 MB / 0.5622 GB, free: 12.07 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003538/0.7296, allocations: 58.58 kB / 0.5623 GB, free: 12.06 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.7299, allocations: 60.47 kB / 0.5623 GB, free: 12.05 MB / 478.1 MB Notification: Performance of SimCode: time 1.734e-06/0.7299, allocations: 0 / 0.5623 GB, free: 12.05 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02666/0.7565, allocations: 5.597 MB / 0.5678 GB, free: 11.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.731, allocations: 6.406 kB / 0.5678 GB, free: 11.59 MB / 478.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.IdealGasH2O.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Media.Examples.IdealGasH2O_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_1_0-beta_om_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1)