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.001177/0.001177, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.001169/0.001169, allocations: 191 kB / 17.29 MB, free: 5.516 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.318/1.318, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04726/0.04726, allocations: 9.089 MB / 279.6 MB, free: 2.941 MB / 222.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.001585/0.001586, allocations: 71.89 kB / 339.5 MB, free: 6.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.19, allocations: 48.14 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01641/0.2064, allocations: 18.38 MB / 406 MB, free: 37.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0123/0.2187, allocations: 16.41 MB / 422.4 MB, free: 24.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.2189, allocations: 1.219 kB / 422.4 MB, free: 24.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006223/0.2196, allocations: 292.5 kB / 422.7 MB, free: 24.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.2198, allocations: 112.8 kB / 422.8 MB, free: 24.1 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01609/0.2359, allocations: 7.049 MB / 429.9 MB, free: 17.15 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000221/0.2361, allocations: 246.6 kB / 430.1 MB, free: 16.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.86e-05/0.2362, allocations: 13.11 kB / 430.1 MB, free: 16.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001432/0.2363, allocations: 95.64 kB / 430.2 MB, free: 16.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.042e-05/0.2364, allocations: 63.67 kB / 430.3 MB, free: 16.74 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.988e-06/0.2364, allocations: 4 kB / 430.3 MB, free: 16.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01547/0.2519, allocations: 10.07 MB / 440.3 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.94e-05/0.2519, allocations: 3.938 kB / 440.3 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.562e-05/0.252, allocations: 67.67 kB / 440.4 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007693/0.2597, allocations: 4.249 MB / 444.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2597, allocations: 0 / 444.7 MB, free: 2.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2598, allocations: 4 kB / 444.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.81e-06/0.2598, allocations: 0 / 444.7 MB, free: 2.316 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.001554/0.2613, allocations: 0.9474 MB / 445.6 MB, free: 1.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.2614, allocations: 16.03 kB / 445.6 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.149e-05/0.2614, allocations: 11.81 kB / 445.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.509e-05/0.2615, allocations: 182.8 kB / 445.8 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.2615, allocations: 0 / 445.8 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.918e-06/0.2615, allocations: 8 kB / 445.8 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.2617, allocations: 111.3 kB / 445.9 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.2617, allocations: 4 kB / 445.9 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.2617, allocations: 0 / 445.9 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.2617, allocations: 7.984 kB / 445.9 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.602e-05/0.2618, allocations: 75.97 kB / 446 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001653/0.262, allocations: 257.2 kB / 446.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.969e-05/0.2621, allocations: 122.5 kB / 446.4 MB, free: 448 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.579e-05/0.2621, allocations: 104.9 kB / 446.5 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2768/0.5389, allocations: 93.06 MB / 0.5269 GB, free: 132.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.539, allocations: 32.14 kB / 0.5269 GB, free: 132.8 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.304e-06/0.539, allocations: 2.734 kB / 0.5269 GB, free: 132.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.000451/0.5394, allocations: 331.4 kB / 0.5272 GB, free: 132.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/0.5395, allocations: 59.88 kB / 0.5273 GB, free: 132.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.935e-05/0.5395, allocations: 94.64 kB / 0.5274 GB, free: 132.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.594e-06/0.5396, allocations: 27.14 kB / 0.5274 GB, free: 132.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.465e-05/0.5396, allocations: 85.14 kB / 0.5275 GB, free: 132.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.831e-05/0.5397, allocations: 126.7 kB / 0.5276 GB, free: 132.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.5397, allocations: 38.77 kB / 0.5277 GB, free: 132.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.333e-05/0.5398, allocations: 326.9 kB / 0.528 GB, free: 132 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.713e-05/0.5398, allocations: 75.16 kB / 0.528 GB, free: 131.9 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.538e-05/0.5399, allocations: 79.34 kB / 0.5281 GB, free: 131.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.5401, allocations: 197.4 kB / 0.5283 GB, free: 131.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.5401, allocations: 7.594 kB / 0.5283 GB, free: 131.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002433/0.5404, allocations: 231.5 kB / 0.5285 GB, free: 131.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.5404, allocations: 5.625 kB / 0.5285 GB, free: 131.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.5404, allocations: 0.6875 kB / 0.5285 GB, free: 131.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.5404, allocations: 3.094 kB / 0.5285 GB, free: 131.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.5404, allocations: 0.75 kB / 0.5285 GB, free: 131.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.5405, allocations: 1.188 kB / 0.5285 GB, free: 131.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.326e-05/0.5405, allocations: 14.38 kB / 0.5286 GB, free: 131.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.5405, allocations: 5.094 kB / 0.5286 GB, free: 131.7 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 6.505e-05/0.5406, allocations: 124.4 kB / 0.5287 GB, free: 131.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.5406, allocations: 10.69 kB / 0.5287 GB, free: 131.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004136/0.5411, allocations: 388.9 kB / 0.5291 GB, free: 131.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.84e-05/0.5411, allocations: 5.672 kB / 0.5291 GB, free: 131.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5411, allocations: 0 / 0.5291 GB, free: 131.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5411, allocations: 0 / 0.5291 GB, free: 131.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001449/0.5412, allocations: 242.2 kB / 0.5293 GB, free: 131.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.5413, allocations: 1 kB / 0.5293 GB, free: 131.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.31e-07/0.5413, allocations: 0 / 0.5293 GB, free: 131.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.5413, allocations: 1.781 kB / 0.5293 GB, free: 131.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.5413, allocations: 0.9375 kB / 0.5293 GB, free: 131.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.5413, allocations: 2 kB / 0.5293 GB, free: 131.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5413, allocations: 4.344 kB / 0.5293 GB, free: 131.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002057/0.5415, allocations: 220.3 kB / 0.5295 GB, free: 131 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.877e-05/0.5415, allocations: 97.7 kB / 0.5296 GB, free: 130.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.5416, allocations: 5.781 kB / 0.5296 GB, free: 130.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.2e-05/0.5416, allocations: 4 kB / 0.5296 GB, free: 130.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.361e-05/0.5416, allocations: 8.125 kB / 0.5296 GB, free: 130.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.924e-06/0.5416, allocations: 2.828 kB / 0.5296 GB, free: 130.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.462e-05/0.5417, allocations: 100.8 kB / 0.5297 GB, free: 130.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5417, allocations: 0 / 0.5297 GB, free: 130.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002084/0.5438, allocations: 1.083 MB / 0.5308 GB, free: 130.7 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.003958/0.5478, allocations: 1.627 MB / 0.5324 GB, free: 130.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.548, allocations: 189.8 kB / 0.5326 GB, free: 130.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.548, allocations: 0 / 0.5326 GB, free: 130.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.124e-05/0.5481, allocations: 82.83 kB / 0.5326 GB, free: 130.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008011/0.5489, allocations: 156.6 kB / 0.5328 GB, free: 130.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.5493, allocations: 295.1 kB / 0.5331 GB, free: 130.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.5495, allocations: 0.7141 MB / 0.5338 GB, free: 129.4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.839e-05/0.5495, allocations: 14.09 kB / 0.5338 GB, free: 129.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.047e-05/0.5496, allocations: 15.25 kB / 0.5338 GB, free: 129.4 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.5496, allocations: 128 / 0.5338 GB, free: 129.4 MB / 414.1 MB Notification: Performance of Templates: time 0.03361/0.5832, allocations: 29.5 MB / 0.5626 GB, free: 103.2 MB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.makefile (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 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1)