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.8369/0.8369, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003257/0.0003258, allocations: 15.75 kB / 236.6 MB, free: 2.016 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05838/0.05873, allocations: 31.34 MB / 267.9 MB, free: 7.547 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.635/1.694, allocations: 294.5 MB / 0.5492 GB, free: 13.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01662/1.71, allocations: 12.04 MB / 0.561 GB, free: 1.266 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002158/1.711, allocations: 0 / 0.561 GB, free: 1.266 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.0001759/1.711, allocations: 34.48 kB / 0.561 GB, free: 1.234 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002619/1.711, allocations: 63.36 kB / 0.5611 GB, free: 1.172 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009902/1.721, allocations: 3.477 MB / 0.5645 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005089/1.721, allocations: 271.3 kB / 0.5647 GB, free: 13.44 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/1.722, allocations: 159.6 kB / 0.5649 GB, free: 13.28 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/1.722, allocations: 99.64 kB / 0.565 GB, free: 13.18 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/1.722, allocations: 123.5 kB / 0.5651 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.709e-05/1.722, allocations: 24 kB / 0.5651 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01318/1.735, allocations: 7.662 MB / 0.5726 GB, free: 5.363 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/1.736, allocations: 51.72 kB / 0.5727 GB, free: 5.312 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/1.736, allocations: 127.3 kB / 0.5728 GB, free: 5.188 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00688/1.743, allocations: 3.395 MB / 0.5761 GB, free: 1.785 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/1.743, allocations: 0 / 0.5761 GB, free: 1.785 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.513e-06/1.743, allocations: 0 / 0.5761 GB, free: 1.785 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.643e-05/1.743, allocations: 4 kB / 0.5761 GB, free: 1.781 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.00248/1.745, allocations: 0.8367 MB / 0.5769 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/1.745, allocations: 8.031 kB / 0.5769 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.382e-05/1.745, allocations: 58.67 kB / 0.577 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.271e-05/1.745, allocations: 32.75 kB / 0.577 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003147/1.746, allocations: 236 kB / 0.5772 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/1.746, allocations: 16.94 kB / 0.5772 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/1.746, allocations: 24.38 kB / 0.5773 GB, free: 484 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/1.746, allocations: 291.8 kB / 0.5775 GB, free: 164 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/1.746, allocations: 4 kB / 0.5776 GB, free: 160 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.652e-05/1.746, allocations: 11.94 kB / 0.5776 GB, free: 148 kB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/1.746, allocations: 11.94 kB / 0.5776 GB, free: 136 kB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/1.747, allocations: 189.5 kB / 0.5778 GB, free: 15.95 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.006754/1.754, allocations: 3.035 MB / 0.5807 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005658/1.754, allocations: 186.8 kB / 0.5809 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/1.755, allocations: 76.77 kB / 0.581 GB, free: 12.42 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004881/1.759, allocations: 1.713 MB / 0.5826 GB, free: 10.59 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003614/1.76, allocations: 142.3 kB / 0.5828 GB, free: 10.44 MB / 478.1 MB Notification: Performance of pre-optimization done (n=17): time 3.106e-06/1.76, allocations: 0 / 0.5828 GB, free: 10.44 MB / 478.1 MB Notification: Performance of matching and sorting (n=17): time 0.000754/1.761, allocations: 276.4 kB / 0.583 GB, free: 10.16 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.53e-05/1.761, allocations: 110.8 kB / 0.5831 GB, free: 10.02 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/1.761, allocations: 266.5 kB / 0.5834 GB, free: 9.754 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/1.761, allocations: 33.69 kB / 0.5834 GB, free: 9.715 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/1.761, allocations: 156.4 kB / 0.5836 GB, free: 9.559 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/1.761, allocations: 59.52 kB / 0.5836 GB, free: 9.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/1.761, allocations: 49.7 kB / 0.5837 GB, free: 9.445 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/1.762, allocations: 342.8 kB / 0.584 GB, free: 9.102 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/1.762, allocations: 64.19 kB / 0.5841 GB, free: 9.035 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/1.762, allocations: 111.3 kB / 0.5842 GB, free: 8.902 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002713/1.765, allocations: 0.6323 MB / 0.5848 GB, free: 8.223 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/1.765, allocations: 0 / 0.5848 GB, free: 8.223 MB / 478.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005847/1.765, allocations: 286.3 kB / 0.5851 GB, free: 7.934 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.251e-05/1.765, allocations: 29.7 kB / 0.5851 GB, free: 7.898 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/1.765, allocations: 4 kB / 0.5851 GB, free: 7.895 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/1.765, allocations: 4 kB / 0.5851 GB, free: 7.891 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/1.767, allocations: 211.9 kB / 0.5853 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003987/1.767, allocations: 0.5899 MB / 0.5859 GB, free: 7.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/1.768, allocations: 39.86 kB / 0.5859 GB, free: 7.031 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/1.768, allocations: 15.98 kB / 0.5859 GB, free: 7.016 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.0002544/1.768, allocations: 169.7 kB / 0.5861 GB, free: 6.836 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/1.768, allocations: 23.86 kB / 0.5861 GB, free: 6.812 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005598/1.768, allocations: 259.1 kB / 0.5864 GB, free: 6.547 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/1.768, allocations: 3.938 kB / 0.5864 GB, free: 6.543 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/1.768, allocations: 0 / 0.5864 GB, free: 6.543 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/1.768, allocations: 0 / 0.5864 GB, free: 6.543 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/1.769, allocations: 289.5 kB / 0.5867 GB, free: 6.211 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/1.769, allocations: 0 / 0.5867 GB, free: 6.211 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/1.77, allocations: 203.7 kB / 0.5868 GB, free: 6.012 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/1.77, allocations: 4 kB / 0.5868 GB, free: 6.008 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/1.77, allocations: 4 kB / 0.5869 GB, free: 6.004 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003241/1.771, allocations: 0.5898 MB / 0.5874 GB, free: 5.391 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/1.771, allocations: 8.125 kB / 0.5874 GB, free: 5.383 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004918/1.771, allocations: 254.5 kB / 0.5877 GB, free: 5.109 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/1.771, allocations: 112.9 kB / 0.5878 GB, free: 4.98 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/1.771, allocations: 8 kB / 0.5878 GB, free: 4.973 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/1.771, allocations: 11.98 kB / 0.5878 GB, free: 4.961 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-05/1.772, allocations: 15.98 kB / 0.5878 GB, free: 4.945 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/1.772, allocations: 15.92 kB / 0.5878 GB, free: 4.93 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001957/1.772, allocations: 182 kB / 0.588 GB, free: 4.754 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.772, allocations: 0 / 0.588 GB, free: 4.754 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001212/1.773, allocations: 403.4 kB / 0.5884 GB, free: 4.359 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.002685/1.776, allocations: 1.2 MB / 0.5896 GB, free: 3.129 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01103/1.787, allocations: 0.8895 MB / 0.5904 GB, free: 2.227 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.787, allocations: 4 kB / 0.5904 GB, free: 2.223 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00939/1.796, allocations: 0.6601 MB / 0.5911 GB, free: 1.551 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/1.797, allocations: 39.64 kB / 0.5911 GB, free: 1.516 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00493/1.802, allocations: 2.623 MB / 0.5937 GB, free: 14.76 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/1.802, allocations: 0.7479 MB / 0.5944 GB, free: 13.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/1.802, allocations: 21.94 kB / 0.5944 GB, free: 13.96 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/1.802, allocations: 71.41 kB / 0.5945 GB, free: 13.89 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/1.802, allocations: 0 / 0.5945 GB, free: 13.89 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04368/1.846, allocations: 16.21 MB / 0.6103 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/13.26, allocations: 13.03 kB / 0.6103 GB, free: 13.88 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)