Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.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.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",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.8259/0.8259, allocations: 150.9 MB / 166.4 MB, free: 14.24 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 19.97 kB / 204.6 MB, free: 9.527 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1541, allocations: 31.33 MB / 236 MB, free: 5.438 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.TestControlValve): time 1.611/1.765, allocations: 294.8 MB / 0.5183 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03649/1.802, allocations: 34.75 MB / 0.5522 GB, free: 10.65 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002408/1.802, allocations: 4 kB / 0.5522 GB, free: 10.64 MB / 446.1 MB [/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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43: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/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 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.0004681/1.803, allocations: 163.2 kB / 0.5524 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002337/1.803, allocations: 159 kB / 0.5525 GB, free: 10.33 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.02315/1.826, allocations: 9.735 MB / 0.562 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005469/1.827, allocations: 382.4 kB / 0.5624 GB, free: 228 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/1.827, allocations: 132.2 kB / 0.5625 GB, free: 96 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002274/1.827, allocations: 175.3 kB / 0.5627 GB, free: 15.92 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001834/1.827, allocations: 163.4 kB / 0.5629 GB, free: 15.76 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/1.827, allocations: 19.94 kB / 0.5629 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02772/1.855, allocations: 17.74 MB / 0.5802 GB, free: 13.98 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001524/1.855, allocations: 79.73 kB / 0.5803 GB, free: 13.9 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/1.855, allocations: 163 kB / 0.5804 GB, free: 13.74 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02144/1.877, allocations: 8.527 MB / 0.5888 GB, free: 5.191 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/1.877, allocations: 0 / 0.5888 GB, free: 5.191 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.864e-06/1.877, allocations: 0 / 0.5888 GB, free: 5.191 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/1.877, allocations: 4 kB / 0.5888 GB, free: 5.188 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003723/1.881, allocations: 1.528 MB / 0.5903 GB, free: 3.609 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/1.881, allocations: 8.031 kB / 0.5903 GB, free: 3.602 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.888e-05/1.881, allocations: 66.53 kB / 0.5903 GB, free: 3.527 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.026e-05/1.881, allocations: 43.38 kB / 0.5904 GB, free: 3.484 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/1.881, allocations: 282.1 kB / 0.5906 GB, free: 3.172 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/1.881, allocations: 21.28 kB / 0.5907 GB, free: 3.152 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.913e-05/1.881, allocations: 20 kB / 0.5907 GB, free: 3.133 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004189/1.882, allocations: 319.4 kB / 0.591 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/1.882, allocations: 0 / 0.591 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/1.882, allocations: 12 kB / 0.591 GB, free: 2.777 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/1.882, allocations: 19.92 kB / 0.591 GB, free: 2.758 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/1.882, allocations: 202.9 kB / 0.5912 GB, free: 2.562 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.03637/1.918, allocations: 18.11 MB / 0.6089 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/1.919, allocations: 146.5 kB / 0.609 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/1.919, allocations: 104.8 kB / 0.6091 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1486/2.067, allocations: 77.28 MB / 0.6846 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/2.067, allocations: 38.5 kB / 0.6846 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.165e-06/2.067, allocations: 0 / 0.6846 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001191/2.069, allocations: 0.4953 MB / 0.6851 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/2.069, allocations: 55.34 kB / 0.6852 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004076/2.069, allocations: 348.5 kB / 0.6855 GB, free: 7.289 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/2.069, allocations: 29.7 kB / 0.6855 GB, free: 7.254 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/2.069, allocations: 188.4 kB / 0.6857 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.478e-05/2.069, allocations: 118.2 kB / 0.6858 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.493e-05/2.069, allocations: 49.69 kB / 0.6859 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001209/2.07, allocations: 342.8 kB / 0.6862 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/2.07, allocations: 99.89 kB / 0.6863 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/2.07, allocations: 132.2 kB / 0.6864 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/2.07, allocations: 252.5 kB / 0.6867 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/2.07, allocations: 0 / 0.6867 GB, free: 6.047 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004812/2.071, allocations: 341.5 kB / 0.687 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/2.071, allocations: 4 kB / 0.687 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/2.071, allocations: 3.984 kB / 0.687 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008086/2.071, allocations: 141.3 kB / 0.6871 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.911e-05/2.072, allocations: 8 kB / 0.6871 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005344/2.072, allocations: 0.6264 MB / 0.6878 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/2.072, allocations: 27.53 kB / 0.6878 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/2.072, allocations: 8 kB / 0.6878 GB, free: 4.859 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 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001525/2.072, allocations: 158.9 kB / 0.6879 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/2.073, allocations: 28.89 kB / 0.688 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007999/2.073, allocations: 0.6555 MB / 0.6886 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003989/2.074, allocations: 258.4 kB / 0.6889 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/2.074, allocations: 0 / 0.6889 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/2.074, allocations: 4 kB / 0.6889 GB, free: 3.676 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/2.075, allocations: 0.8371 MB / 0.6897 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/2.075, allocations: 0 / 0.6897 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.578e-05/2.075, allocations: 19.98 kB / 0.6897 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003353/2.075, allocations: 100.8 kB / 0.6898 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/2.075, allocations: 8 kB / 0.6898 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004726/2.076, allocations: 0.6323 MB / 0.6904 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/2.076, allocations: 7.875 kB / 0.6904 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005005/2.076, allocations: 380.9 kB / 0.6908 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/2.076, allocations: 120.7 kB / 0.6909 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.648e-05/2.076, allocations: 19.83 kB / 0.6909 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/2.077, allocations: 3.938 kB / 0.6909 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/2.077, allocations: 11.98 kB / 0.6909 GB, free: 1.426 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/2.077, allocations: 4 kB / 0.6909 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003347/2.077, allocations: 331.1 kB / 0.6913 GB, free: 1.098 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.5e-07/2.077, allocations: 4 kB / 0.6913 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1949/2.272, allocations: 1.195 MB / 0.6924 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006161/2.278, allocations: 2.564 MB / 0.6949 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007292/2.279, allocations: 297.2 kB / 0.6952 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/2.279, allocations: 2.469 kB / 0.6952 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002738/2.279, allocations: 121.3 kB / 0.6953 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007647/2.28, allocations: 134 kB / 0.6955 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/2.285, allocations: 3.704 MB / 0.6991 GB, free: 224 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/2.285, allocations: 0.8015 MB / 0.6999 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001479/2.285, allocations: 32.53 kB / 0.6999 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/2.285, allocations: 125.4 kB / 0.7 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of SimCode: time 5e-07/2.285, allocations: 0 / 0.7 GB, free: 223.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08265/2.368, allocations: 49.14 MB / 0.748 GB, free: 194.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/14.95, allocations: 1.312 kB / 0.748 GB, free: 194.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)