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.00128/0.001281, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00138/0.001379, allocations: 191.6 kB / 16.13 MB, free: 6.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.1 MB / 222 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04684/0.04684, allocations: 9.086 MB / 278.4 MB, free: 12.39 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.001438/0.001438, allocations: 63.91 kB / 337.4 MB, free: 25.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 48.16 MB / 385.6 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.3539/0.4562, allocations: 129.4 MB / 0.5029 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4065/0.8628, allocations: 111.3 MB / 0.6115 GB, free: 1.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007293/0.8635, allocations: 7.094 kB / 0.6116 GB, free: 1.16 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002375/0.866, allocations: 0.8534 MB / 0.6124 GB, free: 1.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002201/0.8682, allocations: 0.9386 MB / 0.6133 GB, free: 1.16 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07787/0.9461, allocations: 24.53 MB / 0.6373 GB, free: 456 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00256/0.9486, allocations: 1.787 MB / 0.639 GB, free: 148 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.949, allocations: 100.9 kB / 0.6391 GB, free: 124 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01997/0.9689, allocations: 11.28 MB / 0.6501 GB, free: 12.5 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000545/0.9695, allocations: 390.4 kB / 0.6505 GB, free: 12.4 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.013e-05/0.9696, allocations: 21.41 kB / 0.6505 GB, free: 12.4 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06278/1.032, allocations: 29.54 MB / 0.6794 GB, free: 7.559 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003023/1.033, allocations: 97.14 kB / 0.6795 GB, free: 7.492 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007974/1.034, allocations: 293.4 kB / 0.6797 GB, free: 7.27 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04043/1.074, allocations: 13.68 MB / 0.6931 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/1.074, allocations: 0 / 0.6931 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/1.074, allocations: 0 / 0.6931 GB, free: 12.71 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.794e-05/1.074, allocations: 0 / 0.6931 GB, free: 12.71 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.005979/1.08, allocations: 2.561 MB / 0.6956 GB, free: 10.1 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/1.08, allocations: 12.03 kB / 0.6956 GB, free: 10.09 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.351e-05/1.08, allocations: 86.52 kB / 0.6957 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006544/1.081, allocations: 83.39 kB / 0.6958 GB, free: 9.914 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/1.081, allocations: 342.7 kB / 0.6961 GB, free: 9.543 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/1.081, allocations: 28.66 kB / 0.6961 GB, free: 9.516 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.588e-05/1.081, allocations: 32 kB / 0.6962 GB, free: 9.484 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/1.083, allocations: 0.5963 MB / 0.6967 GB, free: 8.875 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/1.083, allocations: 3.906 kB / 0.6967 GB, free: 8.871 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.912e-05/1.083, allocations: 16 kB / 0.6968 GB, free: 8.855 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/1.083, allocations: 27.2 kB / 0.6968 GB, free: 8.836 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/1.084, allocations: 0.5442 MB / 0.6973 GB, free: 8.297 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00244/1.086, allocations: 2.546 MB / 0.6998 GB, free: 5.527 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/1.088, allocations: 0.5044 MB / 0.7003 GB, free: 5.016 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/1.088, allocations: 345.5 kB / 0.7006 GB, free: 4.676 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3537/1.442, allocations: 139 MB / 0.8363 GB, free: 283.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/1.442, allocations: 40.12 kB / 0.8364 GB, free: 283.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 2.424e-06/1.442, allocations: 0 / 0.8364 GB, free: 283.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.00493/1.447, allocations: 2.329 MB / 0.8386 GB, free: 282.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.927e-05/1.447, allocations: 55.28 kB / 0.8387 GB, free: 282.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/1.447, allocations: 253.2 kB / 0.8389 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/1.447, allocations: 33.7 kB / 0.839 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.569e-05/1.447, allocations: 182.5 kB / 0.8391 GB, free: 281.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.483e-05/1.447, allocations: 272.2 kB / 0.8394 GB, free: 281.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/1.447, allocations: 96.3 kB / 0.8395 GB, free: 281.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.293e-05/1.447, allocations: 354.5 kB / 0.8398 GB, free: 281.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/1.448, allocations: 269.9 kB / 0.8401 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004207/1.448, allocations: 398.3 kB / 0.8405 GB, free: 280.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008723/1.449, allocations: 0.6971 MB / 0.8412 GB, free: 280.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.449, allocations: 0 / 0.8412 GB, free: 280.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001133/1.45, allocations: 0.7976 MB / 0.8419 GB, free: 280 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/1.45, allocations: 7.719 kB / 0.8419 GB, free: 280 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/1.45, allocations: 3.562 kB / 0.8419 GB, free: 280 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002099/1.451, allocations: 64.83 kB / 0.842 GB, free: 279.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/1.451, allocations: 98.91 kB / 0.8421 GB, free: 279.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08276/1.534, allocations: 22.66 MB / 0.8642 GB, free: 261.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/1.534, allocations: 47.97 kB / 0.8643 GB, free: 261.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/1.534, allocations: 19.98 kB / 0.8643 GB, free: 261.5 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.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001864/1.534, allocations: 192.1 kB / 0.8645 GB, free: 261.3 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-05/1.534, allocations: 47.44 kB / 0.8645 GB, free: 261.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/1.536, allocations: 1.552 MB / 0.866 GB, free: 259.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.119e-05/1.536, allocations: 12 kB / 0.8661 GB, free: 259.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/1.536, allocations: 0 / 0.8661 GB, free: 259.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001029/1.537, allocations: 1.133 MB / 0.8672 GB, free: 258.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/1.538, allocations: 1.597 MB / 0.8687 GB, free: 256.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/1.538, allocations: 3.984 kB / 0.8687 GB, free: 256.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003014/1.539, allocations: 79.89 kB / 0.8688 GB, free: 256.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000179/1.539, allocations: 44.83 kB / 0.8688 GB, free: 256.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/1.539, allocations: 15.94 kB / 0.8689 GB, free: 256.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005996/1.54, allocations: 1.315 MB / 0.8701 GB, free: 255.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.54, allocations: 0 / 0.8701 GB, free: 255.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/1.541, allocations: 1.18 MB / 0.8713 GB, free: 253.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.2e-05/1.541, allocations: 117.7 kB / 0.8714 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.372e-05/1.541, allocations: 15.92 kB / 0.8714 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003106/1.541, allocations: 40.88 kB / 0.8715 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.703e-05/1.542, allocations: 43.88 kB / 0.8715 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/1.542, allocations: 19.98 kB / 0.8715 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001596/1.542, allocations: 235.1 kB / 0.8717 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.542, allocations: 4 kB / 0.8717 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006549/1.548, allocations: 3.189 MB / 0.8749 GB, free: 250.7 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01561/1.564, allocations: 5.747 MB / 0.8805 GB, free: 245.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001605/1.566, allocations: 0.9424 MB / 0.8814 GB, free: 244.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/1.566, allocations: 0 / 0.8814 GB, free: 244.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007152/1.566, allocations: 0.4917 MB / 0.8819 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/1.568, allocations: 385.5 kB / 0.8822 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/1.579, allocations: 6.338 MB / 0.8884 GB, free: 237 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/1.579, allocations: 0.8486 MB / 0.8893 GB, free: 236.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004405/1.579, allocations: 164.6 kB / 0.8894 GB, free: 236 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001793/1.58, allocations: 167.4 kB / 0.8896 GB, free: 235.8 MB / 0.5919 GB Notification: Performance of SimCode: time 1.092e-06/1.58, allocations: 4 kB / 0.8896 GB, free: 235.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.005/6.585, allocations: 123.6 MB / 1.01 GB, free: 112 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001772/6.585, allocations: 248.8 kB / 1.011 GB, free: 111.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.685/12.27, allocations: 0 / 1.011 GB, free: 111.7 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/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)