Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.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.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel",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.001014/0.001014, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001039/0.001039, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.321/1.321, allocations: 205.1 MB / 222.1 MB, free: 4.898 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04483/0.04483, allocations: 9.084 MB / 278.5 MB, free: 12.57 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.001405/0.001405, allocations: 67.89 kB / 337.6 MB, free: 25.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.09308, allocations: 48.16 MB / 385.8 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel): time 0.3096/0.4027, allocations: 128.3 MB / 0.502 GB, free: 5.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3529/0.7557, allocations: 110.8 MB / 0.6102 GB, free: 276 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006825/0.7564, allocations: 6.094 kB / 0.6102 GB, free: 276 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003396/0.7598, allocations: 1.276 MB / 0.6114 GB, free: 268 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00389/0.7638, allocations: 1.558 MB / 0.613 GB, free: 252 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08239/0.8462, allocations: 26.65 MB / 0.639 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002284/0.8485, allocations: 1.399 MB / 0.6404 GB, free: 15.35 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000274/0.8488, allocations: 130 kB / 0.6405 GB, free: 15.32 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01685/0.8656, allocations: 9.887 MB / 0.6501 GB, free: 11.89 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000509/0.8662, allocations: 383.8 kB / 0.6505 GB, free: 11.65 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.373e-05/0.8662, allocations: 44.88 kB / 0.6505 GB, free: 11.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06287/0.9291, allocations: 34.51 MB / 0.6843 GB, free: 3.203 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003129/0.9295, allocations: 122 kB / 0.6844 GB, free: 3.09 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007551/0.9302, allocations: 305.4 kB / 0.6847 GB, free: 2.793 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05147/0.9817, allocations: 14.12 MB / 0.6984 GB, free: 5.766 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.9818, allocations: 4 kB / 0.6984 GB, free: 5.762 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.9818, allocations: 0 / 0.6984 GB, free: 5.762 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.9818, allocations: 0 / 0.6984 GB, free: 5.762 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.006736/0.9886, allocations: 2.568 MB / 0.701 GB, free: 3.148 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.9886, allocations: 12.03 kB / 0.701 GB, free: 3.137 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.9888, allocations: 86.52 kB / 0.701 GB, free: 3.043 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006485/0.9894, allocations: 83.39 kB / 0.7011 GB, free: 2.961 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.9899, allocations: 345.2 kB / 0.7015 GB, free: 2.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.99, allocations: 28.66 kB / 0.7015 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.099e-05/0.99, allocations: 32 kB / 0.7015 GB, free: 2.531 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.9914, allocations: 0.6002 MB / 0.7021 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.9914, allocations: 3.906 kB / 0.7021 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.9915, allocations: 12 kB / 0.7021 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.379e-05/0.9915, allocations: 21.39 kB / 0.7021 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.9929, allocations: 0.5481 MB / 0.7027 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.9956, allocations: 2.503 MB / 0.7051 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.9968, allocations: 0.4958 MB / 0.7056 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.9973, allocations: 338.2 kB / 0.7059 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4571/1.454, allocations: 139 MB / 0.8416 GB, free: 278.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/1.454, allocations: 38.81 kB / 0.8417 GB, free: 278.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 3.216e-06/1.454, allocations: 0 / 0.8417 GB, free: 278.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.005283/1.46, allocations: 2.334 MB / 0.844 GB, free: 277.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.271e-05/1.46, allocations: 58.91 kB / 0.844 GB, free: 277.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/1.46, allocations: 254.3 kB / 0.8443 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/1.46, allocations: 33.7 kB / 0.8443 GB, free: 277 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.949e-05/1.46, allocations: 190.3 kB / 0.8445 GB, free: 276.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/1.46, allocations: 267.3 kB / 0.8447 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/1.46, allocations: 101.6 kB / 0.8448 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.43e-05/1.46, allocations: 348.6 kB / 0.8452 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/1.461, allocations: 273.2 kB / 0.8454 GB, free: 276.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004562/1.461, allocations: 388.4 kB / 0.8458 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008623/1.462, allocations: 0.6814 MB / 0.8465 GB, free: 275.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.462, allocations: 3.938 kB / 0.8465 GB, free: 275.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001184/1.463, allocations: 0.7862 MB / 0.8472 GB, free: 275 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/1.463, allocations: 7.656 kB / 0.8472 GB, free: 275 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/1.463, allocations: 3.047 kB / 0.8472 GB, free: 275 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/1.464, allocations: 65.14 kB / 0.8473 GB, free: 274.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005493/1.464, allocations: 129.9 kB / 0.8474 GB, free: 274.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08975/1.554, allocations: 25.18 MB / 0.872 GB, free: 252.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/1.555, allocations: 43.97 kB / 0.872 GB, free: 252.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.098e-05/1.555, allocations: 19.98 kB / 0.8721 GB, free: 252.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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.0003258/1.555, allocations: 204 kB / 0.8723 GB, free: 252.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/1.555, allocations: 43.44 kB / 0.8723 GB, free: 252 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001818/1.557, allocations: 1.676 MB / 0.8739 GB, free: 250.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/1.557, allocations: 18.17 kB / 0.874 GB, free: 250.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/1.557, allocations: 3.938 kB / 0.874 GB, free: 250.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001215/1.558, allocations: 1.247 MB / 0.8752 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/1.56, allocations: 1.706 MB / 0.8768 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/1.56, allocations: 0 / 0.8768 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003074/1.561, allocations: 79.88 kB / 0.8769 GB, free: 247.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002463/1.561, allocations: 101.6 kB / 0.877 GB, free: 247 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/1.561, allocations: 12 kB / 0.877 GB, free: 247 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009268/1.562, allocations: 1.996 MB / 0.879 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/1.562, allocations: 3.938 kB / 0.879 GB, free: 244.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/1.563, allocations: 1.298 MB / 0.8802 GB, free: 243.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/1.564, allocations: 116.6 kB / 0.8804 GB, free: 243.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.405e-05/1.564, allocations: 8.062 kB / 0.8804 GB, free: 243.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003439/1.564, allocations: 43.84 kB / 0.8804 GB, free: 243.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/1.564, allocations: 39.94 kB / 0.8804 GB, free: 243.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/1.564, allocations: 15.98 kB / 0.8805 GB, free: 243.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001888/1.564, allocations: 227.1 kB / 0.8807 GB, free: 243 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.564, allocations: 0 / 0.8807 GB, free: 243 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007802/1.572, allocations: 3.185 MB / 0.8838 GB, free: 240.2 MB / 0.5919 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 (39): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 Backend phase and start with SimCode phase: time 0.01692/1.589, allocations: 5.798 MB / 0.8895 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002246/1.591, allocations: 1.015 MB / 0.8904 GB, free: 233.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.591, allocations: 0.5625 kB / 0.8904 GB, free: 233.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006938/1.592, allocations: 0.5073 MB / 0.8909 GB, free: 233.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/1.594, allocations: 399.5 kB / 0.8913 GB, free: 232.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/1.605, allocations: 6.278 MB / 0.8975 GB, free: 226.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/1.605, allocations: 0.8526 MB / 0.8983 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004844/1.606, allocations: 146.1 kB / 0.8984 GB, free: 225.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/1.606, allocations: 175.3 kB / 0.8986 GB, free: 225.3 MB / 0.5919 GB Notification: Performance of SimCode: time 4.71e-07/1.606, allocations: 0 / 0.8986 GB, free: 225.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1595/1.766, allocations: 124.7 MB / 1.02 GB, free: 100.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/1.766, allocations: 240.9 kB / 1.021 GB, free: 100.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.784/8.55, allocations: 0 / 1.021 GB, free: 100.2 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PropaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PropaneTestModel.pipe 2>&1)