Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.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.TestNTUWaterHeating2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2") translateModel(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7387/0.7387, allocations: 150.8 MB / 166.1 MB, free: 15.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.348e-05/1.351e-05, allocations: 4 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1349, allocations: 31.98 MB / 236.8 MB, free: 5.426 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.TestNTUWaterHeating2): time 1.421/1.556, allocations: 300.8 MB / 0.525 GB, free: 6.246 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04316/1.6, allocations: 40.8 MB / 0.5648 GB, free: 13.57 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006166/1.6, allocations: 12 kB / 0.5648 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006302/1.601, allocations: 345.7 kB / 0.5652 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/1.602, allocations: 0.729 MB / 0.5659 GB, free: 12.49 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01953/1.622, allocations: 8.021 MB / 0.5737 GB, free: 4.469 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002751/1.624, allocations: 2.837 MB / 0.5765 GB, free: 1.621 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007322/1.625, allocations: 0.7378 MB / 0.5772 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009211/1.626, allocations: 0.9406 MB / 0.5781 GB, free: 15.91 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006771/1.627, allocations: 0.8198 MB / 0.5789 GB, free: 15.09 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001021/1.627, allocations: 68 kB / 0.579 GB, free: 15.02 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02313/1.65, allocations: 15.96 MB / 0.5946 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003436/1.65, allocations: 274.4 kB / 0.5948 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/1.652, allocations: 1.004 MB / 0.5958 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01586/1.668, allocations: 9.75 MB / 0.6053 GB, free: 3.973 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/1.668, allocations: 0 / 0.6053 GB, free: 3.973 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.543e-06/1.668, allocations: 0 / 0.6053 GB, free: 3.973 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.065e-05/1.668, allocations: 0 / 0.6053 GB, free: 3.973 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: 686 * Number of variables: 686 Notification: Performance of Generate backend data structure: time 0.006211/1.674, allocations: 2.735 MB / 0.608 GB, free: 1.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/1.674, allocations: 12.03 kB / 0.608 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003769/1.674, allocations: 224.9 kB / 0.6082 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008972/1.675, allocations: 0.6546 MB / 0.6089 GB, free: 252 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/1.676, allocations: 332.2 kB / 0.6092 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/1.676, allocations: 127.9 kB / 0.6093 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003035/1.679, allocations: 2.329 MB / 0.6116 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/1.679, allocations: 7.938 kB / 0.6116 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.825e-05/1.679, allocations: 52 kB / 0.6116 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001046/1.679, allocations: 135.8 kB / 0.6118 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/1.681, allocations: 1.74 MB / 0.6135 GB, free: 11.34 MB / 0.4981 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.00774/1.689, allocations: 10.03 MB / 0.6233 GB, free: 484 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001858/1.691, allocations: 1.523 MB / 0.6248 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/1.692, allocations: 1.297 MB / 0.626 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3011/1.994, allocations: 81.2 MB / 0.7053 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/1.994, allocations: 48.47 kB / 0.7054 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=452): time 2.916e-06/1.994, allocations: 0 / 0.7054 GB, free: 220.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=452): time 0.02182/2.015, allocations: 8.669 MB / 0.7138 GB, free: 219.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/2.015, allocations: 63.28 kB / 0.7139 GB, free: 219.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006043/2.016, allocations: 0.6416 MB / 0.7145 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.733e-05/2.016, allocations: 40.23 kB / 0.7146 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/2.016, allocations: 465.2 kB / 0.715 GB, free: 219.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005897/2.017, allocations: 1.417 MB / 0.7164 GB, free: 218.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/2.017, allocations: 258 kB / 0.7166 GB, free: 218.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.89e-05/2.017, allocations: 348 kB / 0.717 GB, free: 217.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/2.018, allocations: 0.9399 MB / 0.7179 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/2.02, allocations: 1.32 MB / 0.7192 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002673/2.022, allocations: 2.595 MB / 0.7217 GB, free: 217.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/2.022, allocations: 2.812 kB / 0.7217 GB, free: 217.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=484) (initialization): time 0.004143/2.027, allocations: 3.664 MB / 0.7253 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/2.027, allocations: 11.78 kB / 0.7253 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/2.027, allocations: 7.938 kB / 0.7253 GB, free: 216.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007815/2.034, allocations: 5.966 MB / 0.7311 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/2.035, allocations: 56.73 kB / 0.7312 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004857/2.04, allocations: 5.559 MB / 0.7366 GB, free: 211.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008299/2.04, allocations: 272.1 kB / 0.7369 GB, free: 211.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.019e-05/2.04, allocations: 55.41 kB / 0.7369 GB, free: 211.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 30 (singularPressureLoss7.C2.b,singularPressureLoss7.C1.a,singularPressureLoss6.C2.b,singularPressureLoss6.C1.a,sourceP1.C.b,nTUWaterHeating1.Ev.a,nTUWaterHeating1.Sp.b,nTUWaterHeating1.Ep.a,nTUWaterHeating1.Se.b,nTUWaterHeating1.Ee.a,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 (55): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(1,3), (1,3), (1,3), (1,3), (21,38)} Notification: Performance of prepare postOptimizeDAE: time 0.0004859/2.041, allocations: 343.6 kB / 0.7373 GB, free: 210.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/2.041, allocations: 162.5 kB / 0.7374 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005284/2.046, allocations: 5.487 MB / 0.7428 GB, free: 205.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00418/2.051, allocations: 4.261 MB / 0.7469 GB, free: 200.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/2.051, allocations: 3.938 kB / 0.7469 GB, free: 200.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.886e-05/2.051, allocations: 15.95 kB / 0.747 GB, free: 200.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009589/2.06, allocations: 10.44 MB / 0.7571 GB, free: 190.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.588e-05/2.06, allocations: 8 kB / 0.7572 GB, free: 190.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006486/2.061, allocations: 300.2 kB / 0.7574 GB, free: 189.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00722/2.068, allocations: 6.088 MB / 0.7634 GB, free: 183.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/2.068, allocations: 64.67 kB / 0.7635 GB, free: 183.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004473/2.073, allocations: 5.785 MB / 0.7691 GB, free: 177.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/2.073, allocations: 4 kB / 0.7691 GB, free: 177.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005191/2.078, allocations: 4.823 MB / 0.7738 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006339/2.079, allocations: 0.5512 MB / 0.7744 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/2.079, allocations: 56.56 kB / 0.7744 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007765/2.08, allocations: 111.6 kB / 0.7745 GB, free: 172 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/2.08, allocations: 161.7 kB / 0.7747 GB, free: 171.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.924e-05/2.08, allocations: 79.98 kB / 0.7747 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004424/2.08, allocations: 0.5068 MB / 0.7752 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.91e-07/2.08, allocations: 0 / 0.7752 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002992/2.083, allocations: 1.617 MB / 0.7768 GB, free: 169.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (189): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(1,3), (1,3), (1,3), (1,3), (21,46)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00372/2.087, allocations: 1.722 MB / 0.7785 GB, free: 168.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004727/2.092, allocations: 3.961 MB / 0.7824 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/2.092, allocations: 0 / 0.7824 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002971/2.095, allocations: 2.323 MB / 0.7846 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005662/2.1, allocations: 1.19 MB / 0.7858 GB, free: 160.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/2.106, allocations: 6.045 MB / 0.7917 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007538/2.106, allocations: 1.676 MB / 0.7933 GB, free: 152.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000681/2.107, allocations: 192.1 kB / 0.7935 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/2.107, allocations: 107.4 kB / 0.7936 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of SimCode: time 4.61e-07/2.107, allocations: 0 / 0.7936 GB, free: 152.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.08604/2.193, allocations: 82.54 MB / 0.8742 GB, free: 71.39 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.makefile Environment - environmentSimulation: (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.pipe 2>&1) Environment - environmentSimulation: