Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.0009249/0.0009249, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0008784/0.0008785, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.4 MB / 222.1 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04208/0.04208, allocations: 9.054 MB / 279.4 MB, free: 12.16 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005055/0.0005056, allocations: 15.94 kB / 339.2 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/0.08934, allocations: 49.19 MB / 388.4 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3107/0.4, allocations: 106.8 MB / 495.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.08835/0.4885, allocations: 88.48 MB / 0.57 GB, free: 3.637 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009465/0.4895, allocations: 4 kB / 0.57 GB, free: 3.633 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003312/0.4928, allocations: 1.129 MB / 0.5711 GB, free: 2.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003896/0.4967, allocations: 1.293 MB / 0.5723 GB, free: 1.203 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3322/0.8289, allocations: 23.21 MB / 0.595 GB, free: 17.02 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.8305, allocations: 0.7775 MB / 0.5958 GB, free: 17.02 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.8308, allocations: 104.3 kB / 0.5959 GB, free: 17 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09124/0.9221, allocations: 62.43 MB / 0.6568 GB, free: 2.184 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003992/0.9225, allocations: 261.3 kB / 0.6571 GB, free: 2.055 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.165e-05/0.9226, allocations: 20 kB / 0.6571 GB, free: 2.035 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05287/0.9755, allocations: 27.61 MB / 0.684 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.9758, allocations: 93.02 kB / 0.6841 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003755/0.9761, allocations: 147.2 kB / 0.6843 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01713/0.9933, allocations: 6.668 MB / 0.6908 GB, free: 8.484 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.9933, allocations: 0.6562 kB / 0.6908 GB, free: 8.484 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.9933, allocations: 0 / 0.6908 GB, free: 8.484 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.378e-06/0.9934, allocations: 0 / 0.6908 GB, free: 8.484 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.005468/0.9988, allocations: 2.002 MB / 0.6927 GB, free: 6.52 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.9989, allocations: 12.03 kB / 0.6928 GB, free: 6.508 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.651e-05/0.999, allocations: 80.45 kB / 0.6928 GB, free: 6.445 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005914/0.9996, allocations: 100.5 kB / 0.6929 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/1, allocations: 316.6 kB / 0.6932 GB, free: 6.062 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/1, allocations: 36.7 kB / 0.6933 GB, free: 6.043 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.725e-05/1, allocations: 36.09 kB / 0.6933 GB, free: 6.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/1.001, allocations: 0.6046 MB / 0.6939 GB, free: 5.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.964e-05/1.001, allocations: 4 kB / 0.6939 GB, free: 5.586 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.491e-05/1.001, allocations: 14.06 kB / 0.6939 GB, free: 5.582 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/1.002, allocations: 12.42 kB / 0.6939 GB, free: 5.574 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/1.003, allocations: 0.5735 MB / 0.6945 GB, free: 5.172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/1.005, allocations: 2.472 MB / 0.6969 GB, free: 2.926 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/1.006, allocations: 0.4958 MB / 0.6974 GB, free: 2.609 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3999/1.406, allocations: 136.2 MB / 0.8304 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/1.406, allocations: 38.8 kB / 0.8304 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=77): time 4.148e-06/1.406, allocations: 0.7031 kB / 0.8304 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=81): time 0.005441/1.412, allocations: 2.708 MB / 0.8331 GB, free: 256.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/1.412, allocations: 55.28 kB / 0.8331 GB, free: 256.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/1.412, allocations: 259.5 kB / 0.8334 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/1.412, allocations: 35.2 kB / 0.8334 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.66e-05/1.412, allocations: 192.8 kB / 0.8336 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00013/1.412, allocations: 255.9 kB / 0.8338 GB, free: 256.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-05/1.412, allocations: 11.34 kB / 0.8338 GB, free: 256.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.546e-05/1.412, allocations: 356 kB / 0.8342 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004379/1.413, allocations: 288.1 kB / 0.8344 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004719/1.413, allocations: 406 kB / 0.8348 GB, free: 255.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004739/1.414, allocations: 330 kB / 0.8351 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/1.414, allocations: 3.969 kB / 0.8351 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001199/1.415, allocations: 0.8204 MB / 0.8359 GB, free: 254.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/1.415, allocations: 7.938 kB / 0.836 GB, free: 254.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/1.415, allocations: 5.156 kB / 0.836 GB, free: 254.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000238/1.415, allocations: 65.14 kB / 0.836 GB, free: 254.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006592/1.416, allocations: 142.6 kB / 0.8362 GB, free: 254.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08904/1.505, allocations: 28.38 MB / 0.8639 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004953/1.506, allocations: 47.94 kB / 0.8639 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/1.506, allocations: 18.84 kB / 0.8639 GB, free: 227.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002412/1.506, allocations: 198.4 kB / 0.8641 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.284e-05/1.506, allocations: 39.53 kB / 0.8642 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/1.508, allocations: 1.741 MB / 0.8659 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/1.508, allocations: 10.53 kB / 0.8659 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/1.508, allocations: 4 kB / 0.8659 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001215/1.509, allocations: 1.327 MB / 0.8672 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/1.511, allocations: 1.768 MB / 0.8689 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/1.511, allocations: 0 / 0.8689 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/1.511, allocations: 87.88 kB / 0.869 GB, free: 222.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000373/1.511, allocations: 177.8 kB / 0.8692 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/1.511, allocations: 11.98 kB / 0.8692 GB, free: 222.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/1.513, allocations: 2.482 MB / 0.8716 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/1.513, allocations: 3.984 kB / 0.8716 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/1.515, allocations: 1.408 MB / 0.873 GB, free: 218 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/1.515, allocations: 140.4 kB / 0.8731 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.093e-05/1.515, allocations: 8 kB / 0.8731 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/1.515, allocations: 47.94 kB / 0.8732 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/1.515, allocations: 43.88 kB / 0.8732 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/1.515, allocations: 19.7 kB / 0.8732 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001913/1.515, allocations: 227.1 kB / 0.8734 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/1.515, allocations: 0 / 0.8734 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007357/1.523, allocations: 3.174 MB / 0.8765 GB, free: 214.5 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01624/1.539, allocations: 6.048 MB / 0.8824 GB, free: 208.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001956/1.541, allocations: 1.034 MB / 0.8834 GB, free: 207.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.541, allocations: 4 kB / 0.8834 GB, free: 207.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000644/1.542, allocations: 0.5172 MB / 0.884 GB, free: 207.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/1.543, allocations: 324.9 kB / 0.8843 GB, free: 207 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008832/1.552, allocations: 6.185 MB / 0.8903 GB, free: 200.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002348/1.552, allocations: 0.8642 MB / 0.8911 GB, free: 199.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003899/1.553, allocations: 145.7 kB / 0.8913 GB, free: 199.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/1.553, allocations: 163.4 kB / 0.8914 GB, free: 199.6 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/1.553, allocations: 0 / 0.8914 GB, free: 199.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1588/1.712, allocations: 123.5 MB / 1.012 GB, free: 75.78 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001522/1.712, allocations: 229 kB / 1.012 GB, free: 75.54 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.624/9.336, allocations: 0 / 1.012 GB, free: 75.54 MB / 0.5762 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1) Environment - environmentSimulation: