Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.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.TestStaticCentrifugalPumpWaterSolution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution") translateModel(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7451/0.7451, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003055, allocations: 17.5 kB / 237.8 MB, free: 1.762 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04514/0.04545, allocations: 31.35 MB / 269.1 MB, free: 7.035 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution): time 1.456/1.501, allocations: 294.4 MB / 0.5503 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/1.514, allocations: 12.04 MB / 0.5621 GB, free: 1.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/1.514, allocations: 0 / 0.5621 GB, free: 1.34 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/PressureLosses/SingularPressureLoss.mo:15:3-17:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/PressureLosses/SingularPressureLoss.mo:18:3-19:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/Machines/StaticCentrifugalPump.mo:46:3-48:16:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/Machines/StaticCentrifugalPump.mo:49:3-50:83:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/BoundaryConditions/SourcePQ.mo:9:3-10:83:writable] Warning: Connector Cs is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/BoundaryConditions/Sink.mo:10:3-12:16:writable] Warning: Connector Ce is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001129/1.514, allocations: 38.33 kB / 0.5621 GB, free: 1.305 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001383/1.514, allocations: 67.3 kB / 0.5622 GB, free: 1.238 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006922/1.521, allocations: 3.427 MB / 0.5655 GB, free: 13.82 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003258/1.522, allocations: 267.3 kB / 0.5658 GB, free: 13.56 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/1.522, allocations: 151.6 kB / 0.5659 GB, free: 13.4 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/1.522, allocations: 103.6 kB / 0.566 GB, free: 13.3 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/1.522, allocations: 123.5 kB / 0.5661 GB, free: 13.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/1.522, allocations: 24 kB / 0.5661 GB, free: 13.16 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01051/1.533, allocations: 7.662 MB / 0.5736 GB, free: 5.484 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 8.339e-05/1.533, allocations: 51.78 kB / 0.5737 GB, free: 5.434 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/1.533, allocations: 127.3 kB / 0.5738 GB, free: 5.309 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004611/1.538, allocations: 3.399 MB / 0.5771 GB, free: 1.891 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/1.538, allocations: 0 / 0.5771 GB, free: 1.891 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.272e-06/1.538, allocations: 0 / 0.5771 GB, free: 1.891 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/1.538, allocations: 0 / 0.5771 GB, free: 1.891 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001479/1.539, allocations: 0.8072 MB / 0.5779 GB, free: 1.031 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.758e-05/1.539, allocations: 15.89 kB / 0.5779 GB, free: 1.016 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.159e-05/1.539, allocations: 32.5 kB / 0.5779 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/1.539, allocations: 235.9 kB / 0.5782 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/1.539, allocations: 16.94 kB / 0.5782 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.745e-05/1.539, allocations: 24.38 kB / 0.5782 GB, free: 0.6719 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/1.54, allocations: 300 kB / 0.5785 GB, free: 360 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/1.54, allocations: 0 / 0.5785 GB, free: 360 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/1.54, allocations: 8 kB / 0.5785 GB, free: 352 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/1.54, allocations: 4 kB / 0.5785 GB, free: 348 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003799/1.54, allocations: 197.5 kB / 0.5787 GB, free: 152 kB / 462.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.005297/1.546, allocations: 3.023 MB / 0.5816 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000466/1.546, allocations: 178.8 kB / 0.5818 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/1.546, allocations: 72.77 kB / 0.5819 GB, free: 12.64 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004074/1.55, allocations: 1.714 MB / 0.5836 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/1.551, allocations: 142.9 kB / 0.5837 GB, free: 10.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 1.883e-06/1.551, allocations: 0 / 0.5837 GB, free: 10.66 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006104/1.551, allocations: 270.9 kB / 0.584 GB, free: 10.38 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/1.551, allocations: 118.7 kB / 0.5841 GB, free: 10.24 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/1.552, allocations: 266.5 kB / 0.5843 GB, free: 9.973 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/1.552, allocations: 29.7 kB / 0.5844 GB, free: 9.938 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.527e-05/1.552, allocations: 160.1 kB / 0.5845 GB, free: 9.777 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/1.552, allocations: 55.28 kB / 0.5846 GB, free: 9.723 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/1.552, allocations: 53.61 kB / 0.5846 GB, free: 9.664 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/1.552, allocations: 342.8 kB / 0.5849 GB, free: 9.32 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/1.552, allocations: 60.19 kB / 0.585 GB, free: 9.258 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/1.552, allocations: 119.3 kB / 0.5851 GB, free: 9.117 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002457/1.555, allocations: 0.6284 MB / 0.5857 GB, free: 8.441 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.555, allocations: 0 / 0.5857 GB, free: 8.441 MB / 478.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004949/1.555, allocations: 286.8 kB / 0.586 GB, free: 8.148 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/1.555, allocations: 33.7 kB / 0.586 GB, free: 8.109 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/1.555, allocations: 3.984 kB / 0.586 GB, free: 8.105 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/1.555, allocations: 4 kB / 0.586 GB, free: 8.102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/1.557, allocations: 207.9 kB / 0.5862 GB, free: 7.898 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002903/1.557, allocations: 0.5899 MB / 0.5868 GB, free: 7.285 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/1.557, allocations: 35.67 kB / 0.5868 GB, free: 7.25 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/1.557, allocations: 16.08 kB / 0.5869 GB, free: 7.234 MB / 478.1 MB Warning: Assuming fixed start value for the following 2 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Pulse1.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.pulse.T0,$PRE.Pulse1.T0,pulse.T0,Pulse1.yL.signal,Pulse1.T0,$whenCondition2,sinkSolution.Ce.a,sourceSolution.Cs.b,staticCentrifugalPumpWaterLiBr.C2.b,staticCentrifugalPumpWaterLiBr.C1.a,singularPressureLossWaterLiBr.C2.b,singularPressureLossWaterLiBr.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001746/1.557, allocations: 180 kB / 0.587 GB, free: 7.047 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.152e-05/1.558, allocations: 19.72 kB / 0.587 GB, free: 7.027 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000483/1.558, allocations: 249.3 kB / 0.5873 GB, free: 6.77 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/1.558, allocations: 4 kB / 0.5873 GB, free: 6.766 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/1.558, allocations: 3.938 kB / 0.5873 GB, free: 6.762 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/1.558, allocations: 0 / 0.5873 GB, free: 6.762 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/1.558, allocations: 289.4 kB / 0.5876 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/1.558, allocations: 0 / 0.5876 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/1.56, allocations: 199.8 kB / 0.5878 GB, free: 6.234 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/1.56, allocations: 0 / 0.5878 GB, free: 6.234 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.757e-05/1.56, allocations: 8 kB / 0.5878 GB, free: 6.227 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002537/1.56, allocations: 0.5898 MB / 0.5883 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/1.56, allocations: 0 / 0.5883 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/1.56, allocations: 259.3 kB / 0.5886 GB, free: 5.336 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.601e-05/1.56, allocations: 120.7 kB / 0.5887 GB, free: 5.199 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.586e-05/1.561, allocations: 4 kB / 0.5887 GB, free: 5.195 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/1.561, allocations: 15.98 kB / 0.5887 GB, free: 5.18 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-05/1.561, allocations: 15.98 kB / 0.5887 GB, free: 5.164 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/1.561, allocations: 11.98 kB / 0.5888 GB, free: 5.152 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001429/1.561, allocations: 182 kB / 0.5889 GB, free: 4.977 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.561, allocations: 7.875 kB / 0.5889 GB, free: 4.969 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000922/1.562, allocations: 395.8 kB / 0.5893 GB, free: 4.582 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,Pulse1.T0,Pulse1.yL.signal,pulse.T0) * Number of discrete states: 3 (Pulse1.yL.signal,Pulse1.T0,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001328/1.563, allocations: 0.5067 MB / 0.5898 GB, free: 4.07 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009669/1.573, allocations: 0.8739 MB / 0.5907 GB, free: 3.184 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.573, allocations: 0 / 0.5907 GB, free: 3.184 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008292/1.581, allocations: 0.656 MB / 0.5913 GB, free: 2.516 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/1.581, allocations: 50.89 kB / 0.5913 GB, free: 2.473 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009338/1.582, allocations: 482.5 kB / 0.5918 GB, free: 1.969 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/1.583, allocations: 0.7517 MB / 0.5925 GB, free: 1.191 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.842e-05/1.583, allocations: 19.44 kB / 0.5926 GB, free: 1.172 MB / 478.1 MB Notification: Performance of SimCode: time 5.11e-07/1.583, allocations: 0 / 0.5926 GB, free: 1.172 MB / 478.1 MB Notification: Performance of Templates: time 0.01223/1.595, allocations: 10.29 MB / 0.6026 GB, free: 6.879 MB / 494.1 MB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe 2>&1)