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.876/0.876, allocations: 150.9 MB / 166.5 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004847/0.0004848, allocations: 18.61 kB / 236.6 MB, free: 1.949 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05356/0.05407, allocations: 31.35 MB / 267.9 MB, free: 7.562 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.674/1.728, allocations: 295.3 MB / 0.55 GB, free: 12.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04197/1.77, allocations: 34.75 MB / 0.5839 GB, free: 9.965 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/1.77, allocations: 4 kB / 0.5839 GB, free: 9.961 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.0004781/1.771, allocations: 163.5 kB / 0.5841 GB, free: 9.805 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/1.771, allocations: 143 kB / 0.5842 GB, free: 9.664 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.02399/1.795, allocations: 9.735 MB / 0.5937 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006077/1.796, allocations: 390.3 kB / 0.5941 GB, free: 15.54 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/1.796, allocations: 128.6 kB / 0.5942 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002467/1.796, allocations: 163.3 kB / 0.5944 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/1.796, allocations: 175.3 kB / 0.5946 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/1.796, allocations: 16 kB / 0.5946 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03115/1.828, allocations: 17.96 MB / 0.6121 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001435/1.828, allocations: 71.77 kB / 0.6122 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002211/1.828, allocations: 167 kB / 0.6123 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01951/1.847, allocations: 8.54 MB / 0.6207 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/1.848, allocations: 0 / 0.6207 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.334e-06/1.848, allocations: 0 / 0.6207 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.709e-05/1.848, allocations: 0 / 0.6207 GB, free: 4.277 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.004968/1.853, allocations: 1.583 MB / 0.6222 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/1.853, allocations: 12.03 kB / 0.6222 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.778e-05/1.853, allocations: 66.52 kB / 0.6223 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.051e-05/1.853, allocations: 43.66 kB / 0.6223 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000334/1.853, allocations: 298.2 kB / 0.6226 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.744e-05/1.853, allocations: 16.44 kB / 0.6226 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.66e-05/1.853, allocations: 16 kB / 0.6227 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/1.854, allocations: 327.4 kB / 0.623 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/1.854, allocations: 0 / 0.623 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/1.854, allocations: 4 kB / 0.623 GB, free: 1.797 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/1.854, allocations: 15.94 kB / 0.623 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003066/1.854, allocations: 213 kB / 0.6232 GB, free: 1.574 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.03987/1.894, allocations: 18.23 MB / 0.641 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/1.894, allocations: 142.5 kB / 0.6411 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/1.894, allocations: 108.8 kB / 0.6412 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3401/2.234, allocations: 77.73 MB / 0.7172 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/2.234, allocations: 39.5 kB / 0.7172 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.445e-06/2.234, allocations: 0 / 0.7172 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001035/2.235, allocations: 0.4902 MB / 0.7177 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/2.236, allocations: 66.31 kB / 0.7177 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/2.236, allocations: 350.9 kB / 0.7181 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.075e-05/2.236, allocations: 26.27 kB / 0.7181 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.74e-05/2.236, allocations: 186.8 kB / 0.7183 GB, free: 211 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.463e-05/2.236, allocations: 116.4 kB / 0.7184 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/2.236, allocations: 47.25 kB / 0.7184 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.509e-05/2.236, allocations: 347 kB / 0.7188 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/2.236, allocations: 93.11 kB / 0.7188 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/2.236, allocations: 143 kB / 0.719 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/2.237, allocations: 245 kB / 0.7192 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/2.237, allocations: 0 / 0.7192 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004062/2.237, allocations: 349.7 kB / 0.7195 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/2.237, allocations: 8.797 kB / 0.7196 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2.237, allocations: 2.844 kB / 0.7196 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007749/2.238, allocations: 143.7 kB / 0.7197 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.294e-05/2.238, allocations: 12.78 kB / 0.7197 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003977/2.238, allocations: 0.6057 MB / 0.7203 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/2.238, allocations: 35.47 kB / 0.7203 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/2.238, allocations: 8.781 kB / 0.7203 GB, free: 209.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 (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.0001202/2.239, allocations: 161.1 kB / 0.7205 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/2.239, allocations: 31.23 kB / 0.7205 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006599/2.239, allocations: 0.6504 MB / 0.7212 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003558/2.24, allocations: 265.2 kB / 0.7214 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/2.24, allocations: 2.438 kB / 0.7214 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/2.24, allocations: 2.953 kB / 0.7214 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008514/2.241, allocations: 0.8175 MB / 0.7222 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/2.241, allocations: 1.906 kB / 0.7222 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.482e-05/2.241, allocations: 28.39 kB / 0.7222 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003229/2.241, allocations: 103.4 kB / 0.7223 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/2.241, allocations: 7.188 kB / 0.7224 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003486/2.241, allocations: 0.633 MB / 0.723 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/2.241, allocations: 0 / 0.723 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004034/2.242, allocations: 392.2 kB / 0.7233 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.202e-05/2.242, allocations: 123.3 kB / 0.7235 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.188e-05/2.242, allocations: 13.77 kB / 0.7235 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/2.242, allocations: 0 / 0.7235 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.831e-05/2.242, allocations: 18.98 kB / 0.7235 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/2.242, allocations: 5.578 kB / 0.7235 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002733/2.242, allocations: 332.3 kB / 0.7238 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/2.242, allocations: 0 / 0.7238 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002585/2.245, allocations: 1.223 MB / 0.725 GB, free: 208.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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00571/2.251, allocations: 2.586 MB / 0.7275 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006257/2.251, allocations: 289.5 kB / 0.7278 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/2.251, allocations: 0 / 0.7278 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002623/2.252, allocations: 119.4 kB / 0.7279 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007667/2.252, allocations: 139.3 kB / 0.7281 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004501/2.257, allocations: 3.723 MB / 0.7317 GB, free: 205.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/2.257, allocations: 0.802 MB / 0.7325 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001354/2.257, allocations: 35.34 kB / 0.7325 GB, free: 205 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/2.257, allocations: 123.5 kB / 0.7326 GB, free: 205 MB / 0.5919 GB Notification: Performance of SimCode: time 4.81e-07/2.257, allocations: 2.719 kB / 0.7326 GB, free: 205 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0733/2.331, allocations: 49.18 MB / 0.7807 GB, free: 167 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.08/17.41, allocations: 8.219 kB / 0.7807 GB, free: 167 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)