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.8371/0.8371, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000513/0.0005131, allocations: 16.77 kB / 236.6 MB, free: 2.184 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0594/0.05993, allocations: 31.35 MB / 267.9 MB, free: 7.672 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.683/1.743, allocations: 295.4 MB / 0.5501 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04337/1.787, allocations: 34.43 MB / 0.5838 GB, free: 10.28 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002797/1.787, allocations: 4 kB / 0.5838 GB, free: 10.28 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.0004898/1.788, allocations: 113.1 kB / 0.5839 GB, free: 10.17 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002825/1.788, allocations: 103.1 kB / 0.584 GB, free: 10.07 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.02458/1.813, allocations: 9.589 MB / 0.5933 GB, free: 480 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006178/1.813, allocations: 402.3 kB / 0.5937 GB, free: 76 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/1.813, allocations: 128.5 kB / 0.5938 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00026/1.814, allocations: 163.2 kB / 0.594 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001898/1.814, allocations: 139.3 kB / 0.5941 GB, free: 15.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/1.814, allocations: 24 kB / 0.5941 GB, free: 15.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03243/1.846, allocations: 17.89 MB / 0.6116 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001038/1.847, allocations: 51.78 kB / 0.6117 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002332/1.847, allocations: 159.1 kB / 0.6118 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01949/1.866, allocations: 8.466 MB / 0.6201 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/1.866, allocations: 0 / 0.6201 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.724e-06/1.866, allocations: 0 / 0.6201 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.777e-06/1.866, allocations: 0 / 0.6201 GB, free: 5.02 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.004411/1.871, allocations: 1.545 MB / 0.6216 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/1.871, allocations: 15.97 kB / 0.6216 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.456e-05/1.871, allocations: 62.53 kB / 0.6217 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.106e-05/1.871, allocations: 39.7 kB / 0.6217 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/1.871, allocations: 254.5 kB / 0.6219 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/1.871, allocations: 16.56 kB / 0.622 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/1.871, allocations: 16 kB / 0.622 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/1.872, allocations: 344.2 kB / 0.6223 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/1.872, allocations: 7.984 kB / 0.6223 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/1.872, allocations: 4 kB / 0.6223 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/1.872, allocations: 19.92 kB / 0.6223 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/1.872, allocations: 215.1 kB / 0.6225 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03935/1.912, allocations: 18.13 MB / 0.6402 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004727/1.912, allocations: 202.5 kB / 0.6404 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/1.912, allocations: 124.8 kB / 0.6406 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.334/2.246, allocations: 77.73 MB / 0.7165 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/2.247, allocations: 32.28 kB / 0.7165 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=41): time 2.926e-06/2.247, allocations: 0 / 0.7165 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=41): time 0.004011/2.251, allocations: 0.9415 MB / 0.7174 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.838e-05/2.251, allocations: 61.03 kB / 0.7175 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002358/2.251, allocations: 250 kB / 0.7177 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/2.251, allocations: 30.73 kB / 0.7177 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.847e-05/2.251, allocations: 158.9 kB / 0.7179 GB, free: 207 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.147e-05/2.251, allocations: 137.6 kB / 0.718 GB, free: 207 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.302e-05/2.251, allocations: 65.78 kB / 0.7181 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.275e-05/2.251, allocations: 338.8 kB / 0.7184 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/2.251, allocations: 96.91 kB / 0.7185 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/2.252, allocations: 150 kB / 0.7186 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003628/2.252, allocations: 273.3 kB / 0.7189 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/2.252, allocations: 0 / 0.7189 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002262/2.254, allocations: 0.6037 MB / 0.7195 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/2.254, allocations: 5.875 kB / 0.7195 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/2.254, allocations: 1.984 kB / 0.7195 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007892/2.255, allocations: 225 kB / 0.7197 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.078e-05/2.255, allocations: 18.44 kB / 0.7197 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007356/2.256, allocations: 0.7427 MB / 0.7205 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/2.256, allocations: 35.56 kB / 0.7205 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/2.256, allocations: 10.03 kB / 0.7205 GB, free: 205.9 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.0001235/2.256, allocations: 144.8 kB / 0.7206 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.191e-05/2.256, allocations: 31.91 kB / 0.7207 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008575/2.257, allocations: 0.7827 MB / 0.7214 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004325/2.258, allocations: 294.1 kB / 0.7217 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/2.258, allocations: 0 / 0.7217 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/2.258, allocations: 1.344 kB / 0.7217 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/2.259, allocations: 0.8787 MB / 0.7226 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/2.259, allocations: 4.844 kB / 0.7226 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.857e-05/2.259, allocations: 24.25 kB / 0.7226 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000621/2.259, allocations: 194.1 kB / 0.7228 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/2.259, allocations: 3.688 kB / 0.7228 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006518/2.26, allocations: 0.7648 MB / 0.7235 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/2.26, allocations: 0.5625 kB / 0.7235 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005835/2.261, allocations: 438.3 kB / 0.724 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.219e-05/2.261, allocations: 118.3 kB / 0.7241 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/2.261, allocations: 12.19 kB / 0.7241 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/2.261, allocations: 9.219 kB / 0.7241 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/2.261, allocations: 12.86 kB / 0.7241 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/2.261, allocations: 11.23 kB / 0.7241 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002524/2.261, allocations: 254.6 kB / 0.7244 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.4e-07/2.261, allocations: 3.469 kB / 0.7244 GB, free: 204.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002954/2.264, allocations: 1.21 MB / 0.7255 GB, free: 204.3 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.005382/2.27, allocations: 2.602 MB / 0.7281 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007433/2.27, allocations: 319.3 kB / 0.7284 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/2.27, allocations: 1.5 kB / 0.7284 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003116/2.271, allocations: 150.1 kB / 0.7285 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007919/2.272, allocations: 132.5 kB / 0.7287 GB, free: 203.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007537/2.279, allocations: 3.919 MB / 0.7325 GB, free: 201.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/2.279, allocations: 0.776 MB / 0.7332 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001225/2.279, allocations: 25.73 kB / 0.7333 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/2.28, allocations: 99.77 kB / 0.7334 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of SimCode: time 9.42e-07/2.28, allocations: 0 / 0.7334 GB, free: 201.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07823/2.358, allocations: 49.02 MB / 0.7812 GB, free: 166.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/16.34, allocations: 4.984 kB / 0.7812 GB, free: 166.9 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)