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.8009/0.8009, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003386/0.0003387, allocations: 17.05 kB / 236.6 MB, free: 1.992 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05817/0.05853, 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.TestStaticCentrifugalPump1): time 1.672/1.731, allocations: 294.8 MB / 0.5496 GB, free: 12.92 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0387/1.77, allocations: 34.42 MB / 0.5832 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000215/1.77, allocations: 4 kB / 0.5832 GB, free: 10.35 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.0003723/1.77, allocations: 108.3 kB / 0.5833 GB, free: 10.25 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000204/1.77, allocations: 103.1 kB / 0.5834 GB, free: 10.14 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.0235/1.794, allocations: 9.599 MB / 0.5928 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000598/1.795, allocations: 398.3 kB / 0.5931 GB, free: 144 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/1.795, allocations: 140.4 kB / 0.5933 GB, free: 4 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/1.795, allocations: 159.3 kB / 0.5934 GB, free: 15.85 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/1.795, allocations: 147.3 kB / 0.5936 GB, free: 15.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.067e-05/1.795, allocations: 24 kB / 0.5936 GB, free: 15.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03116/1.826, allocations: 17.88 MB / 0.6111 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/1.827, allocations: 55.72 kB / 0.6111 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002054/1.827, allocations: 159.2 kB / 0.6113 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01982/1.847, allocations: 8.449 MB / 0.6195 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/1.847, allocations: 0 / 0.6195 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.914e-06/1.847, allocations: 0 / 0.6195 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.317e-05/1.847, allocations: 0 / 0.6195 GB, free: 5.094 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.004185/1.851, allocations: 1.486 MB / 0.621 GB, free: 3.559 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/1.851, allocations: 8.031 kB / 0.621 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.642e-05/1.851, allocations: 74.47 kB / 0.621 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.105e-05/1.851, allocations: 35.47 kB / 0.6211 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/1.851, allocations: 246.4 kB / 0.6213 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/1.851, allocations: 16.56 kB / 0.6213 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.032e-05/1.851, allocations: 24 kB / 0.6213 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004898/1.852, allocations: 340.2 kB / 0.6217 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/1.852, allocations: 0 / 0.6217 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/1.852, allocations: 12 kB / 0.6217 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/1.852, allocations: 11.94 kB / 0.6217 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003772/1.852, allocations: 219.1 kB / 0.6219 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03495/1.887, allocations: 18.12 MB / 0.6396 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000459/1.888, allocations: 206.4 kB / 0.6398 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/1.888, allocations: 120.8 kB / 0.6399 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3315/2.22, allocations: 77.73 MB / 0.7158 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/2.22, allocations: 32.66 kB / 0.7159 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=41): time 3.236e-06/2.22, allocations: 0 / 0.7159 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=41): time 0.004248/2.224, allocations: 0.9406 MB / 0.7168 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/2.224, allocations: 54.78 kB / 0.7168 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002626/2.224, allocations: 247.1 kB / 0.7171 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/2.224, allocations: 29.89 kB / 0.7171 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.984e-05/2.224, allocations: 157.9 kB / 0.7172 GB, free: 207.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.508e-05/2.224, allocations: 132.7 kB / 0.7174 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.934e-05/2.224, allocations: 67.09 kB / 0.7174 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.384e-05/2.225, allocations: 335.7 kB / 0.7177 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/2.225, allocations: 97.44 kB / 0.7178 GB, free: 206.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/2.225, allocations: 152.6 kB / 0.718 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003868/2.225, allocations: 269.9 kB / 0.7182 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/2.225, allocations: 0 / 0.7182 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002301/2.228, allocations: 0.6076 MB / 0.7188 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/2.228, allocations: 6.844 kB / 0.7188 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/2.228, allocations: 2.625 kB / 0.7188 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008027/2.229, allocations: 225 kB / 0.7191 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.392e-05/2.229, allocations: 19.31 kB / 0.7191 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000754/2.229, allocations: 0.737 MB / 0.7198 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/2.23, allocations: 42.5 kB / 0.7198 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/2.23, allocations: 9.812 kB / 0.7198 GB, free: 206.1 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.0001191/2.23, allocations: 136.6 kB / 0.72 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.923e-05/2.23, allocations: 33.16 kB / 0.72 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008611/2.231, allocations: 0.7811 MB / 0.7208 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004354/2.231, allocations: 292.8 kB / 0.7211 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/2.231, allocations: 1.625 kB / 0.7211 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/2.231, allocations: 5.453 kB / 0.7211 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/2.232, allocations: 0.8836 MB / 0.7219 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/2.232, allocations: 6.438 kB / 0.7219 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.563e-05/2.232, allocations: 20.03 kB / 0.7219 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006349/2.233, allocations: 191.8 kB / 0.7221 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.709e-05/2.233, allocations: 7.781 kB / 0.7221 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006634/2.234, allocations: 0.7613 MB / 0.7229 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/2.234, allocations: 0 / 0.7229 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005597/2.234, allocations: 435.2 kB / 0.7233 GB, free: 204.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.977e-05/2.234, allocations: 118.8 kB / 0.7234 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/2.234, allocations: 15.56 kB / 0.7234 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/2.235, allocations: 9.5 kB / 0.7234 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.866e-05/2.235, allocations: 17.31 kB / 0.7235 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/2.235, allocations: 8.312 kB / 0.7235 GB, free: 204.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002354/2.235, allocations: 254.1 kB / 0.7237 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/2.235, allocations: 0 / 0.7237 GB, free: 204.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003126/2.238, allocations: 1.192 MB / 0.7249 GB, free: 204.4 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.00613/2.244, allocations: 2.581 MB / 0.7274 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007378/2.245, allocations: 314 kB / 0.7277 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/2.245, allocations: 3.312 kB / 0.7277 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003494/2.245, allocations: 152.2 kB / 0.7278 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007552/2.246, allocations: 131.1 kB / 0.728 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008246/2.254, allocations: 3.881 MB / 0.7317 GB, free: 202 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/2.255, allocations: 0.7801 MB / 0.7325 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001254/2.255, allocations: 29.61 kB / 0.7325 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/2.255, allocations: 108.2 kB / 0.7326 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of SimCode: time 7.72e-07/2.255, allocations: 3.188 kB / 0.7326 GB, free: 201.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07518/2.33, allocations: 49.19 MB / 0.7807 GB, free: 166.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/15.57, allocations: 3.781 kB / 0.7807 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump1_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPump1.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPump1.pipe 2>&1)