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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating0",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.7995/0.7995, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.671e-05/1.664e-05, allocations: 4 kB / 204.9 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1443, allocations: 31.99 MB / 236.8 MB, free: 5.418 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.552/1.696, allocations: 298 MB / 0.5223 GB, free: 9.945 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04266/1.739, allocations: 39.79 MB / 0.5611 GB, free: 2.293 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005357/1.739, allocations: 4 kB / 0.5611 GB, free: 2.289 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004758/1.74, allocations: 214.7 kB / 0.5613 GB, free: 2.078 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007586/1.741, allocations: 397.1 kB / 0.5617 GB, free: 1.688 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01825/1.759, allocations: 7.824 MB / 0.5694 GB, free: 9.859 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001484/1.76, allocations: 1.502 MB / 0.5708 GB, free: 8.352 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000437/1.761, allocations: 395.5 kB / 0.5712 GB, free: 7.961 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000523/1.761, allocations: 0.5053 MB / 0.5717 GB, free: 7.453 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003934/1.762, allocations: 453.5 kB / 0.5721 GB, free: 7.008 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/1.762, allocations: 36 kB / 0.5722 GB, free: 6.973 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02352/1.785, allocations: 15.92 MB / 0.5877 GB, free: 7.027 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/1.786, allocations: 155.2 kB / 0.5879 GB, free: 6.875 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006312/1.786, allocations: 0.5417 MB / 0.5884 GB, free: 6.324 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0147/1.801, allocations: 8.739 MB / 0.5969 GB, free: 13.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/1.801, allocations: 0 / 0.5969 GB, free: 13.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/1.801, allocations: 0 / 0.5969 GB, free: 13.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.221e-05/1.801, allocations: 0 / 0.5969 GB, free: 13.56 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.004558/1.805, allocations: 2.002 MB / 0.5989 GB, free: 11.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/1.806, allocations: 8.031 kB / 0.5989 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/1.806, allocations: 191.2 kB / 0.5991 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/1.806, allocations: 118.4 kB / 0.5992 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/1.806, allocations: 444.9 kB / 0.5996 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001814/1.807, allocations: 172.8 kB / 0.5998 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.477e-05/1.807, allocations: 68 kB / 0.5998 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/1.808, allocations: 1.277 MB / 0.6011 GB, free: 9.09 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.653e-05/1.808, allocations: 3.938 kB / 0.6011 GB, free: 9.086 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.848e-05/1.808, allocations: 32 kB / 0.6011 GB, free: 9.055 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.603e-05/1.808, allocations: 67.94 kB / 0.6012 GB, free: 8.988 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/1.81, allocations: 0.9237 MB / 0.6021 GB, free: 8.062 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.00445/1.814, allocations: 5.795 MB / 0.6077 GB, free: 1.777 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/1.815, allocations: 0.8147 MB / 0.6085 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007623/1.816, allocations: 0.6651 MB / 0.6092 GB, free: 288 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3779/2.194, allocations: 111.7 MB / 0.7182 GB, free: 210 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/2.194, allocations: 38.69 kB / 0.7183 GB, free: 210 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=233): time 2.796e-06/2.194, allocations: 2.312 kB / 0.7183 GB, free: 210 MB / 0.5762 GB Notification: Performance of matching and sorting (n=233): time 0.007699/2.202, allocations: 3.581 MB / 0.7218 GB, free: 209.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.156e-05/2.202, allocations: 57.16 kB / 0.7218 GB, free: 209.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/2.202, allocations: 425.2 kB / 0.7222 GB, free: 209.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/2.202, allocations: 37.05 kB / 0.7223 GB, free: 209.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/2.202, allocations: 292.7 kB / 0.7225 GB, free: 209.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003291/2.203, allocations: 0.7378 MB / 0.7233 GB, free: 208.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/2.203, allocations: 140.2 kB / 0.7234 GB, free: 208.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.116e-05/2.203, allocations: 329.3 kB / 0.7237 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006301/2.204, allocations: 498.5 kB / 0.7242 GB, free: 208.3 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007017/2.204, allocations: 0.7103 MB / 0.7249 GB, free: 208.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001419/2.206, allocations: 1.371 MB / 0.7262 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/2.206, allocations: 3.156 kB / 0.7262 GB, free: 207.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=255) (initialization): time 0.002416/2.208, allocations: 1.944 MB / 0.7281 GB, free: 207.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/2.208, allocations: 7.719 kB / 0.7281 GB, free: 207.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/2.208, allocations: 7.719 kB / 0.7281 GB, free: 207.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003879/2.212, allocations: 2.428 MB / 0.7305 GB, free: 207.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/2.212, allocations: 34.11 kB / 0.7305 GB, free: 207.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002505/2.215, allocations: 3.091 MB / 0.7336 GB, free: 205.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004627/2.215, allocations: 147.4 kB / 0.7337 GB, free: 205.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/2.215, allocations: 36.66 kB / 0.7337 GB, free: 205.8 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.0002618/2.216, allocations: 235.5 kB / 0.734 GB, free: 205.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.499e-05/2.216, allocations: 88.25 kB / 0.734 GB, free: 205.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002851/2.218, allocations: 2.885 MB / 0.7369 GB, free: 205.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002333/2.221, allocations: 2.26 MB / 0.7391 GB, free: 205.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/2.221, allocations: 0 / 0.7391 GB, free: 205.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/2.221, allocations: 7.172 kB / 0.7391 GB, free: 205.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004986/2.226, allocations: 5.307 MB / 0.7443 GB, free: 202.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.105e-05/2.226, allocations: 4.188 kB / 0.7443 GB, free: 202.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/2.226, allocations: 163.5 kB / 0.7444 GB, free: 202.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003402/2.23, allocations: 2.504 MB / 0.7469 GB, free: 200.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.063e-05/2.23, allocations: 32.08 kB / 0.7469 GB, free: 200.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/2.232, allocations: 3.203 MB / 0.75 GB, free: 197.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/2.232, allocations: 7.969 kB / 0.75 GB, free: 197.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/2.234, allocations: 2.456 MB / 0.7524 GB, free: 195.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002717/2.235, allocations: 336.9 kB / 0.7527 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.285e-05/2.235, allocations: 24 kB / 0.7528 GB, free: 194.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004405/2.235, allocations: 75.14 kB / 0.7528 GB, free: 194.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/2.235, allocations: 85.81 kB / 0.7529 GB, free: 194.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/2.235, allocations: 40 kB / 0.753 GB, free: 194.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002514/2.236, allocations: 330.8 kB / 0.7533 GB, free: 194.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.236, allocations: 0 / 0.7533 GB, free: 194.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002828/2.238, allocations: 1.344 MB / 0.7546 GB, free: 193 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.00649/2.245, allocations: 4.592 MB / 0.7591 GB, free: 188.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002663/2.248, allocations: 2.031 MB / 0.7611 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/2.248, allocations: 0 / 0.7611 GB, free: 186.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001585/2.249, allocations: 1.179 MB / 0.7622 GB, free: 185.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003035/2.252, allocations: 0.6151 MB / 0.7628 GB, free: 184.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/2.263, allocations: 11.06 MB / 0.7736 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/2.263, allocations: 1.209 MB / 0.7748 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000409/2.264, allocations: 103.1 kB / 0.7749 GB, free: 172.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003462/2.264, allocations: 499.3 kB / 0.7754 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of SimCode: time 5.11e-07/2.264, allocations: 0 / 0.7754 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08235/2.347, allocations: 74.04 MB / 0.8477 GB, free: 99 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/2.347, allocations: 241.5 kB / 0.8479 GB, free: 98.74 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.798/7.145, allocations: 0 / 0.8479 GB, free: 98.74 MB / 0.5762 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating0_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestNTUWaterHeating0.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestNTUWaterHeating0.pipe 2>&1)