Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",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.001086/0.001086, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.001071/0.001071, allocations: 191.1 kB / 16.25 MB, free: 6.613 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.294/1.294, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04205/0.04205, allocations: 9.081 MB / 278.5 MB, free: 12.33 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.001316/0.001316, allocations: 67.91 kB / 337.6 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07387/0.0752, allocations: 48.15 MB / 385.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.25/0.3252, allocations: 127.6 MB / 0.5013 GB, free: 6.668 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2741/0.5994, allocations: 109.8 MB / 0.6086 GB, free: 272 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004628/0.5999, allocations: 5.781 kB / 0.6086 GB, free: 272 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002385/0.6023, allocations: 1.196 MB / 0.6097 GB, free: 260 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002717/0.6051, allocations: 1.454 MB / 0.6111 GB, free: 244 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05457/0.6597, allocations: 25.94 MB / 0.6365 GB, free: 15.64 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.661, allocations: 1.325 MB / 0.6378 GB, free: 15.63 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.6612, allocations: 124.1 kB / 0.6379 GB, free: 15.61 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01113/0.6723, allocations: 8.723 MB / 0.6464 GB, free: 13.1 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003514/0.6727, allocations: 383.4 kB / 0.6468 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.732e-05/0.6728, allocations: 40.62 kB / 0.6468 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04507/0.7178, allocations: 32.84 MB / 0.6789 GB, free: 7.336 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.7181, allocations: 122 kB / 0.679 GB, free: 7.285 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005045/0.7186, allocations: 306.2 kB / 0.6793 GB, free: 7.074 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03329/0.7519, allocations: 14.15 MB / 0.6931 GB, free: 10.12 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.7519, allocations: 0 / 0.6931 GB, free: 10.12 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.7519, allocations: 0 / 0.6931 GB, free: 10.12 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.7519, allocations: 3.938 kB / 0.6931 GB, free: 10.11 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.005716/0.7577, allocations: 2.576 MB / 0.6956 GB, free: 7.492 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.7577, allocations: 8.031 kB / 0.6956 GB, free: 7.484 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.986e-05/0.7578, allocations: 86.52 kB / 0.6957 GB, free: 7.391 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005802/0.7584, allocations: 79.41 kB / 0.6958 GB, free: 7.312 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.7587, allocations: 341.8 kB / 0.6961 GB, free: 6.945 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.7588, allocations: 28.66 kB / 0.6961 GB, free: 6.918 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.236e-05/0.7588, allocations: 32 kB / 0.6962 GB, free: 6.887 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.76, allocations: 0.6002 MB / 0.6968 GB, free: 6.273 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.76, allocations: 8.516 kB / 0.6968 GB, free: 6.266 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.76, allocations: 16 kB / 0.6968 GB, free: 6.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.7601, allocations: 19.19 kB / 0.6968 GB, free: 6.234 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.7612, allocations: 0.552 MB / 0.6973 GB, free: 5.684 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.7634, allocations: 2.496 MB / 0.6998 GB, free: 2.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009969/0.7644, allocations: 0.4966 MB / 0.7003 GB, free: 2.477 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004705/0.7648, allocations: 342.3 kB / 0.7006 GB, free: 2.137 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3539/1.119, allocations: 139 MB / 0.8363 GB, free: 281.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/1.119, allocations: 34.66 kB / 0.8363 GB, free: 281.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.314e-06/1.119, allocations: 0 / 0.8363 GB, free: 281.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.004748/1.124, allocations: 2.336 MB / 0.8386 GB, free: 280.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.803e-05/1.124, allocations: 55.38 kB / 0.8387 GB, free: 280.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/1.124, allocations: 267.4 kB / 0.8389 GB, free: 280.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/1.124, allocations: 30.64 kB / 0.839 GB, free: 280.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.286e-05/1.124, allocations: 185 kB / 0.8391 GB, free: 279.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.994e-05/1.124, allocations: 266.8 kB / 0.8394 GB, free: 279.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/1.124, allocations: 97.8 kB / 0.8395 GB, free: 279.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.102e-05/1.124, allocations: 350.7 kB / 0.8398 GB, free: 279.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003843/1.125, allocations: 280.1 kB / 0.8401 GB, free: 279.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004191/1.125, allocations: 404.7 kB / 0.8405 GB, free: 278.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008031/1.126, allocations: 0.7183 MB / 0.8412 GB, free: 278.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/1.126, allocations: 0 / 0.8412 GB, free: 278.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001128/1.127, allocations: 0.7994 MB / 0.842 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/1.127, allocations: 7.75 kB / 0.842 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/1.127, allocations: 3.828 kB / 0.842 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002053/1.127, allocations: 64.12 kB / 0.842 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005184/1.128, allocations: 134.5 kB / 0.8422 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08378/1.212, allocations: 25.62 MB / 0.8672 GB, free: 255.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/1.212, allocations: 47.88 kB / 0.8672 GB, free: 255.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/1.212, allocations: 20 kB / 0.8672 GB, free: 255.6 MB / 0.5919 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.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.0002089/1.212, allocations: 192 kB / 0.8674 GB, free: 255.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.765e-05/1.212, allocations: 39.53 kB / 0.8675 GB, free: 255.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/1.214, allocations: 1.582 MB / 0.869 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/1.214, allocations: 15.89 kB / 0.869 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/1.214, allocations: 4 kB / 0.869 GB, free: 253.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00103/1.215, allocations: 1.176 MB / 0.8702 GB, free: 252.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/1.217, allocations: 1.646 MB / 0.8718 GB, free: 250.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/1.217, allocations: 0 / 0.8718 GB, free: 250.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000278/1.217, allocations: 75.88 kB / 0.8718 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002314/1.217, allocations: 109.6 kB / 0.872 GB, free: 250.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/1.217, allocations: 12.73 kB / 0.872 GB, free: 250.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007616/1.218, allocations: 1.991 MB / 0.8739 GB, free: 248.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.218, allocations: 3.938 kB / 0.8739 GB, free: 248.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/1.219, allocations: 1.249 MB / 0.8751 GB, free: 247.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/1.219, allocations: 120.6 kB / 0.8752 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/1.219, allocations: 15.94 kB / 0.8753 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/1.22, allocations: 35.81 kB / 0.8753 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.161e-05/1.22, allocations: 47.88 kB / 0.8753 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/1.22, allocations: 16 kB / 0.8754 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001628/1.22, allocations: 243 kB / 0.8756 GB, free: 246.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.22, allocations: 0 / 0.8756 GB, free: 246.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005777/1.226, allocations: 3.196 MB / 0.8787 GB, free: 243.8 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 (38): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.01308/1.239, allocations: 5.784 MB / 0.8844 GB, free: 238.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001547/1.24, allocations: 0.9957 MB / 0.8853 GB, free: 237.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.24, allocations: 0 / 0.8853 GB, free: 237.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006431/1.241, allocations: 0.4954 MB / 0.8858 GB, free: 236.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001507/1.243, allocations: 394.5 kB / 0.8862 GB, free: 236.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007881/1.251, allocations: 6.382 MB / 0.8924 GB, free: 230 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/1.251, allocations: 0.8525 MB / 0.8933 GB, free: 229.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003338/1.251, allocations: 143.9 kB / 0.8934 GB, free: 229 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/1.251, allocations: 163.4 kB / 0.8935 GB, free: 228.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.31e-07/1.251, allocations: 0 / 0.8935 GB, free: 228.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.631/3.882, allocations: 124.4 MB / 1.015 GB, free: 104.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/3.882, allocations: 247.7 kB / 1.015 GB, free: 104 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.289/11.17, allocations: 3.938 kB / 1.015 GB, free: 103.9 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)