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.8538/0.8538, allocations: 150.9 MB / 166.1 MB, free: 14.57 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003429, allocations: 19.97 kB / 204.2 MB, free: 9.957 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1561, allocations: 31.33 MB / 235.6 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.506/1.662, allocations: 293.7 MB / 0.5169 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0362/1.698, allocations: 34.96 MB / 0.551 GB, free: 10.76 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/1.698, allocations: 0 / 0.551 GB, free: 10.76 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.0004266/1.699, allocations: 148.1 kB / 0.5512 GB, free: 10.62 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/1.699, allocations: 139.3 kB / 0.5513 GB, free: 10.48 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.02093/1.72, allocations: 8.542 MB / 0.5596 GB, free: 1.938 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004877/1.72, allocations: 386.3 kB / 0.56 GB, free: 1.559 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/1.721, allocations: 136.7 kB / 0.5601 GB, free: 1.43 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/1.721, allocations: 167.3 kB / 0.5603 GB, free: 1.266 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/1.721, allocations: 171.3 kB / 0.5604 GB, free: 1.098 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.9e-05/1.721, allocations: 20 kB / 0.5605 GB, free: 1.078 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02463/1.746, allocations: 17.82 MB / 0.5779 GB, free: 15.23 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001278/1.746, allocations: 75.75 kB / 0.5779 GB, free: 15.16 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001802/1.746, allocations: 159 kB / 0.5781 GB, free: 15 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01577/1.762, allocations: 8.546 MB / 0.5864 GB, free: 6.434 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/1.762, allocations: 0 / 0.5864 GB, free: 6.434 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.959e-06/1.762, allocations: 0 / 0.5864 GB, free: 6.434 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/1.762, allocations: 3.938 kB / 0.5864 GB, free: 6.43 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.003745/1.766, allocations: 1.524 MB / 0.5879 GB, free: 4.855 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/1.766, allocations: 8.031 kB / 0.5879 GB, free: 4.848 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.568e-05/1.766, allocations: 66.53 kB / 0.588 GB, free: 4.773 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.606e-05/1.766, allocations: 43.38 kB / 0.588 GB, free: 4.73 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/1.766, allocations: 294.1 kB / 0.5883 GB, free: 4.402 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/1.766, allocations: 12.44 kB / 0.5883 GB, free: 4.391 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.45e-05/1.766, allocations: 20 kB / 0.5884 GB, free: 4.371 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000425/1.767, allocations: 323.4 kB / 0.5887 GB, free: 4.027 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/1.767, allocations: 4 kB / 0.5887 GB, free: 4.023 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/1.767, allocations: 8 kB / 0.5887 GB, free: 4.016 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/1.767, allocations: 15.94 kB / 0.5887 GB, free: 4 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/1.767, allocations: 201.6 kB / 0.5889 GB, free: 3.805 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.03515/1.802, allocations: 18.11 MB / 0.6066 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/1.802, allocations: 150.5 kB / 0.6067 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/1.803, allocations: 104.8 kB / 0.6068 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1431/1.946, allocations: 77.29 MB / 0.6823 GB, free: 9.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/1.946, allocations: 30.56 kB / 0.6823 GB, free: 9.461 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.074e-06/1.946, allocations: 0 / 0.6823 GB, free: 9.461 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001137/1.947, allocations: 0.4914 MB / 0.6828 GB, free: 8.941 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/1.947, allocations: 59.28 kB / 0.6829 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003879/1.947, allocations: 352.5 kB / 0.6832 GB, free: 8.52 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/1.947, allocations: 33.7 kB / 0.6832 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/1.947, allocations: 184.4 kB / 0.6834 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.368e-05/1.948, allocations: 110.3 kB / 0.6835 GB, free: 8.188 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.38e-05/1.948, allocations: 49.64 kB / 0.6836 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001033/1.948, allocations: 346.8 kB / 0.6839 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/1.948, allocations: 91.97 kB / 0.684 GB, free: 7.695 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/1.948, allocations: 136.2 kB / 0.6841 GB, free: 7.547 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/1.948, allocations: 252.5 kB / 0.6843 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.948, allocations: 0 / 0.6843 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000465/1.949, allocations: 341.5 kB / 0.6847 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/1.949, allocations: 4 kB / 0.6847 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/1.949, allocations: 0 / 0.6847 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008164/1.95, allocations: 144.8 kB / 0.6848 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.686e-05/1.95, allocations: 15.92 kB / 0.6848 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005027/1.95, allocations: 0.6148 MB / 0.6854 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/1.95, allocations: 23.59 kB / 0.6855 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/1.95, allocations: 15.98 kB / 0.6855 GB, free: 6.098 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.0001436/1.951, allocations: 157.7 kB / 0.6856 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.704e-05/1.951, allocations: 27.62 kB / 0.6856 GB, free: 5.906 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007976/1.951, allocations: 0.6546 MB / 0.6863 GB, free: 5.18 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004113/1.952, allocations: 250.5 kB / 0.6865 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/1.952, allocations: 4 kB / 0.6865 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/1.952, allocations: 8.781 kB / 0.6865 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/1.953, allocations: 0.8314 MB / 0.6873 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/1.953, allocations: 0 / 0.6873 GB, free: 4.023 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.845e-05/1.953, allocations: 19.98 kB / 0.6874 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003504/1.953, allocations: 104.7 kB / 0.6875 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/1.953, allocations: 8 kB / 0.6875 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004579/1.954, allocations: 0.6281 MB / 0.6881 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.954, allocations: 7.922 kB / 0.6881 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/1.954, allocations: 385.7 kB / 0.6885 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/1.954, allocations: 120.7 kB / 0.6886 GB, free: 2.699 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.986e-05/1.954, allocations: 15.91 kB / 0.6886 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/1.955, allocations: 7.938 kB / 0.6886 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.237e-05/1.955, allocations: 7.984 kB / 0.6886 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/1.955, allocations: 7.938 kB / 0.6886 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003315/1.955, allocations: 339.1 kB / 0.6889 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.955, allocations: 3.938 kB / 0.6889 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002678/1.958, allocations: 1.206 MB / 0.6901 GB, free: 1.117 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.151/2.109, allocations: 2.604 MB / 0.6927 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000711/2.109, allocations: 290.5 kB / 0.6929 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/2.109, allocations: 3.969 kB / 0.6929 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003046/2.11, allocations: 121.8 kB / 0.6931 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007982/2.111, allocations: 127.8 kB / 0.6932 GB, free: 226.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005145/2.116, allocations: 3.818 MB / 0.6969 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/2.116, allocations: 0.8054 MB / 0.6977 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001348/2.116, allocations: 30.73 kB / 0.6977 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000115/2.116, allocations: 129.1 kB / 0.6978 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of SimCode: time 3.71e-07/2.116, allocations: 0.5312 kB / 0.6979 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06171/2.178, allocations: 49.4 MB / 0.7461 GB, free: 195.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/2.178, allocations: 232.2 kB / 0.7463 GB, free: 195.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.876/6.054, allocations: 0 / 0.7463 GB, free: 195.4 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 & /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)