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: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_pramp_Tsine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_pramp_Tsine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.379/1.379, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04572/0.04572, allocations: 9.096 MB / 278.9 MB, free: 12.17 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.00267/0.00267, allocations: 67.89 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09432, allocations: 48.15 MB / 386.3 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine): time 0.01992/0.1143, allocations: 18.15 MB / 404.4 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01634/0.1307, allocations: 17.52 MB / 422 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001995/0.1309, allocations: 0 / 422 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000858/0.1318, allocations: 298.5 kB / 422.2 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006404/0.1325, allocations: 230.6 kB / 422.5 MB, free: 4.809 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.1823/0.3148, allocations: 7.289 MB / 429.8 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004435/0.3152, allocations: 352.2 kB / 430.1 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.658e-05/0.3153, allocations: 22.88 kB / 430.1 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003041/0.3156, allocations: 151.8 kB / 430.3 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.3158, allocations: 100 kB / 430.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.206e-05/0.3158, allocations: 7.781 kB / 430.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01737/0.3332, allocations: 10.12 MB / 440.5 MB, free: 16.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.169e-05/0.3333, allocations: 22.78 kB / 440.5 MB, free: 16.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002583/0.3336, allocations: 102.4 kB / 440.6 MB, free: 16.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.3444, allocations: 4.464 MB / 445.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.3445, allocations: 0 / 445.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3445, allocations: 1 kB / 445.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.3445, allocations: 0 / 445.1 MB, free: 15.55 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.002528/0.347, allocations: 1.087 MB / 446.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3471, allocations: 9.656 kB / 446.2 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.849e-05/0.3471, allocations: 60.38 kB / 446.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.3472, allocations: 16.47 kB / 446.3 MB, free: 14.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.3473, allocations: 195.6 kB / 446.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.3473, allocations: 1.156 kB / 446.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.3473, allocations: 8.594 kB / 446.5 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.3477, allocations: 164 kB / 446.6 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3478, allocations: 1.25 kB / 446.6 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.3478, allocations: 2 kB / 446.6 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.3478, allocations: 14.3 kB / 446.6 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004693/0.3483, allocations: 157.3 kB / 446.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.3488, allocations: 482.3 kB / 447.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.3491, allocations: 171.1 kB / 447.4 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.3494, allocations: 149.4 kB / 447.6 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1474/0.4968, allocations: 93.63 MB / 0.5285 GB, free: 5.043 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.4969, allocations: 34.56 kB / 0.5285 GB, free: 5 MB / 414.1 MB Notification: Performance of pre-optimization done (n=47): time 2.846e-06/0.4969, allocations: 2.188 kB / 0.5285 GB, free: 5 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.001145/0.498, allocations: 473.8 kB / 0.529 GB, free: 4.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.4981, allocations: 59.41 kB / 0.5291 GB, free: 4.465 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.4982, allocations: 137.9 kB / 0.5292 GB, free: 4.324 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.4982, allocations: 25.7 kB / 0.5292 GB, free: 4.293 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.639e-05/0.4983, allocations: 85.14 kB / 0.5293 GB, free: 4.207 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.4984, allocations: 143.2 kB / 0.5294 GB, free: 4.07 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-05/0.4985, allocations: 53.59 kB / 0.5295 GB, free: 4.012 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4987, allocations: 336 kB / 0.5298 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.4989, allocations: 125.5 kB / 0.5299 GB, free: 3.559 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.4992, allocations: 115 kB / 0.53 GB, free: 3.445 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005521/0.4998, allocations: 279.7 kB / 0.5303 GB, free: 3.168 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.4998, allocations: 4 kB / 0.5303 GB, free: 3.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006685/0.5005, allocations: 326.7 kB / 0.5306 GB, free: 2.844 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.5005, allocations: 4 kB / 0.5306 GB, free: 2.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.5005, allocations: 0 / 0.5306 GB, free: 2.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.5005, allocations: 4.984 kB / 0.5306 GB, free: 2.836 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.5007, allocations: 18.33 kB / 0.5306 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.5007, allocations: 7.984 kB / 0.5306 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.5009, allocations: 40.75 kB / 0.5307 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.5009, allocations: 7.938 kB / 0.5307 GB, free: 2.77 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.0001181/0.501, allocations: 127.8 kB / 0.5308 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.982e-05/0.5011, allocations: 19.72 kB / 0.5308 GB, free: 2.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008053/0.5019, allocations: 402 kB / 0.5312 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-05/0.502, allocations: 11.98 kB / 0.5312 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.502, allocations: 0.875 kB / 0.5312 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.502, allocations: 3.984 kB / 0.5312 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003436/0.5023, allocations: 294.5 kB / 0.5315 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.5023, allocations: 0 / 0.5315 GB, free: 1.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.5025, allocations: 29.84 kB / 0.5315 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.5025, allocations: 0 / 0.5315 GB, free: 1.852 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.5025, allocations: 4 kB / 0.5315 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.5025, allocations: 4 kB / 0.5315 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5025, allocations: 0 / 0.5315 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007148/0.5033, allocations: 441.8 kB / 0.532 GB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.5034, allocations: 113.9 kB / 0.5321 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.795e-05/0.5034, allocations: 0 / 0.5321 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.5036, allocations: 15.97 kB / 0.5321 GB, free: 1.258 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.5037, allocations: 12.55 kB / 0.5321 GB, free: 1.246 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.5037, allocations: 4 kB / 0.5321 GB, free: 1.242 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.274e-05/0.5038, allocations: 107.2 kB / 0.5322 GB, free: 1.137 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.5038, allocations: 0 / 0.5322 GB, free: 1.137 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002898/0.5067, allocations: 1.122 MB / 0.5333 GB, free: 16 kB / 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.006287/0.513, allocations: 2.541 MB / 0.5358 GB, free: 13.62 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007237/0.5137, allocations: 291 kB / 0.5361 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5138, allocations: 8 kB / 0.5361 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003049/0.5141, allocations: 161.9 kB / 0.5362 GB, free: 13.18 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.5151, allocations: 166.7 kB / 0.5364 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.5176, allocations: 0.9041 MB / 0.5373 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.5179, allocations: 0.7327 MB / 0.538 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.518, allocations: 15.97 kB / 0.538 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.825e-05/0.5181, allocations: 52.08 kB / 0.5381 GB, free: 11.27 MB / 430.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5181, allocations: 0 / 0.5381 GB, free: 11.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06189/0.58, allocations: 33.51 MB / 0.5708 GB, free: 9.824 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.982/9.562, allocations: 8.594 kB / 0.5708 GB, free: 9.816 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_pramp_Tsine.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_pramp_Tsine.pipe 2>&1)