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: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp",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.00107/0.00107, allocations: 108 kB / 15.61 MB, free: 152 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.001116/0.001116, allocations: 194 kB / 16.53 MB, free: 6.664 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.326/1.326, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04714/0.04714, allocations: 9.097 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.001448/0.001448, allocations: 67.89 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08122/0.08268, allocations: 48.16 MB / 386.3 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.01941/0.1021, allocations: 18.13 MB / 404.4 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01605/0.1182, allocations: 17.53 MB / 422 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.1184, allocations: 4 kB / 422 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006911/0.1192, allocations: 298.5 kB / 422.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004687/0.1196, allocations: 226.5 kB / 422.5 MB, free: 4.82 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.171/0.2906, allocations: 7.286 MB / 429.8 MB, free: 16.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004918/0.2912, allocations: 354.7 kB / 430.1 MB, free: 16.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.429e-05/0.2912, allocations: 16.59 kB / 430.1 MB, free: 16.24 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002847/0.2915, allocations: 150.7 kB / 430.3 MB, free: 16.24 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.2917, allocations: 103.6 kB / 430.4 MB, free: 16.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.2917, allocations: 7.344 kB / 430.4 MB, free: 16.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01832/0.3101, allocations: 10.12 MB / 440.5 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.3102, allocations: 25.53 kB / 440.5 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003299/0.3106, allocations: 98.03 kB / 440.6 MB, free: 16.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01423/0.3248, allocations: 4.462 MB / 445.1 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3249, allocations: 0 / 445.1 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3249, allocations: 0 / 445.1 MB, free: 15.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.3249, allocations: 0 / 445.1 MB, free: 15.68 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.003016/0.3279, allocations: 1.099 MB / 446.2 MB, free: 14.9 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.328, allocations: 12.09 kB / 446.2 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.03e-05/0.3281, allocations: 50.78 kB / 446.2 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.392e-05/0.3281, allocations: 14.25 kB / 446.3 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.3283, allocations: 193.9 kB / 446.4 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.3283, allocations: 4.031 kB / 446.4 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.793e-05/0.3283, allocations: 4.688 kB / 446.5 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000373/0.3287, allocations: 167.2 kB / 446.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.3287, allocations: 1.078 kB / 446.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.3287, allocations: 5.375 kB / 446.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.3288, allocations: 10.42 kB / 446.6 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004304/0.3292, allocations: 158.1 kB / 446.8 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002452/0.3295, allocations: 298.6 kB / 447.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003107/0.3298, allocations: 177.3 kB / 447.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.3301, allocations: 159.5 kB / 447.4 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1489/0.4789, allocations: 93.62 MB / 0.5283 GB, free: 5.332 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.479, allocations: 44.8 kB / 0.5284 GB, free: 5.285 MB / 414.1 MB Notification: Performance of pre-optimization done (n=48): time 2.595e-06/0.479, allocations: 0 / 0.5284 GB, free: 5.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=48): time 0.00103/0.48, allocations: 479 kB / 0.5288 GB, free: 4.816 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.108e-05/0.4801, allocations: 55.41 kB / 0.5289 GB, free: 4.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.4802, allocations: 140.6 kB / 0.529 GB, free: 4.605 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.666e-05/0.4802, allocations: 25.7 kB / 0.5291 GB, free: 4.574 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.975e-05/0.4803, allocations: 95.78 kB / 0.5291 GB, free: 4.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.4804, allocations: 145.8 kB / 0.5293 GB, free: 4.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.042e-05/0.4805, allocations: 41.7 kB / 0.5293 GB, free: 4.293 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4806, allocations: 330.8 kB / 0.5296 GB, free: 3.961 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.4809, allocations: 124.4 kB / 0.5298 GB, free: 3.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.4812, allocations: 123.9 kB / 0.5299 GB, free: 3.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005103/0.4817, allocations: 283.7 kB / 0.5301 GB, free: 3.438 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.4817, allocations: 14.59 kB / 0.5302 GB, free: 3.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006156/0.4823, allocations: 326.3 kB / 0.5305 GB, free: 3.109 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.4824, allocations: 8 kB / 0.5305 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.4824, allocations: 0 / 0.5305 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.4824, allocations: 0 / 0.5305 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.4826, allocations: 23.97 kB / 0.5305 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.361e-06/0.4826, allocations: 4 kB / 0.5305 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.4828, allocations: 32.77 kB / 0.5305 GB, free: 3.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.4828, allocations: 7.984 kB / 0.5305 GB, free: 3.035 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.0001056/0.4829, allocations: 131.6 kB / 0.5307 GB, free: 2.902 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/0.4829, allocations: 19.72 kB / 0.5307 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007569/0.4837, allocations: 415.5 kB / 0.5311 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/0.4837, allocations: 11.98 kB / 0.5311 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.4837, allocations: 1.438 kB / 0.5311 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.4837, allocations: 0 / 0.5311 GB, free: 2.465 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.484, allocations: 289.2 kB / 0.5314 GB, free: 2.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.484, allocations: 0 / 0.5314 GB, free: 2.133 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.4841, allocations: 26.61 kB / 0.5314 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4842, allocations: 1.312 kB / 0.5314 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.4842, allocations: 7.984 kB / 0.5314 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.4842, allocations: 0 / 0.5314 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4842, allocations: 4 kB / 0.5314 GB, free: 2.098 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006382/0.4848, allocations: 369.4 kB / 0.5318 GB, free: 1.723 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.4849, allocations: 117.6 kB / 0.5319 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.485, allocations: 7.938 kB / 0.5319 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.4851, allocations: 19.97 kB / 0.5319 GB, free: 1.566 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.4852, allocations: 11.7 kB / 0.5319 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.4852, allocations: 8 kB / 0.5319 GB, free: 1.551 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.682e-05/0.4853, allocations: 95.27 kB / 0.532 GB, free: 1.457 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4853, allocations: 0 / 0.532 GB, free: 1.457 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002711/0.488, allocations: 1.114 MB / 0.5331 GB, free: 352 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 (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.005895/0.4939, allocations: 2.498 MB / 0.5355 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007233/0.4946, allocations: 299.1 kB / 0.5358 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4947, allocations: 4 kB / 0.5358 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.495, allocations: 160.4 kB / 0.536 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009372/0.4959, allocations: 163.6 kB / 0.5361 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.4985, allocations: 0.9142 MB / 0.537 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.4988, allocations: 0.7339 MB / 0.5377 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.499, allocations: 12.44 kB / 0.5378 GB, free: 11.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.979e-05/0.4991, allocations: 55.41 kB / 0.5378 GB, free: 11.63 MB / 430.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4991, allocations: 0 / 0.5378 GB, free: 11.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06683/0.5659, allocations: 33.53 MB / 0.5706 GB, free: 10.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.21/9.776, allocations: 5.156 kB / 0.5706 GB, free: 10.16 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp_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_psine_Tramp.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe 2>&1)