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.00713/0.00713, allocations: 97.23 kB / 15.73 MB, free: 6 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.001854/0.001855, allocations: 189.2 kB / 16.67 MB, free: 5.93 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.376/1.376, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04983/0.04983, allocations: 9.104 MB / 279 MB, free: 12.08 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.00204/0.00204, allocations: 67.91 kB / 387 MB, free: 8.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2407, allocations: 48.16 MB / 435.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.01808/0.2588, allocations: 18.12 MB / 453.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01756/0.2764, allocations: 17.53 MB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.2767, allocations: 1.375 kB / 470.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007827/0.2774, allocations: 296 kB / 471.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000528/0.278, allocations: 230.9 kB / 471.3 MB, free: 11.09 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.01844/0.2964, allocations: 7.314 MB / 478.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004633/0.2969, allocations: 354.2 kB / 478.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.503e-05/0.297, allocations: 16.31 kB / 479 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.2973, allocations: 159.3 kB / 479.1 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001595/0.2974, allocations: 91.62 kB / 479.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.2975, allocations: 4 kB / 479.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01825/0.3157, allocations: 10.62 MB / 489.8 MB, free: 9.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.068e-05/0.3158, allocations: 27.84 kB / 489.9 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.316, allocations: 103.5 kB / 490 MB, free: 9.816 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00966/0.3257, allocations: 4.469 MB / 494.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3257, allocations: 3.938 kB / 494.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3257, allocations: 0 / 494.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.3257, allocations: 0 / 494.4 MB, free: 5.332 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.002166/0.3279, allocations: 1.126 MB / 495.6 MB, free: 4.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.3279, allocations: 12.03 kB / 495.6 MB, free: 4.141 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.994e-05/0.328, allocations: 46.55 kB / 495.6 MB, free: 4.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.241e-05/0.328, allocations: 19.86 kB / 495.6 MB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.3282, allocations: 202.6 kB / 495.8 MB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.3282, allocations: 8 kB / 495.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.3282, allocations: 0 / 495.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000382/0.3286, allocations: 176.2 kB / 496 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3287, allocations: 0 / 496 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.3287, allocations: 0 / 496 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.3287, allocations: 11.98 kB / 496 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000444/0.3291, allocations: 160.2 kB / 496.2 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003166/0.3295, allocations: 294 kB / 496.5 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003463/0.3298, allocations: 178.9 kB / 496.6 MB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/0.3301, allocations: 161.6 kB / 496.8 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.155/0.4851, allocations: 93.62 MB / 0.5766 GB, free: 4.766 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.4852, allocations: 30.56 kB / 0.5766 GB, free: 4.727 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 2.184e-06/0.4852, allocations: 0 / 0.5766 GB, free: 4.727 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.001114/0.4863, allocations: 483.7 kB / 0.5771 GB, free: 4.25 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.4863, allocations: 51.41 kB / 0.5771 GB, free: 4.188 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.4865, allocations: 141.4 kB / 0.5773 GB, free: 4.043 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.4865, allocations: 29.7 kB / 0.5773 GB, free: 4.008 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.548e-05/0.4866, allocations: 89.14 kB / 0.5774 GB, free: 3.918 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.4867, allocations: 158.5 kB / 0.5775 GB, free: 3.762 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.432e-05/0.4868, allocations: 45.69 kB / 0.5776 GB, free: 3.711 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.4869, allocations: 334.8 kB / 0.5779 GB, free: 3.375 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.4872, allocations: 124.3 kB / 0.578 GB, free: 3.254 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.4875, allocations: 118.1 kB / 0.5781 GB, free: 3.137 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005583/0.488, allocations: 287.7 kB / 0.5784 GB, free: 2.852 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4881, allocations: 0 / 0.5784 GB, free: 2.852 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006348/0.4887, allocations: 337.1 kB / 0.5787 GB, free: 2.52 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.4887, allocations: 11.98 kB / 0.5787 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.4887, allocations: 0 / 0.5787 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.4888, allocations: 0 / 0.5787 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.4889, allocations: 23.98 kB / 0.5788 GB, free: 2.484 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.4889, allocations: 3.938 kB / 0.5788 GB, free: 2.48 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.4891, allocations: 39.75 kB / 0.5788 GB, free: 2.441 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.4891, allocations: 4 kB / 0.5788 GB, free: 2.438 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.0001164/0.4892, allocations: 125.8 kB / 0.5789 GB, free: 2.305 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.374e-05/0.4893, allocations: 27.8 kB / 0.5789 GB, free: 2.277 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007858/0.4901, allocations: 404 kB / 0.5793 GB, free: 1.875 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.975e-05/0.4901, allocations: 11.97 kB / 0.5793 GB, free: 1.863 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4901, allocations: 0 / 0.5793 GB, free: 1.863 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4901, allocations: 7.984 kB / 0.5793 GB, free: 1.855 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.4904, allocations: 301.5 kB / 0.5796 GB, free: 1.508 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.4904, allocations: 3.938 kB / 0.5796 GB, free: 1.504 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.4906, allocations: 23.97 kB / 0.5797 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.4906, allocations: 4 kB / 0.5797 GB, free: 1.477 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.4906, allocations: 0 / 0.5797 GB, free: 1.477 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.4906, allocations: 4 kB / 0.5797 GB, free: 1.473 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4906, allocations: 0 / 0.5797 GB, free: 1.473 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006851/0.4913, allocations: 381.4 kB / 0.58 GB, free: 1.082 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.624e-05/0.4914, allocations: 116.9 kB / 0.5801 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.4914, allocations: 4 kB / 0.5801 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.4916, allocations: 11.98 kB / 0.5802 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.33e-05/0.4917, allocations: 11.98 kB / 0.5802 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.4917, allocations: 8 kB / 0.5802 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.279e-05/0.4918, allocations: 107.2 kB / 0.5803 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4918, allocations: 0 / 0.5803 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002724/0.4945, allocations: 1.141 MB / 0.5814 GB, free: 15.66 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.005097/0.4996, allocations: 2.484 MB / 0.5838 GB, free: 13.15 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007/0.5003, allocations: 307.2 kB / 0.5841 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5003, allocations: 3.938 kB / 0.5841 GB, free: 12.85 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.5007, allocations: 160.4 kB / 0.5843 GB, free: 12.69 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008713/0.5016, allocations: 159.8 kB / 0.5844 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.5036, allocations: 0.9307 MB / 0.5853 GB, free: 11.56 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.5039, allocations: 0.7368 MB / 0.5861 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.672e-05/0.504, allocations: 24.36 kB / 0.5861 GB, free: 10.77 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.202e-05/0.5041, allocations: 51.42 kB / 0.5861 GB, free: 10.72 MB / 494.1 MB Notification: Performance of SimCode: time 3.4e-07/0.5041, allocations: 0 / 0.5861 GB, free: 10.72 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2374/0.7415, allocations: 33.58 MB / 0.6189 GB, free: 161.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.36, allocations: 7.156 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 & /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)