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: translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp") translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009375/0.009375, allocations: 103.6 kB / 15.74 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.001791/0.001791, allocations: 198.4 kB / 16.68 MB, free: 5.953 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.587/1.587, allocations: 205.1 MB / 222.5 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.0456/0.0456, allocations: 9.087 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.00168/0.00168, allocations: 64.23 kB / 387.4 MB, free: 8.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3302, allocations: 48.15 MB / 435.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.01971/0.3499, allocations: 18.13 MB / 453.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.3679, allocations: 17.54 MB / 471.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004257/0.3684, allocations: 1.688 kB / 471.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001215/0.3697, allocations: 296.7 kB / 471.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008068/0.3705, allocations: 222.4 kB / 471.8 MB, free: 11.35 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.02422/0.3947, allocations: 7.316 MB / 479.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005773/0.3953, allocations: 350.2 kB / 479.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.179e-05/0.3954, allocations: 12.31 kB / 479.4 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003338/0.3958, allocations: 163.3 kB / 479.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.3959, allocations: 95.62 kB / 479.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.396, allocations: 4 kB / 479.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02035/0.4163, allocations: 10.62 MB / 490.3 MB, free: 9.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.704e-05/0.4164, allocations: 27.84 kB / 490.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.4167, allocations: 103.4 kB / 490.5 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01516/0.4319, allocations: 4.459 MB / 494.9 MB, free: 5.285 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4319, allocations: 3.938 kB / 494.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4319, allocations: 0 / 494.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.416e-05/0.4319, allocations: 0 / 494.9 MB, free: 5.281 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.002736/0.4347, allocations: 1.095 MB / 496 MB, free: 4.141 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.4347, allocations: 12.03 kB / 496 MB, free: 4.129 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.538e-05/0.4348, allocations: 15.81 kB / 496 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.435, allocations: 194.6 kB / 496.2 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.435, allocations: 4 kB / 496.2 MB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.435, allocations: 7.984 kB / 496.2 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004064/0.4355, allocations: 164.2 kB / 496.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.4355, allocations: 0 / 496.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.4355, allocations: 8 kB / 496.4 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.4355, allocations: 11.92 kB / 496.4 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004375/0.436, allocations: 156.3 kB / 496.6 MB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000327/0.4363, allocations: 301.9 kB / 496.9 MB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.4366, allocations: 186.9 kB / 497 MB, free: 3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.4369, allocations: 157.7 kB / 497.2 MB, free: 2.844 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.15/0.587, allocations: 93.61 MB / 0.577 GB, free: 4.824 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.587, allocations: 38.56 kB / 0.577 GB, free: 4.777 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 2.415e-06/0.5871, allocations: 0 / 0.577 GB, free: 4.777 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.00107/0.5881, allocations: 479.6 kB / 0.5775 GB, free: 4.305 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.5882, allocations: 55.41 kB / 0.5775 GB, free: 4.238 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.5883, allocations: 142 kB / 0.5776 GB, free: 4.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.5883, allocations: 29.64 kB / 0.5777 GB, free: 4.055 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.5884, allocations: 89.14 kB / 0.5778 GB, free: 3.965 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.5885, allocations: 149.8 kB / 0.5779 GB, free: 3.816 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.521e-05/0.5886, allocations: 45.69 kB / 0.5779 GB, free: 3.766 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5887, allocations: 326.8 kB / 0.5783 GB, free: 3.438 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002582/0.589, allocations: 120.4 kB / 0.5784 GB, free: 3.32 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.5892, allocations: 118.1 kB / 0.5785 GB, free: 3.203 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006149/0.5899, allocations: 291.6 kB / 0.5788 GB, free: 2.914 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.5899, allocations: 4 kB / 0.5788 GB, free: 2.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006248/0.5905, allocations: 337 kB / 0.5791 GB, free: 2.578 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.5905, allocations: 4 kB / 0.5791 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5906, allocations: 0 / 0.5791 GB, free: 2.574 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.5906, allocations: 4 kB / 0.5791 GB, free: 2.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.5907, allocations: 23.92 kB / 0.5791 GB, free: 2.547 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.5908, allocations: 4 kB / 0.5791 GB, free: 2.543 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.5909, allocations: 35.66 kB / 0.5792 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.5909, allocations: 4 kB / 0.5792 GB, free: 2.504 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.0001085/0.5911, allocations: 125.8 kB / 0.5793 GB, free: 2.371 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.5911, allocations: 23.66 kB / 0.5793 GB, free: 2.348 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008055/0.5919, allocations: 407.8 kB / 0.5797 GB, free: 1.941 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.5919, allocations: 7.984 kB / 0.5797 GB, free: 1.934 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.592, allocations: 7.984 kB / 0.5797 GB, free: 1.926 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.592, allocations: 0 / 0.5797 GB, free: 1.926 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002767/0.5923, allocations: 285.6 kB / 0.58 GB, free: 1.594 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.5923, allocations: 11.94 kB / 0.58 GB, free: 1.582 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.5924, allocations: 23.91 kB / 0.58 GB, free: 1.559 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.5924, allocations: 4 kB / 0.58 GB, free: 1.555 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.5924, allocations: 4 kB / 0.58 GB, free: 1.551 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5924, allocations: 0 / 0.58 GB, free: 1.551 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5925, allocations: 3.938 kB / 0.58 GB, free: 1.547 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006969/0.5932, allocations: 373.5 kB / 0.5804 GB, free: 1.164 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.5933, allocations: 120.6 kB / 0.5805 GB, free: 1.027 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.5933, allocations: 4 kB / 0.5805 GB, free: 1.023 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.5935, allocations: 15.98 kB / 0.5805 GB, free: 1.008 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.5936, allocations: 11.98 kB / 0.5805 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.402e-05/0.5936, allocations: 4 kB / 0.5805 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.663e-05/0.5937, allocations: 111 kB / 0.5806 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5937, allocations: 0 / 0.5806 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002788/0.5965, allocations: 1.124 MB / 0.5817 GB, free: 15.76 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.005165/0.6016, allocations: 1.666 MB / 0.5834 GB, free: 14.09 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007327/0.6024, allocations: 295.3 kB / 0.5836 GB, free: 13.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6024, allocations: 4 kB / 0.5836 GB, free: 13.79 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.6027, allocations: 164.4 kB / 0.5838 GB, free: 13.63 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008987/0.6036, allocations: 168.1 kB / 0.584 GB, free: 13.47 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008631/0.6045, allocations: 419.5 kB / 0.5844 GB, free: 13.03 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.6048, allocations: 0.7368 MB / 0.5851 GB, free: 12.26 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.605, allocations: 16.41 kB / 0.5851 GB, free: 12.25 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.631e-05/0.605, allocations: 19.44 kB / 0.5851 GB, free: 12.23 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/0.605, allocations: 0 / 0.5851 GB, free: 12.23 MB / 494.1 MB Notification: Performance of Templates: time 0.2546/0.8596, allocations: 30.76 MB / 0.6152 GB, free: 169.1 MB / 494.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe 2>&1)