Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.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_pramp_Tsine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine") translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001883/0.001883, allocations: 103.8 kB / 16.36 MB, free: 5.547 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.001343/0.001344, allocations: 194.5 kB / 17.31 MB, free: 5.184 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.17/2.17, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05167/0.05167, allocations: 9.087 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.001692/0.001692, allocations: 68.47 kB / 339.5 MB, free: 7.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5028/0.5045, allocations: 48.15 MB / 387.6 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine): time 0.03207/0.5367, allocations: 18.13 MB / 405.8 MB, free: 38.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02297/0.5598, allocations: 17.53 MB / 423.3 MB, free: 23.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004957/0.5604, allocations: 0 / 423.3 MB, free: 23.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.5618, allocations: 301.7 kB / 423.6 MB, free: 23.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008616/0.5627, allocations: 230.5 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.03276/0.5954, allocations: 7.309 MB / 431.1 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008204/0.5963, allocations: 350.2 kB / 431.5 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.5964, allocations: 24.23 kB / 431.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.5968, allocations: 155.4 kB / 431.6 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.597, allocations: 95.56 kB / 431.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.123e-05/0.597, allocations: 8 kB / 431.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02574/0.6228, allocations: 10.62 MB / 442.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.623, allocations: 27.84 kB / 442.4 MB, free: 4.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003631/0.6233, allocations: 95.55 kB / 442.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02403/0.6474, allocations: 4.463 MB / 446.9 MB, free: 68 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.238e-05/0.6475, allocations: 3.984 kB / 446.9 MB, free: 64 kB / 318.1 MB Notification: Performance of FrontEnd: time 5.651e-06/0.6475, allocations: 0 / 446.9 MB, free: 64 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.906e-05/0.6476, allocations: 3.938 kB / 446.9 MB, free: 60 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.005133/0.6527, allocations: 1.088 MB / 448 MB, free: 14.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.515e-05/0.6528, allocations: 8.031 kB / 448 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.6529, allocations: 23.66 kB / 448.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.6533, allocations: 200.2 kB / 448.3 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.6533, allocations: 4 kB / 448.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.6534, allocations: 4 kB / 448.3 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005651/0.6539, allocations: 164.2 kB / 448.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.654, allocations: 0 / 448.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.654, allocations: 8 kB / 448.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.012e-05/0.654, allocations: 11.92 kB / 448.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005081/0.6546, allocations: 160.2 kB / 448.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009813/0.6556, allocations: 477.2 kB / 449.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.6559, allocations: 166.9 kB / 449.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.6563, allocations: 149.7 kB / 449.4 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5622/1.218, allocations: 93.62 MB / 0.5303 GB, free: 128.9 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.498e-05/1.219, allocations: 34.5 kB / 0.5303 GB, free: 128.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=47): time 4.579e-06/1.219, allocations: 0 / 0.5303 GB, free: 128.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.001663/1.22, allocations: 468.6 kB / 0.5307 GB, free: 128.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.032e-05/1.22, allocations: 53.78 kB / 0.5308 GB, free: 128.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/1.221, allocations: 133.8 kB / 0.5309 GB, free: 128.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.79e-05/1.221, allocations: 31.7 kB / 0.531 GB, free: 128.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.976e-05/1.221, allocations: 89.88 kB / 0.531 GB, free: 128.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001839/1.221, allocations: 152.8 kB / 0.5312 GB, free: 128.3 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/1.221, allocations: 53.88 kB / 0.5312 GB, free: 128.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/1.221, allocations: 332.5 kB / 0.5316 GB, free: 128 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003448/1.222, allocations: 117.3 kB / 0.5317 GB, free: 128 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/1.222, allocations: 115.6 kB / 0.5318 GB, free: 127.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007153/1.223, allocations: 285.6 kB / 0.5321 GB, free: 127.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/1.223, allocations: 0 / 0.5321 GB, free: 127.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008665/1.224, allocations: 323.6 kB / 0.5324 GB, free: 127.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/1.224, allocations: 4.688 kB / 0.5324 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/1.224, allocations: 0.5625 kB / 0.5324 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/1.224, allocations: 1.781 kB / 0.5324 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/1.224, allocations: 26.97 kB / 0.5324 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/1.224, allocations: 2.328 kB / 0.5324 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/1.224, allocations: 32.8 kB / 0.5324 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/1.224, allocations: 5.75 kB / 0.5324 GB, free: 127.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 (11): * Single equations (assignments): 5 * 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.0001577/1.224, allocations: 124.1 kB / 0.5326 GB, free: 127.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/1.224, allocations: 21.97 kB / 0.5326 GB, free: 127.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/1.226, allocations: 407.7 kB / 0.533 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-05/1.226, allocations: 14.16 kB / 0.533 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/1.226, allocations: 0 / 0.533 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/1.226, allocations: 1.891 kB / 0.533 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004777/1.226, allocations: 288 kB / 0.5333 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/1.226, allocations: 7.5 kB / 0.5333 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/1.226, allocations: 20.86 kB / 0.5333 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/1.226, allocations: 1.797 kB / 0.5333 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/1.226, allocations: 5.922 kB / 0.5333 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/1.226, allocations: 1.797 kB / 0.5333 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/1.226, allocations: 0 / 0.5333 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009143/1.227, allocations: 441.5 kB / 0.5337 GB, free: 126.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/1.227, allocations: 115.1 kB / 0.5338 GB, free: 126.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/1.228, allocations: 12.03 kB / 0.5338 GB, free: 126.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/1.228, allocations: 15.81 kB / 0.5338 GB, free: 126.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/1.228, allocations: 13.72 kB / 0.5339 GB, free: 126.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/1.228, allocations: 3.547 kB / 0.5339 GB, free: 126.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001046/1.228, allocations: 107.4 kB / 0.534 GB, free: 126.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.228, allocations: 1.375 kB / 0.534 GB, free: 126.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006031/1.234, allocations: 1.115 MB / 0.5351 GB, free: 126.6 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 (11): * Single equations (assignments): 5 * 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.00871/1.243, allocations: 1.682 MB / 0.5367 GB, free: 126.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001293/1.244, allocations: 293.7 kB / 0.537 GB, free: 126.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/1.244, allocations: 0 / 0.537 GB, free: 126.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005096/1.245, allocations: 162.1 kB / 0.5371 GB, free: 126.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/1.246, allocations: 157.5 kB / 0.5373 GB, free: 126 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/1.247, allocations: 390.2 kB / 0.5377 GB, free: 125.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/1.248, allocations: 0.736 MB / 0.5384 GB, free: 125.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/1.248, allocations: 13.64 kB / 0.5384 GB, free: 125.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.173e-05/1.248, allocations: 17.69 kB / 0.5384 GB, free: 125.1 MB / 414.1 MB Notification: Performance of SimCode: time 7.52e-07/1.248, allocations: 0 / 0.5384 GB, free: 125.1 MB / 414.1 MB Notification: Performance of Templates: time 0.05102/1.299, allocations: 30.74 MB / 0.5684 GB, free: 96.71 MB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe 2>&1)