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.005442/0.005442, allocations: 98.33 kB / 15.73 MB, free: 6.039 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.001323/0.001322, allocations: 185.6 kB / 16.67 MB, free: 5.961 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.444/1.444, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05181/0.05181, allocations: 9.103 MB / 279 MB, free: 12.07 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.002137/0.002137, allocations: 67.91 kB / 387 MB, free: 8.539 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2528, allocations: 48.15 MB / 435.1 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.01966/0.2725, allocations: 18.14 MB / 453.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01894/0.2915, allocations: 17.53 MB / 470.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.2918, allocations: 1.375 kB / 470.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008564/0.2927, allocations: 301.2 kB / 471.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000552/0.2932, allocations: 230.2 kB / 471.3 MB, free: 11.11 MB / 350.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.01935/0.3126, allocations: 7.308 MB / 478.6 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004956/0.3131, allocations: 346.2 kB / 478.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.114e-05/0.3132, allocations: 20.31 kB / 479 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002979/0.3135, allocations: 151.3 kB / 479.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.3137, allocations: 95.64 kB / 479.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.121e-05/0.3137, allocations: 11.98 kB / 479.2 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01881/0.3325, allocations: 10.62 MB / 489.8 MB, free: 9.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.159e-05/0.3326, allocations: 23.75 kB / 489.9 MB, free: 9.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.3328, allocations: 99.47 kB / 490 MB, free: 9.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.3447, allocations: 4.473 MB / 494.4 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3448, allocations: 0 / 494.4 MB, free: 5.352 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3448, allocations: 0 / 494.4 MB, free: 5.352 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.3448, allocations: 0 / 494.4 MB, free: 5.352 MB / 366.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.00264/0.3474, allocations: 1.126 MB / 495.6 MB, free: 4.172 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3475, allocations: 8.031 kB / 495.6 MB, free: 4.164 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.816e-05/0.3475, allocations: 54.48 kB / 495.6 MB, free: 4.102 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.187e-05/0.3476, allocations: 23.86 kB / 495.6 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.3478, allocations: 194.7 kB / 495.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.3478, allocations: 4 kB / 495.8 MB, free: 3.844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.586e-05/0.3478, allocations: 4 kB / 495.8 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.3482, allocations: 172.2 kB / 496 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3483, allocations: 0 / 496 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.3483, allocations: 0 / 496 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3483, allocations: 15.98 kB / 496 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.3488, allocations: 156.3 kB / 496.2 MB, free: 3.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003172/0.3491, allocations: 294 kB / 496.5 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003948/0.3495, allocations: 186.9 kB / 496.6 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003078/0.3498, allocations: 157.6 kB / 496.8 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1633/0.5131, allocations: 93.62 MB / 0.5766 GB, free: 4.789 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.5132, allocations: 38.5 kB / 0.5766 GB, free: 4.742 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 2.094e-06/0.5132, allocations: 0 / 0.5766 GB, free: 4.742 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.001161/0.5144, allocations: 487.7 kB / 0.5771 GB, free: 4.262 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.5144, allocations: 51.41 kB / 0.5771 GB, free: 4.199 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.5146, allocations: 141.4 kB / 0.5773 GB, free: 4.055 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.5146, allocations: 25.7 kB / 0.5773 GB, free: 4.023 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.349e-05/0.5147, allocations: 89.14 kB / 0.5774 GB, free: 3.934 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/0.5148, allocations: 166.5 kB / 0.5775 GB, free: 3.77 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-05/0.5149, allocations: 45.64 kB / 0.5776 GB, free: 3.719 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.5151, allocations: 330.8 kB / 0.5779 GB, free: 3.387 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.5154, allocations: 116.4 kB / 0.578 GB, free: 3.273 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.5157, allocations: 126 kB / 0.5781 GB, free: 3.148 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005688/0.5163, allocations: 283.7 kB / 0.5784 GB, free: 2.867 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.5163, allocations: 3.984 kB / 0.5784 GB, free: 2.863 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006669/0.5169, allocations: 341.1 kB / 0.5787 GB, free: 2.527 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.517, allocations: 4 kB / 0.5787 GB, free: 2.523 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.517, allocations: 3.984 kB / 0.5787 GB, free: 2.52 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.517, allocations: 0 / 0.5787 GB, free: 2.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.5172, allocations: 23.97 kB / 0.5788 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.5172, allocations: 8 kB / 0.5788 GB, free: 2.488 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.5174, allocations: 27.77 kB / 0.5788 GB, free: 2.461 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.5174, allocations: 15.92 kB / 0.5788 GB, free: 2.445 MB / 478.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.0001231/0.5175, allocations: 129.8 kB / 0.5789 GB, free: 2.309 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.5176, allocations: 27.8 kB / 0.579 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000857/0.5184, allocations: 400 kB / 0.5793 GB, free: 1.883 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-05/0.5185, allocations: 7.984 kB / 0.5793 GB, free: 1.875 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.5185, allocations: 0 / 0.5793 GB, free: 1.875 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.5185, allocations: 0 / 0.5793 GB, free: 1.875 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.5188, allocations: 305.5 kB / 0.5796 GB, free: 1.523 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5188, allocations: 0 / 0.5796 GB, free: 1.523 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.5189, allocations: 27.97 kB / 0.5797 GB, free: 1.496 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.519, allocations: 4 kB / 0.5797 GB, free: 1.492 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.519, allocations: 3.984 kB / 0.5797 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.519, allocations: 0 / 0.5797 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.519, allocations: 0 / 0.5797 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007282/0.5197, allocations: 381.4 kB / 0.58 GB, free: 1.098 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.5198, allocations: 112.9 kB / 0.5801 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.5199, allocations: 4 kB / 0.5801 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.52, allocations: 15.97 kB / 0.5802 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.5201, allocations: 15.98 kB / 0.5802 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.5201, allocations: 0 / 0.5802 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.456e-05/0.5202, allocations: 103.3 kB / 0.5803 GB, free: 0.832 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5202, allocations: 4 kB / 0.5803 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002538/0.5227, allocations: 1.145 MB / 0.5814 GB, free: 15.68 MB / 494.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.005484/0.5282, allocations: 2.495 MB / 0.5838 GB, free: 13.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007406/0.529, allocations: 311.2 kB / 0.5841 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.529, allocations: 0 / 0.5841 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003444/0.5294, allocations: 160.4 kB / 0.5843 GB, free: 12.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008958/0.5303, allocations: 143.8 kB / 0.5844 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002332/0.5326, allocations: 0.9308 MB / 0.5853 GB, free: 11.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003528/0.533, allocations: 0.7406 MB / 0.586 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.824e-05/0.5331, allocations: 16.41 kB / 0.5861 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.797e-05/0.5332, allocations: 47.42 kB / 0.5861 GB, free: 10.74 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5332, allocations: 8 kB / 0.5861 GB, free: 10.73 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2319/0.7651, allocations: 33.59 MB / 0.6189 GB, free: 161.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.446/10.21, allocations: 1.688 kB / 0.6189 GB, free: 161.6 MB / 494.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)