Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.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.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",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.0009303/0.0009303, allocations: 103 kB / 15.06 MB, free: 1.098 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.0009162/0.0009162, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.255/1.255, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04391/0.04391, allocations: 9.057 MB / 279.4 MB, free: 12.27 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: 12 kB / 339.2 MB, free: 25.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07759/0.07806, allocations: 49.18 MB / 388.4 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01457/0.09267, allocations: 15.37 MB / 403.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01294/0.1056, allocations: 14 MB / 417.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.1058, allocations: 0 / 417.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006054/0.1064, allocations: 255.1 kB / 418 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.1066, allocations: 107.8 kB / 418.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01393/0.1205, allocations: 5.653 MB / 423.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003193/0.1209, allocations: 167.7 kB / 423.9 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.339e-05/0.1209, allocations: 9.406 kB / 423.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.1211, allocations: 107.6 kB / 424 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.1212, allocations: 55.8 kB / 424.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.217e-06/0.1212, allocations: 0 / 424.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1638/0.2851, allocations: 9.028 MB / 433.1 MB, free: 18.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.48e-05/0.2851, allocations: 15.33 kB / 433.1 MB, free: 18.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.914e-05/0.2852, allocations: 53.58 kB / 433.2 MB, free: 18.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005069/0.2903, allocations: 2.452 MB / 435.6 MB, free: 17.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.2903, allocations: 0 / 435.6 MB, free: 17.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2903, allocations: 0 / 435.6 MB, free: 17.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.2903, allocations: 2.031 kB / 435.6 MB, free: 17.93 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.002065/0.2924, allocations: 0.9422 MB / 436.6 MB, free: 17.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.2924, allocations: 13.28 kB / 436.6 MB, free: 17.28 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.2925, allocations: 43.06 kB / 436.6 MB, free: 17.24 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.851e-05/0.2925, allocations: 13.31 kB / 436.6 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.63e-05/0.2926, allocations: 177.4 kB / 436.8 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.2926, allocations: 2.562 kB / 436.8 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.2926, allocations: 3.469 kB / 436.8 MB, free: 17.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.2928, allocations: 113 kB / 436.9 MB, free: 17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.2928, allocations: 1.203 kB / 436.9 MB, free: 17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.2928, allocations: 7.844 kB / 436.9 MB, free: 17 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.2928, allocations: 13.61 kB / 437 MB, free: 17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.115e-05/0.2929, allocations: 70.59 kB / 437 MB, free: 17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001847/0.2931, allocations: 255.2 kB / 437.3 MB, free: 16.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.2932, allocations: 116.8 kB / 437.4 MB, free: 16.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1349/0.4281, allocations: 91.47 MB / 0.5165 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.4282, allocations: 34.56 kB / 0.5165 GB, free: 2.879 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.184e-06/0.4282, allocations: 2.734 kB / 0.5165 GB, free: 2.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006665/0.4288, allocations: 0.7921 MB / 0.5173 GB, free: 2.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.4289, allocations: 55.41 kB / 0.5173 GB, free: 2.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.253e-05/0.429, allocations: 97.8 kB / 0.5174 GB, free: 1.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.429, allocations: 29.7 kB / 0.5174 GB, free: 1.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.394e-05/0.429, allocations: 85.12 kB / 0.5175 GB, free: 1.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.178e-05/0.4291, allocations: 122.7 kB / 0.5176 GB, free: 1.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-06/0.4291, allocations: 3.25 kB / 0.5176 GB, free: 1.676 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4293, allocations: 322.3 kB / 0.518 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.005e-05/0.4293, allocations: 75.91 kB / 0.518 GB, free: 1.312 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.668e-05/0.4294, allocations: 80 kB / 0.5181 GB, free: 1.266 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.851e-05/0.4295, allocations: 102.5 kB / 0.5182 GB, free: 1.207 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4295, allocations: 0 / 0.5182 GB, free: 1.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000259/0.4298, allocations: 233.2 kB / 0.5184 GB, free: 1.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.4298, allocations: 6.344 kB / 0.5184 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.4298, allocations: 0 / 0.5184 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.4298, allocations: 0 / 0.5184 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.334e-06/0.4298, allocations: 4 kB / 0.5184 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.269e-06/0.4298, allocations: 0 / 0.5184 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.058e-05/0.4299, allocations: 18.48 kB / 0.5184 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.43, allocations: 1.172 kB / 0.5185 GB, free: 1.016 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (state.phase,state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.333e-05/0.4301, allocations: 127.4 kB / 0.5186 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.806e-05/0.4301, allocations: 11.91 kB / 0.5186 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003878/0.4305, allocations: 379.7 kB / 0.5189 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.4305, allocations: 11.55 kB / 0.519 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.4305, allocations: 0 / 0.519 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.4305, allocations: 0 / 0.519 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.4307, allocations: 242.1 kB / 0.5192 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4307, allocations: 0 / 0.5192 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.365e-06/0.4307, allocations: 7.359 kB / 0.5192 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.4307, allocations: 0 / 0.5192 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.4308, allocations: 8 kB / 0.5192 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4308, allocations: 2.625 kB / 0.5192 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4308, allocations: 0.875 kB / 0.5192 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002046/0.431, allocations: 214.1 kB / 0.5194 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.501e-05/0.4311, allocations: 105.5 kB / 0.5195 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.4311, allocations: 3.984 kB / 0.5195 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.956e-05/0.4311, allocations: 0 / 0.5195 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.289e-05/0.4311, allocations: 0 / 0.5195 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.4312, allocations: 11.94 kB / 0.5195 GB, free: 12 kB / 398.1 MB Notification: Performance of sorting global known variables: time 7.552e-05/0.4312, allocations: 98.88 kB / 0.5196 GB, free: 15.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4312, allocations: 0 / 0.5196 GB, free: 15.92 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003609/0.4349, allocations: 1.084 MB / 0.5207 GB, free: 14.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005856/0.4407, allocations: 2.284 MB / 0.5229 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.4409, allocations: 175.6 kB / 0.5231 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.441, allocations: 0 / 0.5231 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.857e-05/0.441, allocations: 83.05 kB / 0.5232 GB, free: 12.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.4417, allocations: 126.1 kB / 0.5233 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.4439, allocations: 0.8237 MB / 0.5241 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.4442, allocations: 0.7208 MB / 0.5248 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.681e-05/0.4442, allocations: 11.64 kB / 0.5248 GB, free: 11.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.195e-05/0.4443, allocations: 32.42 kB / 0.5248 GB, free: 10.99 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4443, allocations: 4 kB / 0.5248 GB, free: 10.99 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05275/0.497, allocations: 30.87 MB / 0.555 GB, free: 12.29 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/0.4973, allocations: 187.4 kB / 0.5552 GB, free: 12.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.561/3.058, allocations: 3.375 kB / 0.5552 GB, free: 12.04 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1) Environment - environmentSimulation: