Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",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.0007641/0.0007641, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.0007899/0.00079, allocations: 168.7 kB / 15.95 MB, free: 204 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.27/1.27, allocations: 205.4 MB / 222.1 MB, free: 5.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04321/0.04321, allocations: 9.064 MB / 279.4 MB, free: 12.13 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.0004941/0.0004942, allocations: 12 kB / 339.2 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07215/0.07266, allocations: 49.2 MB / 388.4 MB, free: 8.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.2624/0.3351, allocations: 132.4 MB / 0.5087 GB, free: 3.535 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.285/0.6201, allocations: 91.39 MB / 0.5979 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000503/0.6207, allocations: 4.719 kB / 0.5979 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002459/0.6232, allocations: 1.072 MB / 0.5989 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00315/0.6263, allocations: 1.324 MB / 0.6002 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06016/0.6865, allocations: 22.63 MB / 0.6223 GB, free: 9.926 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001695/0.6882, allocations: 1.577 MB / 0.6239 GB, free: 9.926 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.6884, allocations: 94.12 kB / 0.624 GB, free: 9.906 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01342/0.7018, allocations: 9.777 MB / 0.6335 GB, free: 8.676 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.7022, allocations: 373.1 kB / 0.6339 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.011e-05/0.7023, allocations: 20.66 kB / 0.6339 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04763/0.7499, allocations: 27.93 MB / 0.6612 GB, free: 11.07 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002394/0.7502, allocations: 91.58 kB / 0.6613 GB, free: 11 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003622/0.7506, allocations: 144.5 kB / 0.6614 GB, free: 10.89 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01792/0.7685, allocations: 8.608 MB / 0.6698 GB, free: 4.016 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.7685, allocations: 4 kB / 0.6698 GB, free: 4.012 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7685, allocations: 4 kB / 0.6698 GB, free: 4.008 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.979e-06/0.7686, allocations: 0 / 0.6698 GB, free: 4.008 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.006164/0.7747, allocations: 2.49 MB / 0.6722 GB, free: 1.566 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.7748, allocations: 12.03 kB / 0.6723 GB, free: 1.555 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.624e-05/0.7749, allocations: 89.14 kB / 0.6723 GB, free: 1.484 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005252/0.7754, allocations: 87.3 kB / 0.6724 GB, free: 1.398 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.7758, allocations: 339.3 kB / 0.6727 GB, free: 1.086 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.7758, allocations: 27.16 kB / 0.6728 GB, free: 1.07 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.7759, allocations: 31.53 kB / 0.6728 GB, free: 1.051 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.777, allocations: 0.6107 MB / 0.6734 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.7771, allocations: 0 / 0.6734 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.803e-05/0.7771, allocations: 17.42 kB / 0.6734 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.7771, allocations: 21.31 kB / 0.6734 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.7783, allocations: 0.5747 MB / 0.674 GB, free: 188 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.7805, allocations: 2.509 MB / 0.6764 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.7815, allocations: 0.5123 MB / 0.6769 GB, free: 13.55 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/0.782, allocations: 355 kB / 0.6773 GB, free: 13.34 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3467/1.129, allocations: 135.8 MB / 0.8099 GB, free: 276.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/1.129, allocations: 41.52 kB / 0.81 GB, free: 276.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.465e-06/1.129, allocations: 0 / 0.81 GB, free: 276.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.005195/1.134, allocations: 2.398 MB / 0.8123 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.299e-05/1.134, allocations: 57.5 kB / 0.8123 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/1.134, allocations: 252.9 kB / 0.8126 GB, free: 275.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/1.134, allocations: 30.55 kB / 0.8126 GB, free: 275.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/1.134, allocations: 194.7 kB / 0.8128 GB, free: 275.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/1.134, allocations: 266.8 kB / 0.8131 GB, free: 275.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.88e-05/1.135, allocations: 8.688 kB / 0.8131 GB, free: 275.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.18e-05/1.135, allocations: 350.5 kB / 0.8134 GB, free: 275 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000435/1.135, allocations: 282.1 kB / 0.8137 GB, free: 275 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004689/1.136, allocations: 422.3 kB / 0.8141 GB, free: 274.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004624/1.136, allocations: 338.9 kB / 0.8144 GB, free: 274.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.136, allocations: 3.75 kB / 0.8144 GB, free: 274.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001153/1.137, allocations: 0.8192 MB / 0.8152 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/1.137, allocations: 3.938 kB / 0.8152 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/1.137, allocations: 3.812 kB / 0.8152 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002187/1.137, allocations: 65.67 kB / 0.8153 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/1.138, allocations: 135 kB / 0.8154 GB, free: 274.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07845/1.216, allocations: 24.5 MB / 0.8393 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004741/1.217, allocations: 55.86 kB / 0.8394 GB, free: 257.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/1.217, allocations: 20 kB / 0.8394 GB, free: 257.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {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.000239/1.217, allocations: 197.6 kB / 0.8396 GB, free: 257.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.166e-05/1.217, allocations: 39.53 kB / 0.8396 GB, free: 257.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/1.219, allocations: 1.606 MB / 0.8412 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/1.219, allocations: 18.41 kB / 0.8412 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/1.219, allocations: 0.875 kB / 0.8412 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001062/1.22, allocations: 1.204 MB / 0.8424 GB, free: 254.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/1.222, allocations: 1.665 MB / 0.844 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/1.222, allocations: 0 / 0.844 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002841/1.222, allocations: 83.97 kB / 0.8441 GB, free: 252.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002654/1.222, allocations: 114.4 kB / 0.8442 GB, free: 252.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/1.222, allocations: 22.5 kB / 0.8442 GB, free: 252.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007993/1.223, allocations: 1.895 MB / 0.8461 GB, free: 250.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.223, allocations: 0 / 0.8461 GB, free: 250.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/1.225, allocations: 1.292 MB / 0.8473 GB, free: 249.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.093e-05/1.225, allocations: 144.4 kB / 0.8475 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.918e-05/1.225, allocations: 8 kB / 0.8475 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/1.225, allocations: 40.03 kB / 0.8475 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.2e-05/1.225, allocations: 47.92 kB / 0.8476 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.173e-05/1.225, allocations: 15.98 kB / 0.8476 GB, free: 248.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000187/1.225, allocations: 235.1 kB / 0.8478 GB, free: 248.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.225, allocations: 0 / 0.8478 GB, free: 248.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006883/1.232, allocations: 3.185 MB / 0.8509 GB, free: 245.8 MB / 0.5762 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 (38): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.01276/1.245, allocations: 5.81 MB / 0.8566 GB, free: 240.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001539/1.247, allocations: 0.9963 MB / 0.8576 GB, free: 239.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.247, allocations: 0 / 0.8576 GB, free: 239.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005716/1.247, allocations: 0.4992 MB / 0.858 GB, free: 238.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/1.249, allocations: 332.8 kB / 0.8584 GB, free: 238.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006522/1.255, allocations: 4.364 MB / 0.8626 GB, free: 234.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002025/1.255, allocations: 0.8524 MB / 0.8635 GB, free: 233.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003444/1.256, allocations: 135.1 kB / 0.8636 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/1.256, allocations: 171.3 kB / 0.8638 GB, free: 233 MB / 0.5762 GB Notification: Performance of SimCode: time 1.012e-06/1.256, allocations: 0 / 0.8638 GB, free: 233 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1393/1.395, allocations: 123.1 MB / 0.984 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/1.395, allocations: 225.8 kB / 0.9842 GB, free: 109.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.194/7.59, allocations: 7.875 kB / 0.9842 GB, free: 109.5 MB / 0.5762 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1) Environment - environmentSimulation: