Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",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.0008777/0.0008776, 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.0009629/0.0009629, allocations: 177.3 kB / 15.95 MB, free: 216 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.281/1.281, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04142/0.04142, allocations: 9.057 MB / 279.4 MB, free: 12.25 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.0005562/0.0005565, allocations: 19.94 kB / 339.2 MB, free: 25.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09535, allocations: 49.17 MB / 388.4 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.315/0.4104, allocations: 105.5 MB / 493.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.08705/0.4976, allocations: 87.07 MB / 0.5673 GB, free: 6.336 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008126/0.4984, allocations: 7.938 kB / 0.5674 GB, free: 6.328 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.5007, allocations: 0.8177 MB / 0.5682 GB, free: 5.508 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002116/0.5028, allocations: 0.7831 MB / 0.5689 GB, free: 4.723 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3167/0.8196, allocations: 22.39 MB / 0.5908 GB, free: 17.19 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001539/0.8211, allocations: 0.7708 MB / 0.5915 GB, free: 17.19 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.8214, allocations: 95.88 kB / 0.5916 GB, free: 17.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02139/0.8428, allocations: 11.51 MB / 0.6029 GB, free: 17.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004115/0.8432, allocations: 255.5 kB / 0.6031 GB, free: 17.02 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.564e-05/0.8433, allocations: 27.16 kB / 0.6031 GB, free: 17.01 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04286/0.8862, allocations: 24.28 MB / 0.6268 GB, free: 16.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002537/0.8865, allocations: 88.11 kB / 0.6269 GB, free: 16.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004349/0.8869, allocations: 146.7 kB / 0.6271 GB, free: 16.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01545/0.9024, allocations: 6.461 MB / 0.6334 GB, free: 15.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.9024, allocations: 0 / 0.6334 GB, free: 15.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.9024, allocations: 1.719 kB / 0.6334 GB, free: 15.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.243e-06/0.9024, allocations: 0 / 0.6334 GB, free: 15.54 MB / 446.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.00525/0.9077, allocations: 2 MB / 0.6353 GB, free: 14.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.9077, allocations: 9.5 kB / 0.6353 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.575e-05/0.9078, allocations: 89.02 kB / 0.6354 GB, free: 14.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006041/0.9084, allocations: 90.47 kB / 0.6355 GB, free: 14.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003628/0.9088, allocations: 321.6 kB / 0.6358 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.9088, allocations: 30.88 kB / 0.6358 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.9089, allocations: 33.16 kB / 0.6359 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.91, allocations: 0.6023 MB / 0.6365 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.91, allocations: 10.97 kB / 0.6365 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.9101, allocations: 15.09 kB / 0.6365 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.9101, allocations: 15.97 kB / 0.6365 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.9112, allocations: 0.5673 MB / 0.6371 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002376/0.9136, allocations: 2.563 MB / 0.6396 GB, free: 26.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001018/0.9146, allocations: 0.5124 MB / 0.6401 GB, free: 26.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2259/1.141, allocations: 136.2 MB / 0.7731 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/1.141, allocations: 38.22 kB / 0.7731 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.367e-06/1.141, allocations: 0 / 0.7731 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006105/1.147, allocations: 2.701 MB / 0.7757 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/1.147, allocations: 63.36 kB / 0.7758 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002815/1.147, allocations: 252.6 kB / 0.776 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.356e-05/1.147, allocations: 29.64 kB / 0.7761 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/1.147, allocations: 187.4 kB / 0.7763 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/1.148, allocations: 260.7 kB / 0.7765 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.785e-05/1.148, allocations: 10.81 kB / 0.7765 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001485/1.148, allocations: 353.2 kB / 0.7768 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/1.148, allocations: 283 kB / 0.7771 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000523/1.149, allocations: 405.5 kB / 0.7775 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005374/1.149, allocations: 336.2 kB / 0.7778 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/1.149, allocations: 0 / 0.7778 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001365/1.151, allocations: 0.8066 MB / 0.7786 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/1.151, allocations: 8 kB / 0.7786 GB, free: 9.535 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/1.151, allocations: 5.125 kB / 0.7786 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002527/1.151, allocations: 66.47 kB / 0.7787 GB, free: 9.477 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004134/1.151, allocations: 111.7 kB / 0.7788 GB, free: 9.375 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2765/1.428, allocations: 22.56 MB / 0.8008 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005481/1.429, allocations: 54.95 kB / 0.8009 GB, free: 310.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/1.429, allocations: 17.66 kB / 0.8009 GB, free: 310.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 43 * 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: 2 * 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: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002761/1.429, allocations: 203.9 kB / 0.8011 GB, free: 310.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/1.429, allocations: 42.66 kB / 0.8011 GB, free: 310.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001906/1.431, allocations: 1.572 MB / 0.8027 GB, free: 310 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/1.431, allocations: 9.422 kB / 0.8027 GB, free: 310 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/1.431, allocations: 1.375 kB / 0.8027 GB, free: 310 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001229/1.432, allocations: 1.171 MB / 0.8038 GB, free: 309.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/1.434, allocations: 1.622 MB / 0.8054 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/1.434, allocations: 0 / 0.8054 GB, free: 308.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/1.434, allocations: 81 kB / 0.8055 GB, free: 308.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002248/1.435, allocations: 54.72 kB / 0.8055 GB, free: 308.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/1.435, allocations: 15.08 kB / 0.8055 GB, free: 308.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007398/1.435, allocations: 1.331 MB / 0.8068 GB, free: 307.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.435, allocations: 0 / 0.8068 GB, free: 307.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/1.437, allocations: 1.222 MB / 0.808 GB, free: 306.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/1.437, allocations: 149.6 kB / 0.8082 GB, free: 306.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.248e-05/1.437, allocations: 7.969 kB / 0.8082 GB, free: 306.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/1.438, allocations: 45.56 kB / 0.8082 GB, free: 306.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.614e-05/1.438, allocations: 48.41 kB / 0.8083 GB, free: 306.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.282e-05/1.438, allocations: 14.23 kB / 0.8083 GB, free: 306.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001972/1.438, allocations: 239.6 kB / 0.8085 GB, free: 306.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.438, allocations: 3.969 kB / 0.8085 GB, free: 306.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008513/1.446, allocations: 3.178 MB / 0.8116 GB, free: 306.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01592/1.462, allocations: 5.866 MB / 0.8174 GB, free: 304.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001525/1.464, allocations: 0.9556 MB / 0.8183 GB, free: 304 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/1.464, allocations: 0 / 0.8183 GB, free: 304 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006177/1.465, allocations: 0.4888 MB / 0.8188 GB, free: 303.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001502/1.466, allocations: 314.2 kB / 0.8191 GB, free: 303.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008881/1.475, allocations: 6.444 MB / 0.8254 GB, free: 298.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/1.475, allocations: 0.8648 MB / 0.8262 GB, free: 297.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003902/1.476, allocations: 169.2 kB / 0.8264 GB, free: 297.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001769/1.476, allocations: 164.7 kB / 0.8265 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of SimCode: time 7.02e-07/1.476, allocations: 0 / 0.8265 GB, free: 297.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1571/1.633, allocations: 122.7 MB / 0.9464 GB, free: 174.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/1.633, allocations: 234.1 kB / 0.9466 GB, free: 174.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.493/7.126, allocations: 0 / 0.9466 GB, free: 174.2 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1) Environment - environmentSimulation: