Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.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.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8688/0.8688, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.642e-05, allocations: 4 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2112/0.2113, allocations: 31.97 MB / 236.8 MB, free: 5.438 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.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0): time 1.709/1.921, allocations: 298.3 MB / 0.5225 GB, free: 8.926 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5729/2.494, allocations: 191.3 MB / 0.7093 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/2.495, allocations: 22.34 kB / 0.7093 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006508/2.495, allocations: 239.9 kB / 0.7096 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001505/2.497, allocations: 0.5194 MB / 0.7101 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03294/2.53, allocations: 9.861 MB / 0.7197 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002707/2.533, allocations: 2.036 MB / 0.7217 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008244/2.533, allocations: 0.7392 MB / 0.7224 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009192/2.534, allocations: 0.6972 MB / 0.7231 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006534/2.535, allocations: 0.6941 MB / 0.7238 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001085/2.535, allocations: 72.72 kB / 0.7238 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03312/2.568, allocations: 18.22 MB / 0.7416 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004152/2.569, allocations: 257.5 kB / 0.7419 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001372/2.57, allocations: 0.8052 MB / 0.7427 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0291/2.599, allocations: 10.69 MB / 0.7531 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/2.599, allocations: 0 / 0.7531 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.274e-06/2.599, allocations: 0 / 0.7531 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.928e-05/2.599, allocations: 0 / 0.7531 GB, free: 14.37 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 499 * Number of variables: 499 Notification: Performance of Generate backend data structure: time 0.007143/2.606, allocations: 2.636 MB / 0.7557 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/2.606, allocations: 11.22 kB / 0.7557 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/2.607, allocations: 190.5 kB / 0.7559 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008307/2.608, allocations: 0.6714 MB / 0.7565 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/2.608, allocations: 224.5 kB / 0.7567 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/2.608, allocations: 137.2 kB / 0.7569 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/2.61, allocations: 1.829 MB / 0.7587 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/2.61, allocations: 3.125 kB / 0.7587 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/2.61, allocations: 62.66 kB / 0.7587 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.379e-05/2.611, allocations: 70.89 kB / 0.7588 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001842/2.612, allocations: 1.298 MB / 0.7601 GB, free: 11.31 MB / 0.5919 GB 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.1487/2.761, allocations: 70.27 MB / 0.8287 GB, free: 7.453 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/2.762, allocations: 0.8823 MB / 0.8295 GB, free: 6.906 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008108/2.763, allocations: 0.6541 MB / 0.8302 GB, free: 6.551 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.082/3.845, allocations: 412.7 MB / 1.233 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.04e-05/3.845, allocations: 49.28 kB / 1.233 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=200): time 4.258e-06/3.845, allocations: 0.5156 kB / 1.233 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of matching and sorting (n=200): time 0.007516/3.852, allocations: 3.542 MB / 1.237 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/3.853, allocations: 165.9 kB / 1.237 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009266/3.854, allocations: 0.6979 MB / 1.238 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/3.854, allocations: 33.08 kB / 1.238 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/3.854, allocations: 0.6189 MB / 1.238 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004549/3.854, allocations: 0.6414 MB / 1.239 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001695/3.855, allocations: 164.1 kB / 1.239 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001329/3.855, allocations: 348.8 kB / 1.239 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000806/3.856, allocations: 0.5502 MB / 1.24 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/3.857, allocations: 0.9854 MB / 1.241 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00204/3.859, allocations: 1.7 MB / 1.243 GB, free: 436 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/3.859, allocations: 4 kB / 1.243 GB, free: 432 kB / 0.8262 GB Notification: Performance of matching and sorting (n=268) (initialization): time 0.003718/3.862, allocations: 2.382 MB / 1.245 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.901e-05/3.863, allocations: 12 kB / 1.245 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.849e-05/3.863, allocations: 12 kB / 1.245 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005338/3.868, allocations: 2.176 MB / 1.247 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/3.868, allocations: 150.9 kB / 1.247 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003878/3.872, allocations: 3.761 MB / 1.251 GB, free: 9.645 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/3.873, allocations: 203.8 kB / 1.251 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-05/3.873, allocations: 59.36 kB / 1.251 GB, free: 9.41 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 26 (nTUWaterHeating.Sp.ftype,Source_condenseur.C.ftype,nTUWaterHeating.Ep.ftype,sourceP.C.ftype,nTUWaterHeating.fluids[1],Puit_condenseur.fluid,singularPressureLoss2.fluid,singularPressureLoss3.fluid,Puit_condenseur1.fluid,singularPressureLoss4.fluid,singularPressureLoss5.fluid,nTUWaterHeating.fluid_e,sourceP.fluid1,Source_condenseur.fluid1,nTUWaterHeating.Sp.diff_on_1,singularPressureLoss5.C2.diff_on_1,nTUWaterHeating.Ev.diff_on_2,sourceP.C.diff_on_2,nTUWaterHeating.Ep.diff_on_2,nTUWaterHeating.Ee.diff_on_2,Source_condenseur.C.diff_on_2,nTUWaterHeating.Se.diff_on_1,singularPressureLoss4.C2.diff_on_1,nTUWaterHeating.Ep.diff_on_1,singularPressureLoss5.C1.diff_on_2,singularPressureLoss3.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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), (8,21), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006242/3.874, allocations: 314.4 kB / 1.251 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/3.874, allocations: 114.4 kB / 1.251 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003686/3.878, allocations: 2.425 MB / 1.254 GB, free: 7.531 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002766/3.881, allocations: 1.988 MB / 1.256 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/3.881, allocations: 4 kB / 1.256 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/3.881, allocations: 3.984 kB / 1.256 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006558/3.887, allocations: 4.486 MB / 1.26 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/3.887, allocations: 8 kB / 1.26 GB, free: 3.148 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002083/3.888, allocations: 77.2 kB / 1.26 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005233/3.893, allocations: 2.286 MB / 1.262 GB, free: 1.047 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.787e-05/3.893, allocations: 27.19 kB / 1.262 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2133/4.106, allocations: 3.78 MB / 1.266 GB, free: 489.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/4.106, allocations: 1.406 kB / 1.266 GB, free: 489.7 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003974/4.11, allocations: 2.332 MB / 1.268 GB, free: 489.4 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005617/4.111, allocations: 306.2 kB / 1.269 GB, free: 489.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/4.111, allocations: 19.66 kB / 1.269 GB, free: 489.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004581/4.111, allocations: 38.39 kB / 1.269 GB, free: 489.3 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/4.112, allocations: 59.39 kB / 1.269 GB, free: 489.3 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.01e-05/4.112, allocations: 32.33 kB / 1.269 GB, free: 489.3 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006599/4.112, allocations: 452.3 kB / 1.269 GB, free: 489.2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.152e-06/4.112, allocations: 0 / 1.269 GB, free: 489.2 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.005435/4.118, allocations: 1.662 MB / 1.271 GB, free: 489.1 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 2 (Source_condenseur.C.diff_on_2,singularPressureLoss4.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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), (8,25), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006787/4.125, allocations: 2.147 MB / 1.273 GB, free: 489 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003476/4.128, allocations: 1.821 MB / 1.275 GB, free: 488.8 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/4.128, allocations: 2.125 kB / 1.275 GB, free: 488.8 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.00178/4.13, allocations: 0.9883 MB / 1.276 GB, free: 488.8 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/4.133, allocations: 0.5792 MB / 1.276 GB, free: 488.8 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003839/4.137, allocations: 3.396 MB / 1.28 GB, free: 487.1 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007306/4.138, allocations: 1.238 MB / 1.281 GB, free: 486.3 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0007252/4.138, allocations: 153 kB / 1.281 GB, free: 486.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/4.139, allocations: 73.22 kB / 1.281 GB, free: 486.3 MB / 0.8419 GB Notification: Performance of SimCode: time 9.72e-07/4.139, allocations: 0 / 1.281 GB, free: 486.3 MB / 0.8419 GB Notification: Performance of Templates: time 0.07595/4.215, allocations: 63.59 MB / 1.343 GB, free: 442.9 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestNTUWaterHeater0.pipe 2>&1) Environment - environmentSimulation: