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.006328/0.006328, allocations: 106 kB / 15.74 MB, free: 6.02 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.001269/0.001269, allocations: 188.4 kB / 16.67 MB, free: 5.941 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.546/1.546, allocations: 205.1 MB / 222.6 MB, free: 4.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04731/0.04731, allocations: 9.096 MB / 279 MB, free: 12.05 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.0017/0.0017, allocations: 66.56 kB / 387.5 MB, free: 8.031 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2798, allocations: 48.16 MB / 435.6 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_psine_Tramp): time 0.02096/0.3008, allocations: 18.12 MB / 453.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01775/0.3186, allocations: 17.54 MB / 471.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00033/0.319, allocations: 1.125 kB / 471.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.3201, allocations: 305.7 kB / 471.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006707/0.3208, allocations: 221.4 kB / 471.8 MB, free: 11.32 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.02228/0.3431, allocations: 7.314 MB / 479.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005056/0.3436, allocations: 358.2 kB / 479.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.975e-05/0.3436, allocations: 12.31 kB / 479.5 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.344, allocations: 159.4 kB / 479.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.3441, allocations: 99.5 kB / 479.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.3441, allocations: 4 kB / 479.7 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01905/0.3632, allocations: 10.62 MB / 490.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.428e-05/0.3633, allocations: 23.91 kB / 490.4 MB, free: 9.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002422/0.3636, allocations: 99.48 kB / 490.5 MB, free: 9.754 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01403/0.3776, allocations: 4.473 MB / 494.9 MB, free: 5.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3776, allocations: 0 / 494.9 MB, free: 5.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.3776, allocations: 0 / 494.9 MB, free: 5.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.3777, allocations: 0 / 494.9 MB, free: 5.27 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.002971/0.3806, allocations: 1.122 MB / 496.1 MB, free: 4.094 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3807, allocations: 16.03 kB / 496.1 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/0.3808, allocations: 19.86 kB / 496.1 MB, free: 4.059 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001657/0.3809, allocations: 194.7 kB / 496.3 MB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.381, allocations: 4 kB / 496.3 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.381, allocations: 4 kB / 496.3 MB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.3814, allocations: 172.2 kB / 496.5 MB, free: 3.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3814, allocations: 3.984 kB / 496.5 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.3814, allocations: 4 kB / 496.5 MB, free: 3.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3814, allocations: 11.98 kB / 496.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004216/0.3819, allocations: 156.3 kB / 496.6 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003463/0.3822, allocations: 298 kB / 496.9 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.3826, allocations: 178.9 kB / 497.1 MB, free: 2.953 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.3829, allocations: 157.7 kB / 497.2 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1503/0.5332, allocations: 93.62 MB / 0.577 GB, free: 4.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.5333, allocations: 38.56 kB / 0.5771 GB, free: 4.723 MB / 478.1 MB Notification: Performance of pre-optimization done (n=48): time 3.427e-06/0.5333, allocations: 3.938 kB / 0.5771 GB, free: 4.719 MB / 478.1 MB Notification: Performance of matching and sorting (n=48): time 0.001188/0.5345, allocations: 483.7 kB / 0.5775 GB, free: 4.242 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.5346, allocations: 55.41 kB / 0.5776 GB, free: 4.176 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.5347, allocations: 134.2 kB / 0.5777 GB, free: 4.035 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.5348, allocations: 33.64 kB / 0.5777 GB, free: 3.996 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.5348, allocations: 85.14 kB / 0.5778 GB, free: 3.91 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.535, allocations: 166.5 kB / 0.578 GB, free: 3.746 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.377e-05/0.5351, allocations: 41.7 kB / 0.578 GB, free: 3.699 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.5352, allocations: 330.8 kB / 0.5783 GB, free: 3.367 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.5355, allocations: 124.4 kB / 0.5784 GB, free: 3.246 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002447/0.5357, allocations: 114.1 kB / 0.5786 GB, free: 3.133 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005281/0.5363, allocations: 287.6 kB / 0.5788 GB, free: 2.848 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5363, allocations: 0 / 0.5788 GB, free: 2.848 MB / 478.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000633/0.5369, allocations: 345.1 kB / 0.5792 GB, free: 2.508 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.537, allocations: 4 kB / 0.5792 GB, free: 2.504 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.537, allocations: 0 / 0.5792 GB, free: 2.504 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.537, allocations: 4 kB / 0.5792 GB, free: 2.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.5372, allocations: 23.97 kB / 0.5792 GB, free: 2.477 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.5372, allocations: 4 kB / 0.5792 GB, free: 2.473 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.5374, allocations: 31.83 kB / 0.5792 GB, free: 2.441 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.5374, allocations: 0 / 0.5792 GB, free: 2.441 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.0001286/0.5375, allocations: 129.8 kB / 0.5793 GB, free: 2.305 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.5376, allocations: 23.8 kB / 0.5794 GB, free: 2.281 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000863/0.5384, allocations: 408 kB / 0.5798 GB, free: 1.875 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.5385, allocations: 3.984 kB / 0.5798 GB, free: 1.871 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5385, allocations: 4 kB / 0.5798 GB, free: 1.867 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.5385, allocations: 0 / 0.5798 GB, free: 1.867 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.5388, allocations: 297.5 kB / 0.58 GB, free: 1.523 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.5388, allocations: 7.938 kB / 0.5801 GB, free: 1.516 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.5389, allocations: 27.91 kB / 0.5801 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.5389, allocations: 8 kB / 0.5801 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.5389, allocations: 0 / 0.5801 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.539, allocations: 0 / 0.5801 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/0.539, allocations: 3.984 kB / 0.5801 GB, free: 1.477 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007078/0.5397, allocations: 373.5 kB / 0.5804 GB, free: 1.094 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.5398, allocations: 120.8 kB / 0.5806 GB, free: 0.957 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.5399, allocations: 0 / 0.5806 GB, free: 0.957 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.54, allocations: 15.98 kB / 0.5806 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.697e-05/0.5401, allocations: 15.97 kB / 0.5806 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.5401, allocations: 4 kB / 0.5806 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.96e-05/0.5402, allocations: 103 kB / 0.5807 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5402, allocations: 4 kB / 0.5807 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00408/0.5443, allocations: 1.145 MB / 0.5818 GB, free: 15.67 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.008619/0.5529, allocations: 1.694 MB / 0.5835 GB, free: 13.96 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000874/0.5539, allocations: 295.3 kB / 0.5838 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.5539, allocations: 7.938 kB / 0.5838 GB, free: 13.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.5543, allocations: 160.4 kB / 0.5839 GB, free: 13.51 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009931/0.5553, allocations: 156.3 kB / 0.5841 GB, free: 13.36 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009772/0.5563, allocations: 423.1 kB / 0.5845 GB, free: 12.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004044/0.5567, allocations: 0.7368 MB / 0.5852 GB, free: 12.15 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000123/0.5569, allocations: 12.44 kB / 0.5852 GB, free: 12.14 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.801e-05/0.5569, allocations: 19.44 kB / 0.5852 GB, free: 12.12 MB / 494.1 MB Notification: Performance of SimCode: time 3.01e-07/0.5569, allocations: 0 / 0.5852 GB, free: 12.12 MB / 494.1 MB Notification: Performance of Templates: time 0.2486/0.8055, allocations: 30.76 MB / 0.6153 GB, free: 169 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)