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.9074/0.9074, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003258, allocations: 16 kB / 237.1 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05893/0.05927, allocations: 31.34 MB / 268.4 MB, free: 7.043 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.646/1.705, allocations: 294.5 MB / 0.5497 GB, free: 13.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0159/1.721, allocations: 12.04 MB / 0.5615 GB, free: 1.371 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/1.721, allocations: 0 / 0.5615 GB, free: 1.371 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.0001581/1.722, allocations: 27.67 kB / 0.5615 GB, free: 1.344 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002132/1.722, allocations: 67.36 kB / 0.5616 GB, free: 1.277 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008837/1.731, allocations: 3.472 MB / 0.565 GB, free: 13.81 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004715/1.731, allocations: 267.3 kB / 0.5652 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003/1.731, allocations: 155.6 kB / 0.5654 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/1.732, allocations: 103.6 kB / 0.5655 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/1.732, allocations: 115.5 kB / 0.5656 GB, free: 13.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.292e-05/1.732, allocations: 24 kB / 0.5656 GB, free: 13.15 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01315/1.745, allocations: 7.658 MB / 0.5731 GB, free: 5.484 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00011/1.745, allocations: 59.72 kB / 0.5731 GB, free: 5.426 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/1.745, allocations: 131.3 kB / 0.5732 GB, free: 5.297 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006043/1.751, allocations: 3.399 MB / 0.5766 GB, free: 1.891 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/1.751, allocations: 0 / 0.5766 GB, free: 1.891 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.022e-06/1.751, allocations: 0 / 0.5766 GB, free: 1.891 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/1.751, allocations: 0 / 0.5766 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.002171/1.754, allocations: 0.81 MB / 0.5774 GB, free: 1.027 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/1.754, allocations: 11.89 kB / 0.5774 GB, free: 1.016 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.061e-05/1.754, allocations: 32.56 kB / 0.5774 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/1.754, allocations: 243.8 kB / 0.5776 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/1.754, allocations: 16.94 kB / 0.5776 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/1.754, allocations: 24.38 kB / 0.5777 GB, free: 0.6641 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005322/1.755, allocations: 288 kB / 0.5779 GB, free: 364 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/1.755, allocations: 0 / 0.5779 GB, free: 364 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/1.755, allocations: 12 kB / 0.578 GB, free: 352 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/1.755, allocations: 8 kB / 0.578 GB, free: 344 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004634/1.755, allocations: 185.5 kB / 0.5781 GB, free: 160 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.006583/1.762, allocations: 3.031 MB / 0.5811 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000559/1.762, allocations: 182.8 kB / 0.5813 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001956/1.762, allocations: 76.81 kB / 0.5813 GB, free: 12.64 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004904/1.767, allocations: 1.714 MB / 0.583 GB, free: 10.81 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003086/1.768, allocations: 152.9 kB / 0.5832 GB, free: 10.64 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 2.345e-06/1.768, allocations: 0 / 0.5832 GB, free: 10.64 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007039/1.768, allocations: 264.6 kB / 0.5834 GB, free: 10.37 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/1.769, allocations: 110.8 kB / 0.5835 GB, free: 10.24 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/1.769, allocations: 262.5 kB / 0.5838 GB, free: 9.973 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/1.769, allocations: 29.7 kB / 0.5838 GB, free: 9.938 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/1.769, allocations: 164 kB / 0.584 GB, free: 9.773 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.695e-05/1.769, allocations: 47.34 kB / 0.584 GB, free: 9.727 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.469e-05/1.769, allocations: 61.59 kB / 0.5841 GB, free: 9.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/1.769, allocations: 334.8 kB / 0.5844 GB, free: 9.324 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/1.769, allocations: 68.14 kB / 0.5844 GB, free: 9.254 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/1.77, allocations: 119.3 kB / 0.5846 GB, free: 9.113 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002746/1.772, allocations: 0.6257 MB / 0.5852 GB, free: 8.441 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/1.772, allocations: 4 kB / 0.5852 GB, free: 8.438 MB / 478.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005813/1.773, allocations: 278.4 kB / 0.5854 GB, free: 8.156 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/1.773, allocations: 33.7 kB / 0.5855 GB, free: 8.117 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/1.773, allocations: 7.938 kB / 0.5855 GB, free: 8.109 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/1.773, allocations: 0 / 0.5855 GB, free: 8.109 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/1.775, allocations: 219.8 kB / 0.5857 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003674/1.775, allocations: 0.5859 MB / 0.5863 GB, free: 7.285 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/1.775, allocations: 39.7 kB / 0.5863 GB, free: 7.246 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/1.775, allocations: 8 kB / 0.5863 GB, free: 7.238 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.0002417/1.776, allocations: 190.1 kB / 0.5865 GB, free: 7.039 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.3e-05/1.776, allocations: 27.72 kB / 0.5865 GB, free: 7.012 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005583/1.776, allocations: 234.7 kB / 0.5867 GB, free: 6.77 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/1.776, allocations: 0 / 0.5867 GB, free: 6.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.776, allocations: 3.938 kB / 0.5867 GB, free: 6.766 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/1.776, allocations: 7.984 kB / 0.5868 GB, free: 6.758 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000339/1.777, allocations: 289.4 kB / 0.587 GB, free: 6.426 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/1.777, allocations: 0 / 0.587 GB, free: 6.426 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/1.778, allocations: 203.7 kB / 0.5872 GB, free: 6.227 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.972e-06/1.778, allocations: 4 kB / 0.5872 GB, free: 6.223 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/1.778, allocations: 0 / 0.5872 GB, free: 6.223 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003271/1.779, allocations: 0.586 MB / 0.5878 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.779, allocations: 0 / 0.5878 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005007/1.779, allocations: 267 kB / 0.5881 GB, free: 5.328 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/1.779, allocations: 112.7 kB / 0.5882 GB, free: 5.199 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/1.779, allocations: 4 kB / 0.5882 GB, free: 5.195 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/1.779, allocations: 11.98 kB / 0.5882 GB, free: 5.184 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/1.779, allocations: 19.97 kB / 0.5882 GB, free: 5.164 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/1.779, allocations: 4 kB / 0.5882 GB, free: 5.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000196/1.78, allocations: 190 kB / 0.5884 GB, free: 4.977 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.78, allocations: 7.938 kB / 0.5884 GB, free: 4.969 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001265/1.781, allocations: 391.9 kB / 0.5888 GB, free: 4.586 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.001851/1.783, allocations: 0.5085 MB / 0.5893 GB, free: 4.074 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01162/1.794, allocations: 0.8903 MB / 0.5901 GB, free: 3.172 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.794, allocations: 0 / 0.5901 GB, free: 3.172 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01018/1.805, allocations: 0.6588 MB / 0.5908 GB, free: 2.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/1.805, allocations: 48.36 kB / 0.5908 GB, free: 2.453 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/1.806, allocations: 458.1 kB / 0.5913 GB, free: 1.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/1.806, allocations: 0.7517 MB / 0.592 GB, free: 1.203 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/1.807, allocations: 17.95 kB / 0.592 GB, free: 1.188 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.839e-05/1.807, allocations: 23.44 kB / 0.592 GB, free: 1.164 MB / 478.1 MB Notification: Performance of SimCode: time 8.82e-07/1.807, allocations: 0 / 0.592 GB, free: 1.164 MB / 478.1 MB Notification: Performance of Templates: time 0.01987/1.826, allocations: 13.03 MB / 0.6048 GB, free: 4.148 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)