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.001511/0.001511, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001887/0.001887, allocations: 193.4 kB / 16.14 MB, free: 6.66 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.495/1.495, allocations: 205.1 MB / 222 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04084/0.04084, allocations: 9.084 MB / 278.4 MB, free: 12.39 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.00141/0.00141, allocations: 63.84 kB / 337.4 MB, free: 25.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06935/0.07077, allocations: 48.16 MB / 385.6 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.244/0.3148, allocations: 129.9 MB / 0.5034 GB, free: 4.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2715/0.5863, allocations: 111.8 MB / 0.6126 GB, free: 1.121 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004074/0.5868, allocations: 5.719 kB / 0.6126 GB, free: 1.121 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002204/0.589, allocations: 1.119 MB / 0.6137 GB, free: 1.117 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002309/0.5914, allocations: 1.398 MB / 0.6151 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05124/0.6426, allocations: 24.49 MB / 0.639 GB, free: 208 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001544/0.6442, allocations: 1.752 MB / 0.6407 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.6444, allocations: 107.2 kB / 0.6408 GB, free: 15.89 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01164/0.656, allocations: 8.185 MB / 0.6488 GB, free: 13.16 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00036/0.6564, allocations: 375.2 kB / 0.6491 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.525e-05/0.6564, allocations: 21.56 kB / 0.6492 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04495/0.7014, allocations: 29.99 MB / 0.6785 GB, free: 9.262 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001968/0.7016, allocations: 97.69 kB / 0.6785 GB, free: 9.195 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005248/0.7022, allocations: 283 kB / 0.6788 GB, free: 8.98 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0304/0.7326, allocations: 13.7 MB / 0.6922 GB, free: 14.62 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.7326, allocations: 0 / 0.6922 GB, free: 14.62 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.7326, allocations: 0 / 0.6922 GB, free: 14.62 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.7326, allocations: 4 kB / 0.6922 GB, free: 14.61 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.005112/0.7377, allocations: 2.576 MB / 0.6947 GB, free: 12.01 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.7378, allocations: 8.031 kB / 0.6947 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.811e-05/0.7379, allocations: 86.52 kB / 0.6948 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005871/0.7385, allocations: 83.41 kB / 0.6949 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.7389, allocations: 342.9 kB / 0.6952 GB, free: 11.46 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/0.7389, allocations: 28.66 kB / 0.6952 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.739, allocations: 32 kB / 0.6953 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.7402, allocations: 0.5963 MB / 0.6959 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.7402, allocations: 7.906 kB / 0.6959 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.7402, allocations: 16 kB / 0.6959 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.897e-05/0.7403, allocations: 21.95 kB / 0.6959 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.7415, allocations: 0.5442 MB / 0.6964 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002203/0.7437, allocations: 2.498 MB / 0.6989 GB, free: 7.508 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.7448, allocations: 0.4978 MB / 0.6994 GB, free: 7.008 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004917/0.7453, allocations: 346.2 kB / 0.6997 GB, free: 6.664 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3478/1.093, allocations: 139 MB / 0.8354 GB, free: 285.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/1.093, allocations: 44.3 kB / 0.8354 GB, free: 285.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.154e-06/1.093, allocations: 0.75 kB / 0.8354 GB, free: 285.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.005225/1.098, allocations: 2.337 MB / 0.8377 GB, free: 284.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.13e-05/1.098, allocations: 57.91 kB / 0.8378 GB, free: 284.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/1.099, allocations: 256.9 kB / 0.838 GB, free: 284.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/1.099, allocations: 29.7 kB / 0.838 GB, free: 284.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.793e-05/1.099, allocations: 188.9 kB / 0.8382 GB, free: 284.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/1.099, allocations: 260.8 kB / 0.8385 GB, free: 283.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/1.099, allocations: 100.6 kB / 0.8386 GB, free: 283.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.325e-05/1.099, allocations: 356.3 kB / 0.8389 GB, free: 283.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004126/1.099, allocations: 274.7 kB / 0.8392 GB, free: 283.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004405/1.1, allocations: 402.7 kB / 0.8396 GB, free: 283 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008703/1.101, allocations: 0.7087 MB / 0.8403 GB, free: 282.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.101, allocations: 0 / 0.8403 GB, free: 282.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001209/1.102, allocations: 0.808 MB / 0.841 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/1.102, allocations: 7.906 kB / 0.841 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/1.102, allocations: 3.938 kB / 0.8411 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002261/1.102, allocations: 66.23 kB / 0.8411 GB, free: 282.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000552/1.103, allocations: 126.8 kB / 0.8412 GB, free: 282 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08434/1.187, allocations: 25.32 MB / 0.866 GB, free: 261 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/1.188, allocations: 55.86 kB / 0.866 GB, free: 261 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.353e-05/1.188, allocations: 20 kB / 0.866 GB, free: 260.9 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.0001975/1.188, allocations: 193.1 kB / 0.8662 GB, free: 260.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.191e-05/1.188, allocations: 43.53 kB / 0.8663 GB, free: 260.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/1.189, allocations: 1.574 MB / 0.8678 GB, free: 259.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/1.189, allocations: 15.98 kB / 0.8678 GB, free: 259 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/1.189, allocations: 0 / 0.8678 GB, free: 259 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001066/1.191, allocations: 1.184 MB / 0.869 GB, free: 257.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001681/1.192, allocations: 1.638 MB / 0.8706 GB, free: 256.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/1.192, allocations: 0 / 0.8706 GB, free: 256.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/1.193, allocations: 87.91 kB / 0.8706 GB, free: 256 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002519/1.193, allocations: 108.9 kB / 0.8708 GB, free: 255.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/1.193, allocations: 7.984 kB / 0.8708 GB, free: 255.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007656/1.194, allocations: 1.895 MB / 0.8726 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/1.194, allocations: 4.25 kB / 0.8726 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/1.195, allocations: 1.253 MB / 0.8738 GB, free: 252.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/1.195, allocations: 120.5 kB / 0.874 GB, free: 252.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/1.195, allocations: 8 kB / 0.874 GB, free: 252.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003242/1.196, allocations: 51.81 kB / 0.874 GB, free: 252.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/1.196, allocations: 35.94 kB / 0.874 GB, free: 252.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/1.196, allocations: 23.31 kB / 0.8741 GB, free: 252.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001684/1.196, allocations: 235.1 kB / 0.8743 GB, free: 252.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.21e-07/1.196, allocations: 4 kB / 0.8743 GB, free: 252.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.005853/1.202, allocations: 3.194 MB / 0.8774 GB, free: 249.3 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.01398/1.216, allocations: 5.785 MB / 0.8831 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001399/1.217, allocations: 0.9809 MB / 0.884 GB, free: 242.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.217, allocations: 0 / 0.884 GB, free: 242.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006684/1.218, allocations: 499.5 kB / 0.8845 GB, free: 242.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/1.219, allocations: 385.8 kB / 0.8849 GB, free: 242 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008437/1.228, allocations: 6.375 MB / 0.8911 GB, free: 235.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001809/1.228, allocations: 0.8525 MB / 0.8919 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003483/1.228, allocations: 148.7 kB / 0.8921 GB, free: 234.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/1.229, allocations: 167.4 kB / 0.8922 GB, free: 234.3 MB / 0.5919 GB Notification: Performance of SimCode: time 2.1e-07/1.229, allocations: 0 / 0.8922 GB, free: 234.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.504/4.733, allocations: 123.8 MB / 1.013 GB, free: 110.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/4.733, allocations: 247.6 kB / 1.013 GB, free: 110 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.944/11.68, allocations: 3.938 kB / 1.013 GB, free: 110 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)