Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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.001081/0.001081, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001354/0.001354, allocations: 193.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.391/1.391, allocations: 205.1 MB / 222.1 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04562/0.04562, allocations: 9.088 MB / 278.5 MB, free: 12.36 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.001347/0.001347, allocations: 67.84 kB / 337.6 MB, free: 25.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08209/0.08345, allocations: 48.16 MB / 385.8 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.3241/0.4076, allocations: 128.1 MB / 0.5018 GB, free: 6.102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3702/0.7779, allocations: 110.8 MB / 0.61 GB, free: 272 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007331/0.7786, allocations: 6.125 kB / 0.61 GB, free: 272 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.7825, allocations: 1.279 MB / 0.6113 GB, free: 264 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004056/0.7865, allocations: 1.558 MB / 0.6128 GB, free: 248 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08193/0.8685, allocations: 26.5 MB / 0.6387 GB, free: 15.52 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00194/0.8704, allocations: 1.404 MB / 0.64 GB, free: 15.39 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002934/0.8707, allocations: 128.4 kB / 0.6402 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01683/0.8876, allocations: 9.049 MB / 0.649 GB, free: 12.73 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005343/0.8882, allocations: 402.7 kB / 0.6494 GB, free: 12.57 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.458e-05/0.8882, allocations: 44 kB / 0.6494 GB, free: 12.52 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0634/0.9516, allocations: 34.22 MB / 0.6828 GB, free: 4.484 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003172/0.952, allocations: 118.8 kB / 0.683 GB, free: 4.375 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007228/0.9527, allocations: 306.6 kB / 0.6832 GB, free: 4.078 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04485/0.9976, allocations: 14.1 MB / 0.697 GB, free: 7.078 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.9976, allocations: 3.938 kB / 0.697 GB, free: 7.074 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.9977, allocations: 0 / 0.697 GB, free: 7.074 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.9977, allocations: 0 / 0.697 GB, free: 7.074 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.006976/1.005, allocations: 2.568 MB / 0.6995 GB, free: 4.457 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/1.005, allocations: 12.03 kB / 0.6995 GB, free: 4.445 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/1.005, allocations: 86.5 kB / 0.6996 GB, free: 4.352 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006457/1.006, allocations: 79.41 kB / 0.6997 GB, free: 4.273 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/1.006, allocations: 344.4 kB / 0.7 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.189e-05/1.006, allocations: 28.66 kB / 0.7001 GB, free: 3.875 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/1.006, allocations: 32 kB / 0.7001 GB, free: 3.844 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/1.008, allocations: 0.6002 MB / 0.7007 GB, free: 3.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/1.008, allocations: 3.906 kB / 0.7007 GB, free: 3.227 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/1.008, allocations: 12 kB / 0.7007 GB, free: 3.215 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.787e-05/1.008, allocations: 26.17 kB / 0.7007 GB, free: 3.191 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/1.009, allocations: 0.5481 MB / 0.7012 GB, free: 2.648 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/1.012, allocations: 2.547 MB / 0.7037 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/1.013, allocations: 0.4968 MB / 0.7042 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000528/1.013, allocations: 338.3 kB / 0.7045 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4615/1.475, allocations: 139 MB / 0.8403 GB, free: 279.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/1.475, allocations: 34.84 kB / 0.8403 GB, free: 279.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.246e-06/1.475, allocations: 2.984 kB / 0.8403 GB, free: 279.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005789/1.481, allocations: 2.341 MB / 0.8426 GB, free: 278.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/1.481, allocations: 59.12 kB / 0.8426 GB, free: 278.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/1.481, allocations: 249.5 kB / 0.8429 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.373e-05/1.481, allocations: 37.67 kB / 0.8429 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.639e-05/1.481, allocations: 180.5 kB / 0.8431 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/1.481, allocations: 273.9 kB / 0.8433 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/1.481, allocations: 108 kB / 0.8434 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.266e-05/1.481, allocations: 349.8 kB / 0.8438 GB, free: 277.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004331/1.482, allocations: 266 kB / 0.844 GB, free: 277.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004868/1.482, allocations: 395 kB / 0.8444 GB, free: 276.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/1.483, allocations: 0.7053 MB / 0.8451 GB, free: 276.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/1.483, allocations: 2 kB / 0.8451 GB, free: 276.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001533/1.485, allocations: 0.7856 MB / 0.8459 GB, free: 276 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/1.485, allocations: 7.531 kB / 0.8459 GB, free: 276 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/1.485, allocations: 0 / 0.8459 GB, free: 276 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003055/1.485, allocations: 68.14 kB / 0.8459 GB, free: 276 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004135/1.486, allocations: 98.62 kB / 0.846 GB, free: 275.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09445/1.58, allocations: 22.92 MB / 0.8684 GB, free: 255.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/1.581, allocations: 63.83 kB / 0.8685 GB, free: 255.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.378e-05/1.581, allocations: 19.94 kB / 0.8685 GB, free: 255.8 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.0002478/1.581, allocations: 193.2 kB / 0.8687 GB, free: 255.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/1.581, allocations: 39.53 kB / 0.8687 GB, free: 255.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/1.583, allocations: 1.541 MB / 0.8702 GB, free: 253.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/1.583, allocations: 16.62 kB / 0.8702 GB, free: 253.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/1.583, allocations: 4 kB / 0.8702 GB, free: 253.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001123/1.584, allocations: 1.14 MB / 0.8714 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/1.586, allocations: 1.588 MB / 0.8729 GB, free: 251.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/1.586, allocations: 4 kB / 0.8729 GB, free: 251.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/1.586, allocations: 79.88 kB / 0.873 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/1.586, allocations: 48.84 kB / 0.873 GB, free: 250.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.957e-05/1.587, allocations: 11.98 kB / 0.873 GB, free: 250.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007542/1.587, allocations: 1.425 MB / 0.8744 GB, free: 249.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.587, allocations: 0 / 0.8744 GB, free: 249.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/1.589, allocations: 1.184 MB / 0.8756 GB, free: 248.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/1.589, allocations: 108.6 kB / 0.8757 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.817e-05/1.589, allocations: 11.94 kB / 0.8757 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003695/1.589, allocations: 51.86 kB / 0.8758 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-05/1.59, allocations: 43.94 kB / 0.8758 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/1.59, allocations: 8 kB / 0.8758 GB, free: 247.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001922/1.59, allocations: 247 kB / 0.876 GB, free: 247.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.59, allocations: 0 / 0.876 GB, free: 247.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007231/1.597, allocations: 3.185 MB / 0.8792 GB, free: 244.9 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.01686/1.614, allocations: 5.727 MB / 0.8847 GB, free: 239.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002095/1.616, allocations: 0.9658 MB / 0.8857 GB, free: 238.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/1.616, allocations: 0 / 0.8857 GB, free: 238.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007884/1.617, allocations: 0.5033 MB / 0.8862 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/1.619, allocations: 382.8 kB / 0.8865 GB, free: 237.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/1.63, allocations: 6.341 MB / 0.8927 GB, free: 231.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/1.631, allocations: 0.8526 MB / 0.8936 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004912/1.631, allocations: 166.8 kB / 0.8937 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/1.631, allocations: 167.4 kB / 0.8939 GB, free: 230 MB / 0.5919 GB Notification: Performance of SimCode: time 9.11e-07/1.631, allocations: 0 / 0.8939 GB, free: 230 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1573/1.789, allocations: 124 MB / 1.015 GB, free: 105.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/1.789, allocations: 246.4 kB / 1.015 GB, free: 105.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.938/7.727, allocations: 0 / 1.015 GB, free: 105.6 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)