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.8293/0.8293, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003675/0.0003675, allocations: 21.2 kB / 236.6 MB, free: 2.02 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0633/0.06368, allocations: 31.34 MB / 267.9 MB, free: 7.559 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.TestControlValve): time 1.73/1.793, allocations: 294.9 MB / 0.5496 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04454/1.838, allocations: 34.75 MB / 0.5836 GB, free: 10.07 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000311/1.838, allocations: 4 kB / 0.5836 GB, free: 10.06 MB / 478.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.0006714/1.839, allocations: 179.3 kB / 0.5838 GB, free: 9.887 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003669/1.839, allocations: 171 kB / 0.5839 GB, free: 9.719 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.02912/1.869, allocations: 9.905 MB / 0.5936 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006534/1.869, allocations: 390.3 kB / 0.594 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/1.869, allocations: 135.3 kB / 0.5941 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/1.87, allocations: 167.3 kB / 0.5942 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/1.87, allocations: 163.4 kB / 0.5944 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.392e-05/1.87, allocations: 20 kB / 0.5944 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03384/1.904, allocations: 17.97 MB / 0.612 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001888/1.904, allocations: 75.7 kB / 0.612 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002476/1.904, allocations: 163 kB / 0.6122 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02246/1.927, allocations: 8.544 MB / 0.6205 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/1.927, allocations: 0 / 0.6205 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.944e-06/1.927, allocations: 0 / 0.6205 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.493e-05/1.927, allocations: 0 / 0.6205 GB, free: 4.148 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004883/1.932, allocations: 1.577 MB / 0.6221 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/1.932, allocations: 8.031 kB / 0.6221 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.766e-05/1.932, allocations: 66.53 kB / 0.6222 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.837e-05/1.932, allocations: 47.64 kB / 0.6222 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003334/1.932, allocations: 302.2 kB / 0.6225 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/1.932, allocations: 16.44 kB / 0.6225 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.107e-05/1.932, allocations: 20 kB / 0.6225 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004685/1.933, allocations: 311.4 kB / 0.6228 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.933, allocations: 0 / 0.6228 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/1.933, allocations: 23.92 kB / 0.6228 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.114e-05/1.933, allocations: 15.94 kB / 0.6229 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002861/1.933, allocations: 201.1 kB / 0.6231 GB, free: 1.457 MB / 0.4981 GB 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.03849/1.972, allocations: 18.22 MB / 0.6408 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/1.972, allocations: 150.5 kB / 0.641 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/1.972, allocations: 108.8 kB / 0.6411 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3644/2.336, allocations: 77.74 MB / 0.717 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/2.337, allocations: 34.94 kB / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.545e-06/2.337, allocations: 0 / 0.717 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001068/2.338, allocations: 0.5008 MB / 0.7175 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/2.338, allocations: 55.16 kB / 0.7176 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003296/2.338, allocations: 353.4 kB / 0.7179 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/2.338, allocations: 27.77 kB / 0.7179 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.437e-05/2.338, allocations: 186.2 kB / 0.7181 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.233e-05/2.338, allocations: 117.8 kB / 0.7182 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/2.338, allocations: 50.94 kB / 0.7183 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.395e-05/2.338, allocations: 343.7 kB / 0.7186 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/2.338, allocations: 92 kB / 0.7187 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/2.339, allocations: 137.1 kB / 0.7188 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/2.339, allocations: 254.7 kB / 0.7191 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/2.339, allocations: 1.438 kB / 0.7191 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003959/2.339, allocations: 345.6 kB / 0.7194 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/2.339, allocations: 5.531 kB / 0.7194 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/2.339, allocations: 10.53 kB / 0.7194 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007417/2.34, allocations: 133.3 kB / 0.7195 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.418e-05/2.34, allocations: 7.875 kB / 0.7196 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004513/2.341, allocations: 0.6204 MB / 0.7202 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/2.341, allocations: 28.89 kB / 0.7202 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/2.341, allocations: 10.45 kB / 0.7202 GB, free: 210.2 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 (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.0001213/2.341, allocations: 148.2 kB / 0.7203 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/2.341, allocations: 41.92 kB / 0.7204 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007105/2.342, allocations: 0.654 MB / 0.721 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003756/2.342, allocations: 263.1 kB / 0.7213 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/2.342, allocations: 0 / 0.7213 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/2.342, allocations: 3 kB / 0.7213 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009505/2.343, allocations: 0.8238 MB / 0.7221 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/2.343, allocations: 3.859 kB / 0.7221 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-05/2.343, allocations: 15.34 kB / 0.7221 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003126/2.343, allocations: 108 kB / 0.7222 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/2.343, allocations: 13.33 kB / 0.7222 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003544/2.344, allocations: 0.6283 MB / 0.7228 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/2.344, allocations: 3.906 kB / 0.7228 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/2.344, allocations: 387.7 kB / 0.7232 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.112e-05/2.344, allocations: 131.2 kB / 0.7233 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/2.344, allocations: 13.11 kB / 0.7233 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/2.344, allocations: 3.812 kB / 0.7233 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/2.344, allocations: 6.812 kB / 0.7233 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.045e-06/2.344, allocations: 6.625 kB / 0.7234 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003071/2.345, allocations: 332.6 kB / 0.7237 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.345, allocations: 3 kB / 0.7237 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003725/2.349, allocations: 1.223 MB / 0.7249 GB, free: 208.6 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004889/2.353, allocations: 2.583 MB / 0.7274 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000627/2.354, allocations: 279.8 kB / 0.7277 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/2.354, allocations: 256 / 0.7277 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002774/2.354, allocations: 127.9 kB / 0.7278 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007485/2.355, allocations: 132.5 kB / 0.7279 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004077/2.359, allocations: 3.729 MB / 0.7315 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/2.359, allocations: 0.8027 MB / 0.7323 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001101/2.36, allocations: 31.56 kB / 0.7324 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/2.36, allocations: 128.3 kB / 0.7325 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of SimCode: time 3.1e-07/2.36, allocations: 0 / 0.7325 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07919/2.439, allocations: 49.18 MB / 0.7805 GB, free: 167.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/16.14, allocations: 5.141 kB / 0.7805 GB, free: 167.2 MB / 0.5919 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)