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.0007528/0.0007528, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0008213/0.0008214, allocations: 168.7 kB / 15.95 MB, free: 204 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.334/1.334, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04414/0.04414, allocations: 9.06 MB / 279.5 MB, free: 12.23 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.0005005/0.0005007, allocations: 16 kB / 339.1 MB, free: 25.96 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07115/0.07167, allocations: 49.2 MB / 388.3 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01776/0.08946, allocations: 17.02 MB / 405.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01497/0.1045, allocations: 15.4 MB / 420.7 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.1046, allocations: 0 / 420.7 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006144/0.1053, allocations: 246.9 kB / 421 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.1054, allocations: 91.41 kB / 421.1 MB, free: 7.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0136/0.119, allocations: 5.448 MB / 426.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002761/0.1193, allocations: 238.7 kB / 426.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.088e-05/0.1194, allocations: 5.125 kB / 426.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.1196, allocations: 103.5 kB / 426.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.337e-05/0.1197, allocations: 59.73 kB / 426.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.867e-06/0.1197, allocations: 0 / 426.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1645/0.2842, allocations: 8.121 MB / 435 MB, free: 19.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.668e-05/0.2843, allocations: 11.56 kB / 435.1 MB, free: 19.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.355e-05/0.2844, allocations: 51.02 kB / 435.1 MB, free: 19.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005275/0.2897, allocations: 2.546 MB / 437.6 MB, free: 19.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2897, allocations: 1.062 kB / 437.6 MB, free: 19.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2897, allocations: 3.469 kB / 437.7 MB, free: 19.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.2897, allocations: 1.969 kB / 437.7 MB, free: 19.48 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.002136/0.2919, allocations: 0.9372 MB / 438.6 MB, free: 18.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.2919, allocations: 12.78 kB / 438.6 MB, free: 18.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.826e-05/0.292, allocations: 14.38 kB / 438.6 MB, free: 18.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.2921, allocations: 173.1 kB / 438.8 MB, free: 18.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.2921, allocations: 4 kB / 438.8 MB, free: 18.63 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.2921, allocations: 2.719 kB / 438.8 MB, free: 18.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.2923, allocations: 113.2 kB / 438.9 MB, free: 18.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2923, allocations: 3.844 kB / 438.9 MB, free: 18.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.2923, allocations: 1.953 kB / 438.9 MB, free: 18.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.2924, allocations: 10.41 kB / 438.9 MB, free: 18.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.694e-05/0.2925, allocations: 77.83 kB / 439 MB, free: 18.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002353/0.2927, allocations: 261.5 kB / 439.3 MB, free: 18.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.2929, allocations: 115.1 kB / 439.4 MB, free: 18.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.992e-05/0.293, allocations: 109.8 kB / 439.5 MB, free: 18.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1218/0.4147, allocations: 91.2 MB / 0.5182 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.4148, allocations: 34.56 kB / 0.5183 GB, free: 2.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.174e-06/0.4148, allocations: 0 / 0.5183 GB, free: 2.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0004565/0.4153, allocations: 337.3 kB / 0.5186 GB, free: 2.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.4153, allocations: 52.72 kB / 0.5186 GB, free: 2.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.428e-05/0.4154, allocations: 101.4 kB / 0.5187 GB, free: 2.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.4154, allocations: 25.7 kB / 0.5188 GB, free: 2.531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.4155, allocations: 81.14 kB / 0.5188 GB, free: 2.445 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.4156, allocations: 133 kB / 0.519 GB, free: 2.332 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.4156, allocations: 0 / 0.519 GB, free: 2.332 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.4157, allocations: 326 kB / 0.5193 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.223e-05/0.4158, allocations: 72.53 kB / 0.5193 GB, free: 1.973 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.749e-05/0.4159, allocations: 76.91 kB / 0.5194 GB, free: 1.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.105e-05/0.416, allocations: 97.3 kB / 0.5195 GB, free: 1.871 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.416, allocations: 4 kB / 0.5195 GB, free: 1.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002405/0.4162, allocations: 225.4 kB / 0.5197 GB, free: 1.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.4162, allocations: 8 kB / 0.5197 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.4163, allocations: 2.906 kB / 0.5197 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.4163, allocations: 2.188 kB / 0.5197 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.4163, allocations: 0 / 0.5197 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.4163, allocations: 0 / 0.5197 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.895e-05/0.4164, allocations: 21.44 kB / 0.5198 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.4164, allocations: 7.984 kB / 0.5198 GB, free: 1.676 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 8.467e-05/0.4165, allocations: 122.1 kB / 0.5199 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.4165, allocations: 8.984 kB / 0.5199 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004036/0.4169, allocations: 382.2 kB / 0.5203 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.4169, allocations: 2.125 kB / 0.5203 GB, free: 1.246 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4169, allocations: 3.984 kB / 0.5203 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.417, allocations: 0 / 0.5203 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001989/0.4172, allocations: 243.8 kB / 0.5205 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.4172, allocations: 4 kB / 0.5205 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.262e-06/0.4172, allocations: 0 / 0.5205 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.4172, allocations: 0 / 0.5205 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.4172, allocations: 6.531 kB / 0.5205 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4172, allocations: 0 / 0.5205 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4172, allocations: 0 / 0.5205 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.4174, allocations: 216.7 kB / 0.5207 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.424e-05/0.4175, allocations: 108.3 kB / 0.5208 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.4175, allocations: 2.25 kB / 0.5208 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.666e-05/0.4176, allocations: 0 / 0.5208 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.504e-05/0.4176, allocations: 10.89 kB / 0.5208 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.4176, allocations: 4 kB / 0.5208 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.476e-05/0.4177, allocations: 101.5 kB / 0.5209 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4177, allocations: 4 kB / 0.5209 GB, free: 0.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002902/0.4206, allocations: 1.08 MB / 0.522 GB, free: 15.53 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.005181/0.4258, allocations: 1.615 MB / 0.5236 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002455/0.426, allocations: 183.7 kB / 0.5237 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.426, allocations: 0 / 0.5237 GB, free: 14.01 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.859e-05/0.4261, allocations: 83.77 kB / 0.5238 GB, free: 13.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007446/0.4269, allocations: 129.1 kB / 0.5239 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004815/0.4274, allocations: 345.9 kB / 0.5243 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.4276, allocations: 0.713 MB / 0.525 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.494e-05/0.4277, allocations: 11.98 kB / 0.525 GB, free: 12.78 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.889e-05/0.4278, allocations: 11.44 kB / 0.525 GB, free: 12.77 MB / 414.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4278, allocations: 0 / 0.525 GB, free: 12.77 MB / 414.1 MB Notification: Performance of Templates: time 0.04161/0.4694, allocations: 28.64 MB / 0.553 GB, free: 308 kB / 430.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: