Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.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.ConvergenceTest.SinglePhase_setState_psine_Tramp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp") translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00168/0.001681, allocations: 116.2 kB / 16.37 MB, free: 6.004 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.001718/0.001718, allocations: 192.8 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05347/0.05347, allocations: 9.099 MB / 279.6 MB, free: 2.973 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.001685/0.001685, allocations: 67.89 kB / 339.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5066/0.5083, allocations: 48.14 MB / 387.6 MB, free: 51.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.03086/0.5393, allocations: 18.13 MB / 405.8 MB, free: 38.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02273/0.5621, allocations: 17.52 MB / 423.3 MB, free: 23.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005315/0.5627, allocations: 0 / 423.3 MB, free: 23.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.5641, allocations: 309.7 kB / 423.6 MB, free: 23.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009004/0.565, allocations: 222.6 kB / 423.8 MB, free: 23.23 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.03125/0.5963, allocations: 7.321 MB / 431.1 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007751/0.5971, allocations: 346.2 kB / 431.5 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.532e-05/0.5972, allocations: 16.31 kB / 431.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003707/0.5976, allocations: 159.3 kB / 431.6 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.5978, allocations: 99.5 kB / 431.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.145e-05/0.5978, allocations: 8 kB / 431.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02588/0.6237, allocations: 10.62 MB / 442.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.6239, allocations: 23.84 kB / 442.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003514/0.6243, allocations: 95.55 kB / 442.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02554/0.6498, allocations: 4.459 MB / 446.9 MB, free: 72 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-05/0.65, allocations: 0 / 446.9 MB, free: 72 kB / 318.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.65, allocations: 0 / 446.9 MB, free: 72 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.65, allocations: 3.938 kB / 446.9 MB, free: 68 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.005382/0.6554, allocations: 1.095 MB / 448 MB, free: 14.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.181e-05/0.6555, allocations: 12.03 kB / 448 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.6557, allocations: 19.72 kB / 448.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.656, allocations: 192.2 kB / 448.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.6561, allocations: 4 kB / 448.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.6561, allocations: 8 kB / 448.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.6567, allocations: 172.1 kB / 448.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/0.6567, allocations: 0 / 448.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.6567, allocations: 0 / 448.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.414e-05/0.6568, allocations: 15.98 kB / 448.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.6573, allocations: 148.3 kB / 448.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005694/0.6579, allocations: 290.1 kB / 448.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004283/0.6583, allocations: 182.9 kB / 449.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.6587, allocations: 157.7 kB / 449.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.572/1.231, allocations: 93.61 MB / 0.5301 GB, free: 129.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.548e-05/1.231, allocations: 38.34 kB / 0.5301 GB, free: 129.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=48): time 4.218e-06/1.231, allocations: 0 / 0.5301 GB, free: 129.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=48): time 0.001572/1.232, allocations: 476.4 kB / 0.5306 GB, free: 129.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.335e-05/1.232, allocations: 52.81 kB / 0.5306 GB, free: 129 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/1.233, allocations: 137.1 kB / 0.5308 GB, free: 128.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/1.233, allocations: 32 kB / 0.5308 GB, free: 128.9 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.058e-05/1.233, allocations: 88.41 kB / 0.5309 GB, free: 128.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/1.233, allocations: 156 kB / 0.531 GB, free: 128.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/1.233, allocations: 45.08 kB / 0.5311 GB, free: 128.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/1.233, allocations: 330.4 kB / 0.5314 GB, free: 128.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003311/1.234, allocations: 119.7 kB / 0.5315 GB, free: 128.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/1.234, allocations: 117.2 kB / 0.5316 GB, free: 128.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007203/1.235, allocations: 290.2 kB / 0.5319 GB, free: 128.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/1.235, allocations: 3.031 kB / 0.5319 GB, free: 128.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008131/1.236, allocations: 331.4 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/1.236, allocations: 6.188 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/1.236, allocations: 1.281 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.656e-05/1.236, allocations: 3.188 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/1.236, allocations: 23.67 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/1.236, allocations: 1.281 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001802/1.236, allocations: 33.52 kB / 0.5323 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.141e-05/1.236, allocations: 4.234 kB / 0.5323 GB, free: 128 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 (12): * Single equations (assignments): 6 * 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 0.0001438/1.236, allocations: 127.3 kB / 0.5324 GB, free: 127.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.573e-05/1.236, allocations: 20.62 kB / 0.5324 GB, free: 127.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001123/1.237, allocations: 418.2 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.253e-05/1.238, allocations: 6.406 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/1.238, allocations: 3.125 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/1.238, allocations: 0.7969 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004153/1.238, allocations: 289.4 kB / 0.5331 GB, free: 127.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/1.238, allocations: 2.062 kB / 0.5331 GB, free: 127.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/1.238, allocations: 27.88 kB / 0.5331 GB, free: 127.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/1.238, allocations: 0 / 0.5331 GB, free: 127.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/1.238, allocations: 6.156 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/1.238, allocations: 3.031 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.238, allocations: 2.875 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008109/1.239, allocations: 371.7 kB / 0.5335 GB, free: 127.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/1.239, allocations: 120 kB / 0.5336 GB, free: 127.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.469e-05/1.239, allocations: 1.625 kB / 0.5336 GB, free: 127.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/1.239, allocations: 16.78 kB / 0.5336 GB, free: 127.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.774e-05/1.239, allocations: 16.61 kB / 0.5337 GB, free: 127.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.517e-05/1.239, allocations: 2.844 kB / 0.5337 GB, free: 127.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.048e-05/1.24, allocations: 109.7 kB / 0.5338 GB, free: 127.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.24, allocations: 5.312 kB / 0.5338 GB, free: 127.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005589/1.245, allocations: 1.117 MB / 0.5349 GB, free: 127 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: 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 simulation (12): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.007953/1.253, allocations: 1.676 MB / 0.5365 GB, free: 126.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/1.254, allocations: 299.8 kB / 0.5368 GB, free: 126.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.254, allocations: 0 / 0.5368 GB, free: 126.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004306/1.255, allocations: 163.4 kB / 0.5369 GB, free: 126.4 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001159/1.256, allocations: 159.5 kB / 0.5371 GB, free: 126.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/1.257, allocations: 412.1 kB / 0.5375 GB, free: 126 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/1.258, allocations: 0.7359 MB / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002058/1.258, allocations: 18.5 kB / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.352e-05/1.258, allocations: 22.31 kB / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of SimCode: time 9.71e-07/1.258, allocations: 0 / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of Templates: time 0.04675/1.305, allocations: 30.76 MB / 0.5683 GB, free: 96.68 MB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe 2>&1)