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.001645/0.001645, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001987/0.001987, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.35/1.35, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04453/0.04453, allocations: 9.1 MB / 279.6 MB, free: 2.961 MB / 222.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.002697/0.002697, allocations: 71.89 kB / 339.5 MB, free: 6.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2875, allocations: 48.14 MB / 387.6 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.01892/0.3065, allocations: 18.13 MB / 405.7 MB, free: 38.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01377/0.3203, allocations: 17.53 MB / 423.3 MB, free: 23.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002893/0.3206, allocations: 0 / 423.3 MB, free: 23.74 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007149/0.3214, allocations: 305.7 kB / 423.6 MB, free: 23.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004746/0.3219, allocations: 226.6 kB / 423.8 MB, free: 23.22 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.01802/0.3399, allocations: 7.316 MB / 431.1 MB, free: 15.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003945/0.3403, allocations: 354.2 kB / 431.5 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.472e-05/0.3404, allocations: 12.31 kB / 431.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.3406, allocations: 151.4 kB / 431.6 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.3408, allocations: 107.5 kB / 431.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.3408, allocations: 4 kB / 431.7 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01536/0.3562, allocations: 10.62 MB / 442.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.617e-05/0.3563, allocations: 19.91 kB / 442.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001707/0.3564, allocations: 99.48 kB / 442.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01142/0.3679, allocations: 4.463 MB / 446.9 MB, free: 56 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3679, allocations: 3.984 kB / 446.9 MB, free: 52 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3679, allocations: 0 / 446.9 MB, free: 52 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.3679, allocations: 0 / 446.9 MB, free: 52 kB / 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.002433/0.3704, allocations: 1.088 MB / 448 MB, free: 14.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3704, allocations: 8.031 kB / 448 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.3705, allocations: 27.72 kB / 448.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.3706, allocations: 192.2 kB / 448.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.3707, allocations: 4 kB / 448.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.3707, allocations: 8 kB / 448.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003696/0.371, allocations: 168.2 kB / 448.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3711, allocations: 0 / 448.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3711, allocations: 0 / 448.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.3711, allocations: 11.98 kB / 448.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.3715, allocations: 160.2 kB / 448.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003163/0.3719, allocations: 290.1 kB / 448.9 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.3722, allocations: 178.9 kB / 449 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.3725, allocations: 157.7 kB / 449.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3151/0.6876, allocations: 93.62 MB / 0.5301 GB, free: 129.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.339e-05/0.6877, allocations: 31.91 kB / 0.5301 GB, free: 129.2 MB / 414.1 MB Notification: Performance of pre-optimization done (n=48): time 2.815e-06/0.6877, allocations: 1.25 kB / 0.5301 GB, free: 129.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=48): time 0.001228/0.6889, allocations: 479.7 kB / 0.5306 GB, free: 129 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.689, allocations: 53.12 kB / 0.5306 GB, free: 129 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.6891, allocations: 134.8 kB / 0.5308 GB, free: 128.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.6891, allocations: 29.7 kB / 0.5308 GB, free: 128.8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.115e-05/0.6892, allocations: 90.39 kB / 0.5309 GB, free: 128.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.6893, allocations: 154.8 kB / 0.531 GB, free: 128.6 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.9e-05/0.6894, allocations: 45.5 kB / 0.5311 GB, free: 128.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.045e-05/0.6894, allocations: 330.6 kB / 0.5314 GB, free: 128.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.6897, allocations: 122.3 kB / 0.5315 GB, free: 128.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.6899, allocations: 116.6 kB / 0.5316 GB, free: 128.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004857/0.6904, allocations: 289.9 kB / 0.5319 GB, free: 128.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.6904, allocations: 2.062 kB / 0.5319 GB, free: 128.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006106/0.6911, allocations: 333.6 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.6911, allocations: 6.125 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.6911, allocations: 0.7969 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.6911, allocations: 1.344 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.6913, allocations: 22.58 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.6913, allocations: 1.781 kB / 0.5322 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.6915, allocations: 35.69 kB / 0.5323 GB, free: 128 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.6915, allocations: 4.375 kB / 0.5323 GB, free: 128 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 8.662e-05/0.6916, allocations: 131.1 kB / 0.5324 GB, free: 127.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.6916, allocations: 19.97 kB / 0.5324 GB, free: 127.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007859/0.6924, allocations: 409.3 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.876e-05/0.6925, allocations: 6.75 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.6925, allocations: 0.5156 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.6925, allocations: 3.594 kB / 0.5328 GB, free: 127.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.6927, allocations: 288.4 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.6927, allocations: 2.641 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.6929, allocations: 27.09 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.6929, allocations: 0.5312 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.6929, allocations: 3.312 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.6929, allocations: 0.5 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6929, allocations: 4.156 kB / 0.5331 GB, free: 127.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005929/0.6935, allocations: 376 kB / 0.5335 GB, free: 127.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.243e-05/0.6936, allocations: 121.5 kB / 0.5336 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.6936, allocations: 1.344 kB / 0.5336 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.6937, allocations: 13.58 kB / 0.5336 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.492e-05/0.6938, allocations: 12.7 kB / 0.5336 GB, free: 127.1 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.6938, allocations: 7.938 kB / 0.5336 GB, free: 127.1 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.453e-05/0.6939, allocations: 112.8 kB / 0.5338 GB, free: 127 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.032e-06/0.6939, allocations: 0.6875 kB / 0.5338 GB, free: 127 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003/0.6969, allocations: 1.122 MB / 0.5348 GB, free: 126.9 MB / 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.003953/0.7009, allocations: 1.667 MB / 0.5365 GB, free: 126.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006121/0.7015, allocations: 297.5 kB / 0.5368 GB, free: 126.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7015, allocations: 0 / 0.5368 GB, free: 126.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.7018, allocations: 168.1 kB / 0.5369 GB, free: 126.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007723/0.7026, allocations: 170.8 kB / 0.5371 GB, free: 126.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007296/0.7033, allocations: 410.8 kB / 0.5375 GB, free: 126 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001543/0.7035, allocations: 0.7369 MB / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.621e-05/0.7036, allocations: 15.94 kB / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.235e-05/0.7036, allocations: 21.39 kB / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.7036, allocations: 0 / 0.5382 GB, free: 125.3 MB / 414.1 MB Notification: Performance of Templates: time 0.03439/0.738, allocations: 30.75 MB / 0.5683 GB, free: 96.66 MB / 414.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 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp.pipe 2>&1)