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.7776/0.7776, allocations: 150.9 MB / 166.4 MB, free: 14.44 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003431, allocations: 19.97 kB / 204.6 MB, free: 9.66 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1435, allocations: 31.33 MB / 236 MB, free: 5.375 MB / 190.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.528/1.672, allocations: 294.8 MB / 0.5183 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03638/1.708, allocations: 34.43 MB / 0.552 GB, free: 10.92 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/1.709, allocations: 4 kB / 0.552 GB, free: 10.92 MB / 446.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.0003641/1.709, allocations: 112.2 kB / 0.5521 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/1.709, allocations: 107.1 kB / 0.5522 GB, free: 10.7 MB / 446.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.02395/1.733, allocations: 9.587 MB / 0.5615 GB, free: 1.117 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005287/1.734, allocations: 398.3 kB / 0.5619 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/1.734, allocations: 131 kB / 0.562 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/1.734, allocations: 159.3 kB / 0.5622 GB, free: 456 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001891/1.734, allocations: 143.3 kB / 0.5623 GB, free: 312 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.908e-05/1.734, allocations: 24 kB / 0.5624 GB, free: 288 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02805/1.763, allocations: 17.66 MB / 0.5796 GB, free: 14.6 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.34e-05/1.763, allocations: 59.75 kB / 0.5797 GB, free: 14.54 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/1.763, allocations: 155.2 kB / 0.5798 GB, free: 14.39 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02059/1.784, allocations: 8.461 MB / 0.5881 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/1.784, allocations: 0 / 0.5881 GB, free: 5.91 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.774e-06/1.784, allocations: 0 / 0.5881 GB, free: 5.91 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.395e-05/1.784, allocations: 0 / 0.5881 GB, free: 5.91 MB / 478.1 MB 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.004332/1.788, allocations: 1.482 MB / 0.5895 GB, free: 4.379 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/1.788, allocations: 15.97 kB / 0.5895 GB, free: 4.363 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.439e-05/1.788, allocations: 70.47 kB / 0.5896 GB, free: 4.285 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.323e-05/1.788, allocations: 39.56 kB / 0.5896 GB, free: 4.246 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/1.788, allocations: 242.4 kB / 0.5899 GB, free: 3.969 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.146e-05/1.788, allocations: 24.56 kB / 0.5899 GB, free: 3.945 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/1.788, allocations: 23.94 kB / 0.5899 GB, free: 3.922 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004996/1.789, allocations: 336.2 kB / 0.5902 GB, free: 3.562 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/1.789, allocations: 0 / 0.5902 GB, free: 3.562 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/1.789, allocations: 8 kB / 0.5902 GB, free: 3.555 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/1.789, allocations: 19.92 kB / 0.5903 GB, free: 3.535 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003779/1.789, allocations: 213.2 kB / 0.5905 GB, free: 3.328 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03622/1.826, allocations: 18.01 MB / 0.6081 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000455/1.826, allocations: 214.4 kB / 0.6083 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/1.826, allocations: 120.8 kB / 0.6084 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.148/1.974, allocations: 77.28 MB / 0.6838 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/1.974, allocations: 38.56 kB / 0.6839 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=41): time 2.414e-06/1.974, allocations: 0 / 0.6839 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of matching and sorting (n=41): time 0.003906/1.978, allocations: 0.9367 MB / 0.6848 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/1.978, allocations: 55.41 kB / 0.6848 GB, free: 7.996 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/1.979, allocations: 242.6 kB / 0.6851 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/1.979, allocations: 29.7 kB / 0.6851 GB, free: 7.723 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.184e-05/1.979, allocations: 160.5 kB / 0.6853 GB, free: 7.562 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.315e-05/1.979, allocations: 130 kB / 0.6854 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.463e-05/1.979, allocations: 69.53 kB / 0.6854 GB, free: 7.359 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001035/1.979, allocations: 338.8 kB / 0.6858 GB, free: 7.02 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/1.979, allocations: 96.41 kB / 0.6859 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/1.979, allocations: 146.9 kB / 0.686 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003708/1.98, allocations: 270 kB / 0.6863 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/1.98, allocations: 0 / 0.6863 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002202/1.982, allocations: 0.6098 MB / 0.6869 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/1.982, allocations: 11.92 kB / 0.6869 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/1.982, allocations: 4 kB / 0.6869 GB, free: 5.852 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007869/1.983, allocations: 226.7 kB / 0.6871 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.272e-05/1.983, allocations: 17.3 kB / 0.6871 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007968/1.984, allocations: 0.7356 MB / 0.6878 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/1.984, allocations: 47.5 kB / 0.6879 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/1.984, allocations: 4 kB / 0.6879 GB, free: 4.801 MB / 0.5762 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.0001437/1.984, allocations: 149.8 kB / 0.688 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.564e-05/1.984, allocations: 19.72 kB / 0.688 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009452/1.985, allocations: 0.7911 MB / 0.6888 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004653/1.986, allocations: 292.4 kB / 0.6891 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.986, allocations: 3.938 kB / 0.6891 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/1.986, allocations: 3.984 kB / 0.6891 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/1.987, allocations: 0.8788 MB / 0.69 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/1.987, allocations: 0 / 0.69 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.94e-05/1.987, allocations: 27.88 kB / 0.69 GB, free: 2.496 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006265/1.988, allocations: 198.1 kB / 0.6902 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/1.988, allocations: 8 kB / 0.6902 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000735/1.988, allocations: 0.7591 MB / 0.6909 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.988, allocations: 0 / 0.6909 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005831/1.989, allocations: 431.7 kB / 0.6913 GB, free: 1.07 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/1.989, allocations: 120.7 kB / 0.6914 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/1.989, allocations: 7.906 kB / 0.6914 GB, free: 0.9258 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/1.989, allocations: 7.984 kB / 0.6915 GB, free: 0.918 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/1.989, allocations: 15.98 kB / 0.6915 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/1.989, allocations: 4 kB / 0.6915 GB, free: 0.8984 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002481/1.99, allocations: 255 kB / 0.6917 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.91e-07/1.99, allocations: 3.938 kB / 0.6917 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1641/2.154, allocations: 1.188 MB / 0.6929 GB, free: 226.2 MB / 0.5762 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.005527/2.159, allocations: 2.584 MB / 0.6954 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007282/2.16, allocations: 332.2 kB / 0.6957 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/2.16, allocations: 0 / 0.6957 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003101/2.16, allocations: 147.3 kB / 0.6959 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007318/2.161, allocations: 131.4 kB / 0.696 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007837/2.169, allocations: 3.871 MB / 0.6998 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/2.169, allocations: 0.7802 MB / 0.7005 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001299/2.169, allocations: 24.33 kB / 0.7006 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/2.169, allocations: 100.1 kB / 0.7006 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.152e-06/2.169, allocations: 0 / 0.7006 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08101/2.25, allocations: 48.94 MB / 0.7484 GB, free: 194.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/14.7, allocations: 18.53 kB / 0.7485 GB, free: 194.2 MB / 0.5762 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)