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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7623/0.7623, allocations: 150.8 MB / 166.1 MB, free: 15.6 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.578e-05/1.589e-05, allocations: 4 kB / 204.9 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1354, allocations: 31.98 MB / 236.8 MB, free: 5.211 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.732/1.868, allocations: 301.8 MB / 0.526 GB, free: 5.977 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.06132/1.929, allocations: 40.81 MB / 0.5659 GB, free: 13.3 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001655/1.931, allocations: 12 kB / 0.5659 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001013/1.932, allocations: 341.7 kB / 0.5662 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002326/1.934, allocations: 0.7291 MB / 0.5669 GB, free: 12.21 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03281/1.967, allocations: 8.023 MB / 0.5747 GB, free: 4.191 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004929/1.972, allocations: 2.829 MB / 0.5775 GB, free: 1.352 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/1.973, allocations: 0.7363 MB / 0.5782 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/1.974, allocations: 0.9484 MB / 0.5791 GB, free: 15.64 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009671/1.975, allocations: 0.8159 MB / 0.5799 GB, free: 14.82 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001214/1.975, allocations: 68 kB / 0.58 GB, free: 14.75 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03644/2.012, allocations: 15.96 MB / 0.5956 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005927/2.013, allocations: 274.4 kB / 0.5959 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002197/2.015, allocations: 1.004 MB / 0.5968 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02835/2.043, allocations: 9.75 MB / 0.6064 GB, free: 3.711 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/2.043, allocations: 0 / 0.6064 GB, free: 3.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.204e-06/2.043, allocations: 4 kB / 0.6064 GB, free: 3.707 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001202/2.043, allocations: 4 kB / 0.6064 GB, free: 3.703 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.008343/2.052, allocations: 2.731 MB / 0.609 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/2.052, allocations: 8.031 kB / 0.609 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005228/2.052, allocations: 311.5 kB / 0.6093 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000424/2.053, allocations: 217 kB / 0.6095 GB, free: 388 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/2.054, allocations: 0.6586 MB / 0.6102 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004621/2.054, allocations: 340.2 kB / 0.6105 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002601/2.055, allocations: 124 kB / 0.6106 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004019/2.059, allocations: 2.325 MB / 0.6129 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.753e-05/2.059, allocations: 11.92 kB / 0.6129 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/2.059, allocations: 52 kB / 0.613 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001347/2.059, allocations: 135.8 kB / 0.6131 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/2.062, allocations: 1.74 MB / 0.6148 GB, free: 10.76 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.01095/2.073, allocations: 10.04 MB / 0.6246 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002381/2.075, allocations: 1.526 MB / 0.6261 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001896/2.077, allocations: 1.296 MB / 0.6274 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3317/2.409, allocations: 81.2 MB / 0.7067 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.889e-05/2.409, allocations: 48.53 kB / 0.7067 GB, free: 220.1 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=452): time 3.356e-06/2.409, allocations: 4 kB / 0.7067 GB, free: 220.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=452): time 0.02301/2.432, allocations: 8.667 MB / 0.7152 GB, free: 219.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/2.432, allocations: 62.56 kB / 0.7152 GB, free: 219.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006828/2.433, allocations: 0.6429 MB / 0.7159 GB, free: 218.9 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.082e-05/2.433, allocations: 41.45 kB / 0.7159 GB, free: 218.9 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/2.433, allocations: 463.2 kB / 0.7163 GB, free: 218.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007354/2.434, allocations: 1.417 MB / 0.7177 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/2.434, allocations: 257.4 kB / 0.718 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.775e-05/2.434, allocations: 347.5 kB / 0.7183 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/2.435, allocations: 0.9402 MB / 0.7192 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/2.437, allocations: 1.329 MB / 0.7205 GB, free: 217.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/2.44, allocations: 2.591 MB / 0.723 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/2.44, allocations: 3.625 kB / 0.723 GB, free: 216.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=484) (initialization): time 0.004475/2.444, allocations: 3.662 MB / 0.7266 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/2.444, allocations: 8.844 kB / 0.7266 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.463e-05/2.444, allocations: 8.734 kB / 0.7266 GB, free: 216.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008112/2.452, allocations: 5.966 MB / 0.7325 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/2.453, allocations: 57.23 kB / 0.7325 GB, free: 215.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004967/2.458, allocations: 5.559 MB / 0.7379 GB, free: 210.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008574/2.458, allocations: 272 kB / 0.7382 GB, free: 210.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.811e-05/2.459, allocations: 55.84 kB / 0.7383 GB, free: 210.4 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.0005211/2.459, allocations: 331.8 kB / 0.7386 GB, free: 210.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/2.459, allocations: 168.8 kB / 0.7387 GB, free: 209.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005487/2.465, allocations: 5.496 MB / 0.7441 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004791/2.47, allocations: 4.256 MB / 0.7483 GB, free: 200.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/2.47, allocations: 7.766 kB / 0.7483 GB, free: 200.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.077e-05/2.47, allocations: 15.94 kB / 0.7483 GB, free: 200.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/2.481, allocations: 10.44 MB / 0.7585 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.286e-05/2.481, allocations: 11.48 kB / 0.7585 GB, free: 189.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006875/2.481, allocations: 299.6 kB / 0.7588 GB, free: 189.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007449/2.489, allocations: 6.09 MB / 0.7647 GB, free: 183 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/2.489, allocations: 56.5 kB / 0.7648 GB, free: 182.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004687/2.494, allocations: 5.79 MB / 0.7704 GB, free: 177 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/2.494, allocations: 4 kB / 0.7704 GB, free: 176.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005554/2.499, allocations: 4.827 MB / 0.7751 GB, free: 171.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007331/2.5, allocations: 0.5442 MB / 0.7757 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/2.5, allocations: 59.92 kB / 0.7757 GB, free: 171.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009794/2.501, allocations: 115.6 kB / 0.7758 GB, free: 171.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/2.501, allocations: 173.6 kB / 0.776 GB, free: 171 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.22e-05/2.502, allocations: 72 kB / 0.7761 GB, free: 170.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004778/2.502, allocations: 0.5107 MB / 0.7766 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.91e-07/2.502, allocations: 0 / 0.7766 GB, free: 170.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003368/2.505, allocations: 1.605 MB / 0.7781 GB, free: 168.9 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.01024/2.516, allocations: 7.006 MB / 0.785 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.005059/2.521, allocations: 3.965 MB / 0.7889 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/2.521, allocations: 4 kB / 0.7889 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003154/2.524, allocations: 2.327 MB / 0.7911 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006065/2.53, allocations: 1.182 MB / 0.7923 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02303/2.553, allocations: 19.79 MB / 0.8116 GB, free: 134 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009627/2.554, allocations: 1.68 MB / 0.8133 GB, free: 132.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008634/2.555, allocations: 198 kB / 0.8134 GB, free: 132.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007305/2.556, allocations: 0.9523 MB / 0.8144 GB, free: 131.2 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/2.556, allocations: 0 / 0.8144 GB, free: 131.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3018/2.857, allocations: 106.4 MB / 0.9183 GB, free: 211.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001525/2.858, allocations: 237.9 kB / 0.9185 GB, free: 211 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.651/8.509, allocations: 1.719 kB / 0.9185 GB, free: 211 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating2_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating2.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating2.pipe 2>&1)