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.0008021/0.0008021, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.00491/0.00491, allocations: 171.1 kB / 16.26 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.222/1.222, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04332/0.04332, allocations: 9.081 MB / 279.8 MB, free: 12.14 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.0004673/0.0004673, allocations: 15.98 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07254/0.07302, allocations: 49.19 MB / 389 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.267/0.34, allocations: 128.2 MB / 0.5051 GB, free: 7.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.298/0.6381, allocations: 110.5 MB / 0.613 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005097/0.6387, allocations: 8.531 kB / 0.613 GB, free: 1.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00249/0.6412, allocations: 1.117 MB / 0.6141 GB, free: 1.832 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002932/0.6441, allocations: 1.398 MB / 0.6155 GB, free: 1.816 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05559/0.6997, allocations: 24.54 MB / 0.6394 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001735/0.7014, allocations: 1.758 MB / 0.6412 GB, free: 376 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.7016, allocations: 93.73 kB / 0.6412 GB, free: 352 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01268/0.7143, allocations: 8.183 MB / 0.6492 GB, free: 13.47 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.7147, allocations: 382.8 kB / 0.6496 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.7148, allocations: 18.91 kB / 0.6496 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04798/0.7628, allocations: 29.99 MB / 0.6789 GB, free: 13.16 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002364/0.763, allocations: 90.5 kB / 0.679 GB, free: 13.11 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005001/0.7635, allocations: 310.7 kB / 0.6793 GB, free: 12.93 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03651/0.8001, allocations: 13.65 MB / 0.6926 GB, free: 2.484 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.8001, allocations: 0 / 0.6926 GB, free: 2.484 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.8001, allocations: 0 / 0.6926 GB, free: 2.484 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.8001, allocations: 0 / 0.6926 GB, free: 2.484 MB / 478.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.005698/0.8058, allocations: 2.49 MB / 0.6951 GB, free: 44 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.8059, allocations: 8.031 kB / 0.6951 GB, free: 36 kB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.806, allocations: 89.7 kB / 0.6951 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000602/0.8066, allocations: 87.3 kB / 0.6952 GB, free: 15.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.807, allocations: 336.8 kB / 0.6955 GB, free: 15.56 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.807, allocations: 33.47 kB / 0.6956 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.8071, allocations: 30.56 kB / 0.6956 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.8083, allocations: 0.617 MB / 0.6962 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.8083, allocations: 0 / 0.6962 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.8083, allocations: 15.69 kB / 0.6962 GB, free: 15.07 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.8083, allocations: 18.64 kB / 0.6962 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.8096, allocations: 0.5725 MB / 0.6968 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.8118, allocations: 2.514 MB / 0.6993 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.8129, allocations: 0.5078 MB / 0.6998 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005111/0.8134, allocations: 347.5 kB / 0.7001 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3675/1.181, allocations: 135.8 MB / 0.8327 GB, free: 261.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/1.181, allocations: 34.5 kB / 0.8328 GB, free: 261.2 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 2.244e-06/1.181, allocations: 0 / 0.8328 GB, free: 261.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.005194/1.186, allocations: 2.405 MB / 0.8351 GB, free: 260.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.215e-05/1.186, allocations: 59.06 kB / 0.8352 GB, free: 260.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002045/1.186, allocations: 264.3 kB / 0.8354 GB, free: 260.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/1.186, allocations: 35.09 kB / 0.8354 GB, free: 260 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.828e-05/1.187, allocations: 186.4 kB / 0.8356 GB, free: 259.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/1.187, allocations: 267 kB / 0.8359 GB, free: 259.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-05/1.187, allocations: 60.36 kB / 0.8359 GB, free: 259.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.255e-05/1.187, allocations: 357.7 kB / 0.8363 GB, free: 259.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004354/1.187, allocations: 280.2 kB / 0.8365 GB, free: 259.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004684/1.188, allocations: 422.2 kB / 0.837 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009146/1.189, allocations: 0.7377 MB / 0.8377 GB, free: 258.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.189, allocations: 3.875 kB / 0.8377 GB, free: 258.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001242/1.19, allocations: 0.8221 MB / 0.8385 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/1.19, allocations: 10.34 kB / 0.8385 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/1.19, allocations: 5.656 kB / 0.8385 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002259/1.19, allocations: 61.42 kB / 0.8386 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005706/1.191, allocations: 136.8 kB / 0.8387 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09011/1.281, allocations: 25.27 MB / 0.8634 GB, free: 237.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004842/1.281, allocations: 53.44 kB / 0.8634 GB, free: 237.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-05/1.281, allocations: 20 kB / 0.8634 GB, free: 237.5 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.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.0002479/1.282, allocations: 197.7 kB / 0.8636 GB, free: 237.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/1.282, allocations: 39.53 kB / 0.8637 GB, free: 237.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/1.284, allocations: 1.602 MB / 0.8652 GB, free: 235.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/1.284, allocations: 19.11 kB / 0.8652 GB, free: 235.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/1.284, allocations: 0 / 0.8652 GB, free: 235.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001187/1.285, allocations: 1.207 MB / 0.8664 GB, free: 234.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001933/1.287, allocations: 1.667 MB / 0.868 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/1.287, allocations: 4 kB / 0.8681 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/1.287, allocations: 83.91 kB / 0.8681 GB, free: 232.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002945/1.287, allocations: 118.8 kB / 0.8682 GB, free: 232.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/1.287, allocations: 4.875 kB / 0.8682 GB, free: 232.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008936/1.288, allocations: 1.905 MB / 0.8701 GB, free: 230.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/1.288, allocations: 0 / 0.8701 GB, free: 230.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/1.29, allocations: 1.292 MB / 0.8714 GB, free: 229 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/1.29, allocations: 141.6 kB / 0.8715 GB, free: 228.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.197e-05/1.29, allocations: 8 kB / 0.8715 GB, free: 228.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003544/1.29, allocations: 52.38 kB / 0.8716 GB, free: 228.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.235e-05/1.291, allocations: 39.94 kB / 0.8716 GB, free: 228.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/1.291, allocations: 15.98 kB / 0.8716 GB, free: 228.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001882/1.291, allocations: 247 kB / 0.8719 GB, free: 228.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.291, allocations: 0 / 0.8719 GB, free: 228.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008703/1.299, allocations: 3.181 MB / 0.875 GB, free: 225.7 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 (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.01713/1.317, allocations: 5.835 MB / 0.8807 GB, free: 220.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001881/1.319, allocations: 1.007 MB / 0.8816 GB, free: 219.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/1.319, allocations: 4 kB / 0.8816 GB, free: 219.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006934/1.319, allocations: 0.4956 MB / 0.8821 GB, free: 218.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/1.321, allocations: 373.4 kB / 0.8825 GB, free: 218.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/1.332, allocations: 6.503 MB / 0.8888 GB, free: 211.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/1.333, allocations: 0.8562 MB / 0.8897 GB, free: 210.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000436/1.333, allocations: 142 kB / 0.8898 GB, free: 210.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00018/1.333, allocations: 175.4 kB / 0.89 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of SimCode: time 8.71e-07/1.333, allocations: 0 / 0.89 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1418/1.475, allocations: 123.7 MB / 1.011 GB, free: 86.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/1.475, allocations: 242.9 kB / 1.011 GB, free: 86.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.245/7.72, allocations: 4 kB / 1.011 GB, free: 86.4 MB / 0.5762 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)