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.006428/0.006428, allocations: 100.7 kB / 15.73 MB, free: 6.469 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.001784/0.001784, allocations: 193.2 kB / 16.67 MB, free: 6.379 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.384/1.384, allocations: 205.1 MB / 222.5 MB, free: 4.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04707/0.04707, allocations: 9.104 MB / 279 MB, free: 12.09 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.001568/0.001568, allocations: 63.91 kB / 387 MB, free: 8.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2528, allocations: 48.15 MB / 435.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.01977/0.2726, allocations: 18.14 MB / 453.2 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01786/0.2905, allocations: 17.52 MB / 470.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.2908, allocations: 1.438 kB / 470.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00088/0.2917, allocations: 302 kB / 471.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006435/0.2924, allocations: 226.4 kB / 471.3 MB, free: 11.12 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.02137/0.3137, allocations: 7.308 MB / 478.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004897/0.3143, allocations: 346.3 kB / 478.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.333e-05/0.3143, allocations: 16.3 kB / 478.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.3146, allocations: 163.3 kB / 479.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.3148, allocations: 95.62 kB / 479.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.3148, allocations: 8 kB / 479.2 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01767/0.3325, allocations: 10.62 MB / 489.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.578e-05/0.3326, allocations: 23.84 kB / 489.9 MB, free: 9.945 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.3328, allocations: 99.48 kB / 490 MB, free: 9.848 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01399/0.3468, allocations: 4.459 MB / 494.4 MB, free: 5.379 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3468, allocations: 0 / 494.4 MB, free: 5.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3468, allocations: 4 kB / 494.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.3469, allocations: 0 / 494.4 MB, free: 5.375 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.002547/0.3494, allocations: 1.099 MB / 495.5 MB, free: 4.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3495, allocations: 11.97 kB / 495.5 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.461e-05/0.3495, allocations: 46.55 kB / 495.6 MB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.3496, allocations: 15.81 kB / 495.6 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.3497, allocations: 190.6 kB / 495.8 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.3497, allocations: 4 kB / 495.8 MB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.3497, allocations: 8 kB / 495.8 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.3501, allocations: 172.2 kB / 496 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3502, allocations: 7.984 kB / 496 MB, free: 3.727 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3502, allocations: 0 / 496 MB, free: 3.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.3502, allocations: 15.98 kB / 496 MB, free: 3.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/0.3506, allocations: 152.3 kB / 496.1 MB, free: 3.562 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002835/0.3509, allocations: 305.8 kB / 496.4 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.3513, allocations: 178.9 kB / 496.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.3516, allocations: 157.7 kB / 496.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1538/0.5054, allocations: 93.62 MB / 0.5765 GB, free: 4.844 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.5055, allocations: 30.56 kB / 0.5766 GB, free: 4.805 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 2.895e-06/0.5055, allocations: 0 / 0.5766 GB, free: 4.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.001036/0.5066, allocations: 487.5 kB / 0.577 GB, free: 4.324 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.5066, allocations: 55.41 kB / 0.5771 GB, free: 4.258 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.5067, allocations: 133.4 kB / 0.5772 GB, free: 4.121 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.5068, allocations: 29.7 kB / 0.5772 GB, free: 4.086 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.403e-05/0.5068, allocations: 85.14 kB / 0.5773 GB, free: 4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.507, allocations: 149.7 kB / 0.5775 GB, free: 3.852 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.348e-05/0.507, allocations: 45.7 kB / 0.5775 GB, free: 3.801 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.5072, allocations: 330.8 kB / 0.5778 GB, free: 3.469 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.5075, allocations: 120.4 kB / 0.5779 GB, free: 3.352 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.5077, allocations: 126 kB / 0.5781 GB, free: 3.227 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000564/0.5083, allocations: 283.7 kB / 0.5783 GB, free: 2.945 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.5083, allocations: 4 kB / 0.5783 GB, free: 2.941 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006616/0.509, allocations: 337 kB / 0.5787 GB, free: 2.609 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.509, allocations: 4 kB / 0.5787 GB, free: 2.605 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.657e-06/0.509, allocations: 0 / 0.5787 GB, free: 2.605 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.5091, allocations: 0 / 0.5787 GB, free: 2.605 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.5092, allocations: 27.97 kB / 0.5787 GB, free: 2.578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.5092, allocations: 0 / 0.5787 GB, free: 2.578 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.5094, allocations: 35.61 kB / 0.5787 GB, free: 2.543 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.5094, allocations: 7.984 kB / 0.5787 GB, free: 2.535 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.0002172/0.5097, allocations: 129.8 kB / 0.5789 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/0.5097, allocations: 23.66 kB / 0.5789 GB, free: 2.375 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008311/0.5106, allocations: 411.8 kB / 0.5793 GB, free: 1.965 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.5106, allocations: 11.98 kB / 0.5793 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.5106, allocations: 0 / 0.5793 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.5106, allocations: 0 / 0.5793 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.5109, allocations: 297.5 kB / 0.5796 GB, free: 1.609 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.5109, allocations: 0 / 0.5796 GB, free: 1.609 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.5111, allocations: 27.97 kB / 0.5796 GB, free: 1.582 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.5111, allocations: 0 / 0.5796 GB, free: 1.582 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.5111, allocations: 4 kB / 0.5796 GB, free: 1.578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.5111, allocations: 7.922 kB / 0.5796 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5111, allocations: 0 / 0.5796 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006912/0.5118, allocations: 377.4 kB / 0.58 GB, free: 1.184 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.512, allocations: 116.7 kB / 0.5801 GB, free: 1.051 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.512, allocations: 0 / 0.5801 GB, free: 1.051 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.5121, allocations: 23.97 kB / 0.5801 GB, free: 1.027 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.5122, allocations: 11.98 kB / 0.5801 GB, free: 1.016 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.5122, allocations: 4 kB / 0.5801 GB, free: 1.012 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.066e-05/0.5123, allocations: 103.3 kB / 0.5802 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5123, allocations: 0 / 0.5802 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002544/0.5148, allocations: 1.12 MB / 0.5813 GB, free: 15.79 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.006227/0.5211, allocations: 2.471 MB / 0.5837 GB, free: 13.29 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007601/0.5219, allocations: 299.5 kB / 0.584 GB, free: 13 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5219, allocations: 4 kB / 0.584 GB, free: 13 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.5222, allocations: 164.5 kB / 0.5842 GB, free: 12.84 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009246/0.5232, allocations: 163.1 kB / 0.5843 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.5253, allocations: 0.9105 MB / 0.5852 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.5256, allocations: 0.7406 MB / 0.5859 GB, free: 10.95 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.5258, allocations: 20.42 kB / 0.5859 GB, free: 10.93 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.495e-05/0.5259, allocations: 47.42 kB / 0.586 GB, free: 10.89 MB / 494.1 MB Notification: Performance of SimCode: time 3.5e-07/0.5259, allocations: 4 kB / 0.586 GB, free: 10.88 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2378/0.7636, allocations: 33.68 MB / 0.6189 GB, free: 161.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.834/9.597, allocations: 9.062 kB / 0.6189 GB, free: 161.7 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_psine_Tramp.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe 2>&1)