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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution",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.8562/0.8562, allocations: 150.9 MB / 166.5 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005579/0.0005579, allocations: 17.06 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06432/0.0649, allocations: 31.34 MB / 268 MB, free: 7.52 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.712/1.777, allocations: 295 MB / 0.5497 GB, free: 13.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01664/1.794, allocations: 12.03 MB / 0.5615 GB, free: 1.188 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/1.794, allocations: 0 / 0.5615 GB, free: 1.188 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.0001505/1.794, allocations: 31.67 kB / 0.5615 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002504/1.794, allocations: 67.36 kB / 0.5616 GB, free: 1.09 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009267/1.804, allocations: 3.423 MB / 0.5649 GB, free: 13.68 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004906/1.804, allocations: 267.3 kB / 0.5652 GB, free: 13.41 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/1.804, allocations: 155.6 kB / 0.5653 GB, free: 13.25 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/1.805, allocations: 103.6 kB / 0.5654 GB, free: 13.15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/1.805, allocations: 123.4 kB / 0.5655 GB, free: 13.03 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.778e-05/1.805, allocations: 24 kB / 0.5656 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01346/1.818, allocations: 7.65 MB / 0.573 GB, free: 5.348 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/1.818, allocations: 55.78 kB / 0.5731 GB, free: 5.293 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/1.819, allocations: 131.3 kB / 0.5732 GB, free: 5.164 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007442/1.826, allocations: 3.403 MB / 0.5765 GB, free: 1.754 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/1.826, allocations: 0 / 0.5765 GB, free: 1.754 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.854e-06/1.826, allocations: 0 / 0.5765 GB, free: 1.754 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/1.826, allocations: 0 / 0.5765 GB, free: 1.754 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.002648/1.829, allocations: 0.8278 MB / 0.5773 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/1.829, allocations: 12.03 kB / 0.5774 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.916e-05/1.829, allocations: 58.73 kB / 0.5774 GB, free: 0.793 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/1.829, allocations: 28.75 kB / 0.5774 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003848/1.83, allocations: 243.9 kB / 0.5777 GB, free: 496 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/1.83, allocations: 20.94 kB / 0.5777 GB, free: 476 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.16e-05/1.83, allocations: 20.38 kB / 0.5777 GB, free: 456 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006642/1.83, allocations: 295.8 kB / 0.578 GB, free: 132 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/1.83, allocations: 0 / 0.578 GB, free: 132 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/1.83, allocations: 15.94 kB / 0.578 GB, free: 116 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/1.83, allocations: 4 kB / 0.578 GB, free: 112 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005459/1.831, allocations: 185.5 kB / 0.5782 GB, free: 15.93 MB / 478.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.007366/1.838, allocations: 3.031 MB / 0.5811 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/1.839, allocations: 190.8 kB / 0.5813 GB, free: 12.48 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/1.839, allocations: 68.83 kB / 0.5814 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004938/1.844, allocations: 1.713 MB / 0.5831 GB, free: 10.58 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003669/1.845, allocations: 142.6 kB / 0.5832 GB, free: 10.43 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 2.424e-06/1.845, allocations: 0 / 0.5832 GB, free: 10.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007458/1.845, allocations: 272.6 kB / 0.5835 GB, free: 10.15 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.519e-05/1.845, allocations: 106.8 kB / 0.5836 GB, free: 10.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/1.846, allocations: 278.4 kB / 0.5838 GB, free: 9.742 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/1.846, allocations: 37.64 kB / 0.5839 GB, free: 9.699 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/1.846, allocations: 160.4 kB / 0.584 GB, free: 9.535 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.906e-05/1.846, allocations: 55.47 kB / 0.5841 GB, free: 9.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.662e-05/1.846, allocations: 53.7 kB / 0.5841 GB, free: 9.422 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/1.846, allocations: 334.8 kB / 0.5844 GB, free: 9.086 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/1.846, allocations: 60.19 kB / 0.5845 GB, free: 9.023 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/1.847, allocations: 123.3 kB / 0.5846 GB, free: 8.879 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/1.849, allocations: 0.6399 MB / 0.5852 GB, free: 8.195 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.849, allocations: 0 / 0.5852 GB, free: 8.195 MB / 478.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006001/1.85, allocations: 278.9 kB / 0.5855 GB, free: 7.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.542e-05/1.85, allocations: 37.92 kB / 0.5855 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/1.85, allocations: 0 / 0.5855 GB, free: 7.867 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/1.85, allocations: 4 kB / 0.5856 GB, free: 7.863 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/1.852, allocations: 207.8 kB / 0.5857 GB, free: 7.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004362/1.852, allocations: 0.5937 MB / 0.5863 GB, free: 7.043 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/1.852, allocations: 35.77 kB / 0.5864 GB, free: 7.008 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/1.852, allocations: 11.98 kB / 0.5864 GB, free: 6.996 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.000249/1.853, allocations: 181.8 kB / 0.5865 GB, free: 6.805 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/1.853, allocations: 23.86 kB / 0.5866 GB, free: 6.781 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005778/1.853, allocations: 241.4 kB / 0.5868 GB, free: 6.531 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/1.853, allocations: 7.938 kB / 0.5868 GB, free: 6.523 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/1.853, allocations: 3.938 kB / 0.5868 GB, free: 6.52 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/1.853, allocations: 0 / 0.5868 GB, free: 6.52 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003452/1.854, allocations: 301.4 kB / 0.5871 GB, free: 6.176 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/1.854, allocations: 0 / 0.5871 GB, free: 6.176 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00146/1.855, allocations: 191.8 kB / 0.5873 GB, free: 5.988 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/1.855, allocations: 4 kB / 0.5873 GB, free: 5.984 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/1.855, allocations: 4 kB / 0.5873 GB, free: 5.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003698/1.856, allocations: 0.5899 MB / 0.5879 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.856, allocations: 0 / 0.5879 GB, free: 5.367 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005457/1.856, allocations: 261.1 kB / 0.5881 GB, free: 5.09 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/1.856, allocations: 116.9 kB / 0.5882 GB, free: 4.957 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.356e-05/1.856, allocations: 8 kB / 0.5882 GB, free: 4.949 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/1.857, allocations: 11.98 kB / 0.5882 GB, free: 4.938 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/1.857, allocations: 15.98 kB / 0.5883 GB, free: 4.922 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/1.857, allocations: 11.92 kB / 0.5883 GB, free: 4.91 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001948/1.857, allocations: 182 kB / 0.5884 GB, free: 4.734 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.857, allocations: 0 / 0.5884 GB, free: 4.734 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001108/1.858, allocations: 399.5 kB / 0.5888 GB, free: 4.344 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.002564/1.861, allocations: 1.213 MB / 0.59 GB, free: 3.098 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01088/1.871, allocations: 0.8832 MB / 0.5909 GB, free: 2.203 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/1.871, allocations: 0 / 0.5909 GB, free: 2.203 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009524/1.881, allocations: 0.6665 MB / 0.5915 GB, free: 1.523 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003407/1.881, allocations: 39.91 kB / 0.5916 GB, free: 1.488 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004078/1.885, allocations: 2.614 MB / 0.5941 GB, free: 14.74 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/1.886, allocations: 0.748 MB / 0.5948 GB, free: 13.97 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/1.886, allocations: 21.95 kB / 0.5949 GB, free: 13.95 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/1.886, allocations: 75.34 kB / 0.5949 GB, free: 13.87 MB / 494.1 MB Notification: Performance of SimCode: time 6.22e-07/1.886, allocations: 4 kB / 0.5949 GB, free: 13.87 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04519/1.931, allocations: 16.21 MB / 0.6108 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/13.82, allocations: 14.92 kB / 0.6108 GB, free: 13.84 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe 2>&1)