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: translateModel(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState") translateModel(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,tolerance=1e-07,outputFormat="empty",numberOfIntervals=4,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.007914/0.007914, allocations: 169.5 kB / 16.26 MB, free: 6.652 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.333/1.333, allocations: 205.4 MB / 222.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04468/0.04468, allocations: 9.08 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.0004975/0.0004975, allocations: 12 kB / 339.7 MB, free: 25.64 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07335/0.07386, allocations: 49.21 MB / 388.9 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01887/0.09277, allocations: 18.1 MB / 407 MB, free: 6.207 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01626/0.1091, allocations: 16.67 MB / 423.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.1092, allocations: 4 kB / 423.7 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006946/0.1099, allocations: 263.1 kB / 424 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.1102, allocations: 99.47 kB / 424.1 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1695/0.2796, allocations: 5.767 MB / 429.8 MB, free: 17.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003001/0.2799, allocations: 239.3 kB / 430.1 MB, free: 17.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.34e-05/0.28, allocations: 9.031 kB / 430.1 MB, free: 17.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002165/0.2802, allocations: 95.83 kB / 430.2 MB, free: 17.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.2804, allocations: 61.61 kB / 430.2 MB, free: 17.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.077e-05/0.2804, allocations: 1.219 kB / 430.2 MB, free: 17.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0172/0.2976, allocations: 9.141 MB / 439.4 MB, free: 17.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.413e-05/0.2977, allocations: 15.56 kB / 439.4 MB, free: 17.6 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002041/0.2979, allocations: 86.98 kB / 439.5 MB, free: 17.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00961/0.3075, allocations: 4.121 MB / 443.6 MB, free: 17.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3075, allocations: 0 / 443.6 MB, free: 17.01 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3075, allocations: 1.688 kB / 443.6 MB, free: 17.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.3075, allocations: 0.5625 kB / 443.6 MB, free: 17.01 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.002184/0.3097, allocations: 0.9387 MB / 444.5 MB, free: 16.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.3098, allocations: 9.875 kB / 444.5 MB, free: 16.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.403e-05/0.3098, allocations: 13.31 kB / 444.6 MB, free: 16.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.648e-05/0.3099, allocations: 177.5 kB / 444.7 MB, free: 16.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.3099, allocations: 0 / 444.7 MB, free: 16.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.3099, allocations: 7.312 kB / 444.7 MB, free: 16.1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.3101, allocations: 109.2 kB / 444.8 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.3101, allocations: 0 / 444.8 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.3101, allocations: 9.688 kB / 444.9 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.3102, allocations: 12.17 kB / 444.9 MB, free: 16.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.286e-05/0.3102, allocations: 77.72 kB / 444.9 MB, free: 16.04 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001856/0.3104, allocations: 245.9 kB / 445.2 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.44e-05/0.3105, allocations: 117.5 kB / 445.3 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.373e-05/0.3106, allocations: 106.8 kB / 445.4 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1383/0.4489, allocations: 91.21 MB / 0.524 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.449, allocations: 30.56 kB / 0.5241 GB, free: 12.62 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.245e-06/0.449, allocations: 4 kB / 0.5241 GB, free: 12.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004527/0.4495, allocations: 335.9 kB / 0.5244 GB, free: 12.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.4495, allocations: 54.14 kB / 0.5244 GB, free: 12.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.268e-05/0.4496, allocations: 97.8 kB / 0.5245 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.4496, allocations: 29.58 kB / 0.5246 GB, free: 12.18 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.876e-05/0.4496, allocations: 85.12 kB / 0.5246 GB, free: 12.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.361e-05/0.4497, allocations: 125.4 kB / 0.5248 GB, free: 11.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.272e-05/0.4498, allocations: 29.2 kB / 0.5248 GB, free: 11.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.4499, allocations: 334.6 kB / 0.5251 GB, free: 11.63 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.757e-05/0.45, allocations: 73.61 kB / 0.5252 GB, free: 11.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.855e-05/0.4501, allocations: 73.28 kB / 0.5252 GB, free: 11.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.4503, allocations: 202.3 kB / 0.5254 GB, free: 11.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.4503, allocations: 0 / 0.5254 GB, free: 11.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002602/0.4505, allocations: 233.1 kB / 0.5257 GB, free: 11.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.4506, allocations: 4 kB / 0.5257 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4506, allocations: 2.844 kB / 0.5257 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.4506, allocations: 0 / 0.5257 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.617e-06/0.4506, allocations: 7.922 kB / 0.5257 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.4506, allocations: 4 kB / 0.5257 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.425e-05/0.4507, allocations: 15.75 kB / 0.5257 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.4507, allocations: 4 kB / 0.5257 GB, free: 11.14 MB / 414.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_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.968e-05/0.4508, allocations: 121.8 kB / 0.5258 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.4508, allocations: 7.906 kB / 0.5258 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004284/0.4513, allocations: 385.6 kB / 0.5262 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.4513, allocations: 8.859 kB / 0.5262 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4513, allocations: 0 / 0.5262 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.4513, allocations: 0 / 0.5262 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002188/0.4515, allocations: 244.9 kB / 0.5264 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4515, allocations: 2.844 kB / 0.5264 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-07/0.4515, allocations: 0 / 0.5264 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.4516, allocations: 4.75 kB / 0.5264 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-06/0.4516, allocations: 0 / 0.5264 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.4516, allocations: 3.984 kB / 0.5264 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4516, allocations: 0 / 0.5264 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.4518, allocations: 221.6 kB / 0.5267 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.685e-05/0.4519, allocations: 104.8 kB / 0.5268 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.4519, allocations: 1.75 kB / 0.5268 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.179e-05/0.452, allocations: 4 kB / 0.5268 GB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.452, allocations: 3.984 kB / 0.5268 GB, free: 9.949 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.452, allocations: 4 kB / 0.5268 GB, free: 9.945 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.967e-05/0.4521, allocations: 99.27 kB / 0.5269 GB, free: 9.848 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4521, allocations: 0 / 0.5269 GB, free: 9.848 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002764/0.4548, allocations: 1.088 MB / 0.5279 GB, free: 8.762 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004889/0.4598, allocations: 1.62 MB / 0.5295 GB, free: 7.309 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.46, allocations: 175.8 kB / 0.5297 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.46, allocations: 0 / 0.5297 GB, free: 7.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.95e-05/0.4601, allocations: 90.7 kB / 0.5298 GB, free: 7.051 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000929/0.461, allocations: 148 kB / 0.5299 GB, free: 6.906 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.4615, allocations: 358.4 kB / 0.5302 GB, free: 6.531 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.4617, allocations: 0.7131 MB / 0.5309 GB, free: 5.789 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.863e-05/0.4618, allocations: 13.67 kB / 0.531 GB, free: 5.777 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.973e-05/0.4618, allocations: 15.44 kB / 0.531 GB, free: 5.762 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4619, allocations: 0 / 0.531 GB, free: 5.762 MB / 414.1 MB Notification: Performance of Templates: time 0.04285/0.5047, allocations: 29.28 MB / 0.5596 GB, free: 8.574 MB / 446.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.makefile Environment - environmentSimulation: (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1) Environment - environmentSimulation: