Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1.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.TestStaticCentrifugalPump1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump1",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.8163/0.8163, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003192, allocations: 17.58 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05592/0.05626, allocations: 31.34 MB / 267.9 MB, free: 7.527 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.TestStaticCentrifugalPump1): time 1.604/1.661, allocations: 294.9 MB / 0.5496 GB, free: 12.87 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04038/1.701, allocations: 34.43 MB / 0.5833 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002687/1.701, allocations: 0 / 0.5833 GB, free: 10.3 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/StaticCentrifugalPump.mo:60:3-62:42: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/WaterSteam/Machines/StaticCentrifugalPump.mo:63:3-65:37: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/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C 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/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C 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.0004757/1.702, allocations: 135.1 kB / 0.5834 GB, free: 10.17 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003795/1.702, allocations: 131.1 kB / 0.5835 GB, free: 10.04 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.02533/1.728, allocations: 9.764 MB / 0.5931 GB, free: 268 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006696/1.728, allocations: 402.3 kB / 0.5934 GB, free: 15.87 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003607/1.729, allocations: 124.5 kB / 0.5936 GB, free: 15.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003785/1.729, allocations: 167.3 kB / 0.5937 GB, free: 15.58 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/1.729, allocations: 143.2 kB / 0.5939 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.519e-05/1.729, allocations: 24 kB / 0.5939 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0336/1.763, allocations: 17.88 MB / 0.6113 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/1.763, allocations: 51.78 kB / 0.6114 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002351/1.763, allocations: 155.2 kB / 0.6115 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0199/1.783, allocations: 8.481 MB / 0.6198 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/1.783, allocations: 0 / 0.6198 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.034e-06/1.783, allocations: 0 / 0.6198 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.455e-05/1.783, allocations: 0 / 0.6198 GB, free: 4.812 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.00437/1.788, allocations: 1.537 MB / 0.6213 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/1.788, allocations: 8.031 kB / 0.6213 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.279e-05/1.788, allocations: 66.53 kB / 0.6214 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.1e-05/1.788, allocations: 39.7 kB / 0.6214 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002705/1.788, allocations: 258.5 kB / 0.6217 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/1.788, allocations: 12.56 kB / 0.6217 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/1.788, allocations: 24 kB / 0.6217 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005281/1.789, allocations: 340.2 kB / 0.622 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/1.789, allocations: 0 / 0.622 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.327e-05/1.789, allocations: 11.92 kB / 0.622 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/1.789, allocations: 19.92 kB / 0.6221 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003983/1.789, allocations: 223.1 kB / 0.6223 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0377/1.827, allocations: 18.12 MB / 0.64 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004799/1.828, allocations: 198.5 kB / 0.6402 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/1.828, allocations: 120.8 kB / 0.6403 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3407/2.169, allocations: 77.73 MB / 0.7162 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/2.169, allocations: 39.94 kB / 0.7162 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=41): time 2.936e-06/2.169, allocations: 0 / 0.7162 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=41): time 0.00412/2.173, allocations: 0.9346 MB / 0.7171 GB, free: 207 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/2.173, allocations: 57.31 kB / 0.7172 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/2.173, allocations: 255.9 kB / 0.7174 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/2.173, allocations: 26.67 kB / 0.7175 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.216e-05/2.173, allocations: 162.1 kB / 0.7176 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.816e-05/2.173, allocations: 138.7 kB / 0.7177 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.045e-05/2.173, allocations: 66.44 kB / 0.7178 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.706e-05/2.173, allocations: 341.7 kB / 0.7181 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/2.174, allocations: 95.58 kB / 0.7182 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/2.174, allocations: 151.7 kB / 0.7184 GB, free: 206.3 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/2.174, allocations: 268.8 kB / 0.7186 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/2.174, allocations: 3.312 kB / 0.7186 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002318/2.177, allocations: 0.6078 MB / 0.7192 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/2.177, allocations: 4.938 kB / 0.7192 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/2.177, allocations: 1.25 kB / 0.7192 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008086/2.177, allocations: 223.5 kB / 0.7194 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.001e-05/2.178, allocations: 16.2 kB / 0.7195 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007733/2.178, allocations: 0.7471 MB / 0.7202 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001717/2.179, allocations: 36.23 kB / 0.7202 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/2.179, allocations: 5.969 kB / 0.7202 GB, free: 205.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (sinkP.C.a,sourceP.C.b,StaticCentrifugalPump1.C2.b,StaticCentrifugalPump1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001267/2.179, allocations: 144 kB / 0.7204 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.348e-05/2.179, allocations: 31.16 kB / 0.7204 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009019/2.18, allocations: 0.7837 MB / 0.7212 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004499/2.18, allocations: 297.7 kB / 0.7214 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/2.18, allocations: 1.031 kB / 0.7214 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/2.18, allocations: 0 / 0.7214 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/2.181, allocations: 0.879 MB / 0.7223 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/2.181, allocations: 4.781 kB / 0.7223 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.228e-05/2.181, allocations: 28.61 kB / 0.7223 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006435/2.182, allocations: 193.5 kB / 0.7225 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/2.182, allocations: 1.812 kB / 0.7225 GB, free: 204.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006833/2.183, allocations: 0.7668 MB / 0.7233 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/2.183, allocations: 0 / 0.7233 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005865/2.183, allocations: 433.1 kB / 0.7237 GB, free: 204.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.263e-05/2.183, allocations: 118.2 kB / 0.7238 GB, free: 204.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/2.184, allocations: 15.89 kB / 0.7238 GB, free: 204 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/2.184, allocations: 9.422 kB / 0.7238 GB, free: 204 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/2.184, allocations: 14.41 kB / 0.7238 GB, free: 204 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/2.184, allocations: 12.02 kB / 0.7238 GB, free: 204 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002702/2.184, allocations: 253.7 kB / 0.7241 GB, free: 204 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/2.184, allocations: 1.5 kB / 0.7241 GB, free: 204 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003142/2.187, allocations: 1.205 MB / 0.7253 GB, free: 204 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005911/2.193, allocations: 2.598 MB / 0.7278 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008487/2.194, allocations: 320 kB / 0.7281 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/2.194, allocations: 1.5 kB / 0.7281 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003315/2.194, allocations: 149 kB / 0.7283 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008219/2.195, allocations: 134.4 kB / 0.7284 GB, free: 203.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008236/2.203, allocations: 3.916 MB / 0.7322 GB, free: 201.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/2.204, allocations: 0.7819 MB / 0.733 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001393/2.204, allocations: 22.52 kB / 0.733 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/2.204, allocations: 107.9 kB / 0.7331 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of SimCode: time 1.132e-06/2.204, allocations: 0 / 0.7331 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07117/2.275, allocations: 49.02 MB / 0.781 GB, free: 166.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/16.1, allocations: 9.156 kB / 0.781 GB, free: 166.7 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1_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_TestStaticCentrifugalPump1.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1.pipe 2>&1)