Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1") translateModel(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7364/0.7364, allocations: 150.8 MB / 166.1 MB, free: 15.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.579e-05/1.582e-05, allocations: 4 kB / 204.8 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1347, allocations: 31.97 MB / 236.8 MB, free: 5.445 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1): time 1.431/1.566, allocations: 297.5 MB / 0.5217 GB, free: 9.516 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04167/1.608, allocations: 39.92 MB / 0.5607 GB, free: 1.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005984/1.608, allocations: 8 kB / 0.5607 GB, free: 1.723 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004945/1.609, allocations: 230.5 kB / 0.561 GB, free: 1.496 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008793/1.61, allocations: 436.8 kB / 0.5614 GB, free: 1.066 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01904/1.629, allocations: 7.85 MB / 0.569 GB, free: 9.211 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0017/1.631, allocations: 1.665 MB / 0.5707 GB, free: 7.539 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004753/1.631, allocations: 459.8 kB / 0.5711 GB, free: 7.098 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000557/1.632, allocations: 0.552 MB / 0.5716 GB, free: 6.543 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004161/1.632, allocations: 0.4934 MB / 0.5721 GB, free: 6.047 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.189e-05/1.632, allocations: 40 kB / 0.5722 GB, free: 6.008 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02297/1.655, allocations: 15.93 MB / 0.5877 GB, free: 6.055 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001891/1.655, allocations: 163.1 kB / 0.5879 GB, free: 5.895 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006748/1.656, allocations: 0.6155 MB / 0.5885 GB, free: 5.27 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0158/1.672, allocations: 8.875 MB / 0.5971 GB, free: 12.37 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/1.672, allocations: 0 / 0.5971 GB, free: 12.37 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.773e-06/1.672, allocations: 0 / 0.5971 GB, free: 12.37 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.242e-05/1.672, allocations: 0 / 0.5971 GB, free: 12.37 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 407 * Number of variables: 407 Notification: Performance of Generate backend data structure: time 0.004599/1.677, allocations: 2.096 MB / 0.5992 GB, free: 10.22 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/1.677, allocations: 8.031 kB / 0.5992 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/1.677, allocations: 138.2 kB / 0.5993 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005031/1.677, allocations: 480.6 kB / 0.5998 GB, free: 9.566 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/1.677, allocations: 180.8 kB / 0.6 GB, free: 9.363 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.785e-05/1.678, allocations: 80 kB / 0.6 GB, free: 9.285 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/1.679, allocations: 1.41 MB / 0.6014 GB, free: 7.793 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/1.679, allocations: 0 / 0.6014 GB, free: 7.793 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/1.68, allocations: 40 kB / 0.6015 GB, free: 7.754 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.617e-05/1.68, allocations: 71.92 kB / 0.6015 GB, free: 7.684 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/1.681, allocations: 1.012 MB / 0.6025 GB, free: 6.668 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004921/1.686, allocations: 6.406 MB / 0.6088 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/1.687, allocations: 0.8489 MB / 0.6096 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007828/1.688, allocations: 0.7003 MB / 0.6103 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1751/1.863, allocations: 81.18 MB / 0.6896 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/1.863, allocations: 35 kB / 0.6896 GB, free: 4.035 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=247): time 2.665e-06/1.863, allocations: 0 / 0.6896 GB, free: 4.035 MB / 0.5762 GB Notification: Performance of matching and sorting (n=247): time 0.007639/1.871, allocations: 3.76 MB / 0.6933 GB, free: 192 kB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/1.871, allocations: 59.78 kB / 0.6933 GB, free: 120 kB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.151/2.022, allocations: 498.2 kB / 0.6938 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001112/2.022, allocations: 34.17 kB / 0.6938 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/2.022, allocations: 328.2 kB / 0.6941 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/2.023, allocations: 0.7831 MB / 0.6949 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001656/2.023, allocations: 147 kB / 0.695 GB, free: 226.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.925e-05/2.023, allocations: 339.6 kB / 0.6954 GB, free: 226.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006936/2.024, allocations: 0.5069 MB / 0.6959 GB, free: 226.6 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000755/2.024, allocations: 0.7318 MB / 0.6966 GB, free: 226.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/2.026, allocations: 1.425 MB / 0.698 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/2.026, allocations: 1.188 kB / 0.698 GB, free: 226.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=268) (initialization): time 0.002632/2.029, allocations: 2.033 MB / 0.7 GB, free: 226 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/2.029, allocations: 9.781 kB / 0.7 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/2.029, allocations: 6.859 kB / 0.7 GB, free: 226 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004028/2.033, allocations: 2.543 MB / 0.7025 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/2.033, allocations: 25.44 kB / 0.7025 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002771/2.036, allocations: 3.728 MB / 0.7061 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/2.036, allocations: 165.7 kB / 0.7063 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.925e-05/2.036, allocations: 31.2 kB / 0.7063 GB, free: 223.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 20 (Source_condenseur1.C.b,singularPressureLoss1.C2.b,singularPressureLoss1.C1.a,nTUWaterHeating.Ev.a,nTUWaterHeating.Sp.b,nTUWaterHeating.Ep.a,nTUWaterHeating.Se.b,nTUWaterHeating.Ee.a,singularPressureLoss5.C2.b,singularPressureLoss5.C1.a,singularPressureLoss4.C2.b,singularPressureLoss4.C1.a,Puit_condenseur1.C.a,singularPressureLoss3.C2.b,singularPressureLoss3.C1.a,singularPressureLoss2.C2.b,singularPressureLoss2.C1.a,sourceP.C.b,Puit_condenseur.C.a,Source_condenseur.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,3), (1,3), (1,3), (11,22)} Notification: Performance of prepare postOptimizeDAE: time 0.000299/2.037, allocations: 250.8 kB / 0.7066 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.361e-05/2.037, allocations: 101.3 kB / 0.7066 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003163/2.04, allocations: 3.145 MB / 0.7097 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002522/2.043, allocations: 2.412 MB / 0.7121 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/2.043, allocations: 3.75 kB / 0.7121 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/2.043, allocations: 7.125 kB / 0.7121 GB, free: 222.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005933/2.049, allocations: 5.812 MB / 0.7178 GB, free: 221 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/2.049, allocations: 4.031 kB / 0.7178 GB, free: 221 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004068/2.049, allocations: 174.9 kB / 0.7179 GB, free: 221 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003783/2.053, allocations: 2.684 MB / 0.7206 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.989e-05/2.053, allocations: 31.34 kB / 0.7206 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00276/2.056, allocations: 3.87 MB / 0.7244 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/2.056, allocations: 2.062 kB / 0.7244 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/2.058, allocations: 2.684 MB / 0.727 GB, free: 216.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003738/2.059, allocations: 357.5 kB / 0.7273 GB, free: 216.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.386e-05/2.059, allocations: 29.94 kB / 0.7274 GB, free: 216.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004706/2.059, allocations: 72 kB / 0.7274 GB, free: 216.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/2.06, allocations: 90.7 kB / 0.7275 GB, free: 216 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.241e-05/2.06, allocations: 46.16 kB / 0.7276 GB, free: 216 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003222/2.06, allocations: 384 kB / 0.7279 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/2.06, allocations: 3.562 kB / 0.7279 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002643/2.063, allocations: 1.376 MB / 0.7293 GB, free: 215.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,3), (1,3), (1,3), (11,26)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003706/2.066, allocations: 1.684 MB / 0.7309 GB, free: 215.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002884/2.069, allocations: 2.205 MB / 0.7331 GB, free: 214.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/2.069, allocations: 1.219 kB / 0.7331 GB, free: 214.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001791/2.071, allocations: 1.275 MB / 0.7343 GB, free: 213.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003202/2.074, allocations: 0.6819 MB / 0.735 GB, free: 213.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/2.077, allocations: 3.567 MB / 0.7385 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/2.078, allocations: 1.265 MB / 0.7397 GB, free: 208.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004056/2.078, allocations: 123 kB / 0.7398 GB, free: 208.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/2.078, allocations: 76.27 kB / 0.7399 GB, free: 208.7 MB / 0.5762 GB Notification: Performance of SimCode: time 3.4e-07/2.078, allocations: 4 kB / 0.7399 GB, free: 208.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.06185/2.14, allocations: 62.7 MB / 0.8011 GB, free: 148.7 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating1.pipe 2>&1) Environment - environmentSimulation: