Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.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.TestNTUWaterHeating0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0") translateModel(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7395/0.7395, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.431e-05/1.432e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1275, allocations: 31.98 MB / 236.8 MB, free: 5.18 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.TestNTUWaterHeating0): time 1.419/1.547, allocations: 297 MB / 0.5213 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04057/1.587, allocations: 39.79 MB / 0.5601 GB, free: 2.488 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005772/1.588, allocations: 8 kB / 0.5601 GB, free: 2.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005986/1.588, allocations: 218.6 kB / 0.5603 GB, free: 2.266 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001081/1.59, allocations: 397.1 kB / 0.5607 GB, free: 1.875 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01893/1.608, allocations: 7.815 MB / 0.5683 GB, free: 10.06 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001546/1.61, allocations: 1.494 MB / 0.5698 GB, free: 8.559 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004419/1.61, allocations: 415.2 kB / 0.5702 GB, free: 8.156 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005256/1.611, allocations: 0.5014 MB / 0.5707 GB, free: 7.652 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003971/1.611, allocations: 453.6 kB / 0.5711 GB, free: 7.207 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/1.611, allocations: 36 kB / 0.5711 GB, free: 7.172 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02345/1.635, allocations: 15.93 MB / 0.5867 GB, free: 7.223 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/1.635, allocations: 147.2 kB / 0.5868 GB, free: 7.078 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005919/1.636, allocations: 0.5495 MB / 0.5874 GB, free: 6.52 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/1.65, allocations: 8.739 MB / 0.5959 GB, free: 13.76 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/1.65, allocations: 0 / 0.5959 GB, free: 13.76 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.673e-06/1.65, allocations: 0 / 0.5959 GB, free: 13.76 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.618e-05/1.65, allocations: 0 / 0.5959 GB, free: 13.76 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: 367 * Number of variables: 367 Notification: Performance of Generate backend data structure: time 0.00428/1.654, allocations: 2 MB / 0.5979 GB, free: 11.7 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/1.654, allocations: 12.03 kB / 0.5979 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/1.654, allocations: 118.4 kB / 0.598 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004536/1.655, allocations: 436.9 kB / 0.5984 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/1.655, allocations: 176.8 kB / 0.5986 GB, free: 10.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.501e-05/1.655, allocations: 72 kB / 0.5986 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/1.657, allocations: 1.273 MB / 0.5999 GB, free: 9.488 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/1.657, allocations: 3.938 kB / 0.5999 GB, free: 9.484 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/1.657, allocations: 32 kB / 0.5999 GB, free: 9.453 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-05/1.657, allocations: 67.94 kB / 0.6 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/1.658, allocations: 0.9238 MB / 0.6009 GB, free: 8.461 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.004542/1.663, allocations: 5.795 MB / 0.6065 GB, free: 2.176 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/1.664, allocations: 0.8069 MB / 0.6073 GB, free: 1.355 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007382/1.665, allocations: 0.6573 MB / 0.608 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3598/2.024, allocations: 111.7 MB / 0.717 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/2.024, allocations: 42.62 kB / 0.7171 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=233): time 2.324e-06/2.024, allocations: 0 / 0.7171 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=233): time 0.007142/2.032, allocations: 3.587 MB / 0.7206 GB, free: 210.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.978e-05/2.032, allocations: 57.72 kB / 0.7206 GB, free: 210 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/2.032, allocations: 427.8 kB / 0.721 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/2.032, allocations: 33.73 kB / 0.721 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/2.032, allocations: 297.3 kB / 0.7213 GB, free: 209.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002733/2.032, allocations: 0.7387 MB / 0.7221 GB, free: 209.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/2.033, allocations: 135.3 kB / 0.7222 GB, free: 209.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.558e-05/2.033, allocations: 333.7 kB / 0.7225 GB, free: 208.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005769/2.033, allocations: 0.489 MB / 0.723 GB, free: 208.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006559/2.034, allocations: 0.7049 MB / 0.7237 GB, free: 208.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/2.035, allocations: 1.377 MB / 0.725 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/2.035, allocations: 0 / 0.725 GB, free: 208.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=255) (initialization): time 0.00221/2.037, allocations: 1.943 MB / 0.7269 GB, free: 208.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/2.037, allocations: 9.438 kB / 0.7269 GB, free: 208.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/2.037, allocations: 12.05 kB / 0.7269 GB, free: 208.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003686/2.041, allocations: 2.431 MB / 0.7293 GB, free: 208.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/2.041, allocations: 33.16 kB / 0.7293 GB, free: 208.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002439/2.044, allocations: 3.09 MB / 0.7324 GB, free: 206.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000446/2.044, allocations: 146.7 kB / 0.7325 GB, free: 206.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/2.044, allocations: 33.2 kB / 0.7325 GB, free: 206.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 18 (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,nTUWaterHeating.Ep.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): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (11,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002573/2.044, allocations: 231.5 kB / 0.7327 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.261e-05/2.045, allocations: 94 kB / 0.7328 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/2.047, allocations: 2.887 MB / 0.7357 GB, free: 205.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002369/2.05, allocations: 2.263 MB / 0.7379 GB, free: 205.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/2.05, allocations: 0 / 0.7379 GB, free: 205.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/2.05, allocations: 9.094 kB / 0.7379 GB, free: 205.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005047/2.055, allocations: 5.307 MB / 0.7431 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/2.055, allocations: 2.656 kB / 0.7431 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003751/2.055, allocations: 154.4 kB / 0.7432 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003333/2.059, allocations: 2.511 MB / 0.7457 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/2.059, allocations: 31.8 kB / 0.7457 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002387/2.061, allocations: 3.206 MB / 0.7488 GB, free: 198 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/2.061, allocations: 4 kB / 0.7488 GB, free: 198 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/2.063, allocations: 2.462 MB / 0.7512 GB, free: 195.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/2.064, allocations: 331 kB / 0.7515 GB, free: 195.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.691e-05/2.064, allocations: 28 kB / 0.7516 GB, free: 195.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/2.064, allocations: 63.62 kB / 0.7516 GB, free: 195.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/2.064, allocations: 83.36 kB / 0.7517 GB, free: 195.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/2.064, allocations: 43.98 kB / 0.7518 GB, free: 195.1 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002631/2.065, allocations: 334.8 kB / 0.7521 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.91e-07/2.065, allocations: 0 / 0.7521 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002513/2.067, allocations: 1.344 MB / 0.7534 GB, free: 193.6 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 (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (1,3), (11,25)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003436/2.071, allocations: 1.69 MB / 0.755 GB, free: 192.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002472/2.073, allocations: 2.024 MB / 0.757 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/2.073, allocations: 6.531 kB / 0.757 GB, free: 190.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001525/2.075, allocations: 1.176 MB / 0.7582 GB, free: 188.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002906/2.078, allocations: 0.6241 MB / 0.7588 GB, free: 188.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/2.08, allocations: 3.249 MB / 0.7619 GB, free: 185.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/2.081, allocations: 1.197 MB / 0.7631 GB, free: 183.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003451/2.081, allocations: 101.2 kB / 0.7632 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.731e-05/2.081, allocations: 63.44 kB / 0.7633 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of SimCode: time 2.91e-07/2.081, allocations: 0 / 0.7633 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of Templates: time 0.05769/2.139, allocations: 60.16 MB / 0.822 GB, free: 124.6 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.pipe 2>&1) Environment - environmentSimulation: