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.8431/0.8431, allocations: 150.9 MB / 166.4 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003467, allocations: 19.98 kB / 204.6 MB, free: 9.66 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1292, allocations: 31.33 MB / 236 MB, free: 5.379 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.552/1.681, allocations: 294.8 MB / 0.5183 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03987/1.721, allocations: 34.75 MB / 0.5523 GB, free: 10.61 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/1.721, allocations: 4 kB / 0.5523 GB, free: 10.61 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.0004459/1.721, allocations: 159.2 kB / 0.5524 GB, free: 10.45 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002973/1.722, allocations: 155.1 kB / 0.5526 GB, free: 10.3 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.02251/1.744, allocations: 9.737 MB / 0.5621 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004978/1.745, allocations: 386.3 kB / 0.5624 GB, free: 184 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002021/1.745, allocations: 125.9 kB / 0.5626 GB, free: 60 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002328/1.745, allocations: 167.4 kB / 0.5627 GB, free: 15.89 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/1.745, allocations: 163.4 kB / 0.5629 GB, free: 15.73 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/1.745, allocations: 20 kB / 0.5629 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0277/1.773, allocations: 17.75 MB / 0.5802 GB, free: 13.95 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001311/1.773, allocations: 71.77 kB / 0.5803 GB, free: 13.88 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/1.773, allocations: 167 kB / 0.5805 GB, free: 13.71 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01572/1.789, allocations: 8.535 MB / 0.5888 GB, free: 5.156 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/1.789, allocations: 0 / 0.5888 GB, free: 5.156 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.627e-06/1.789, allocations: 0 / 0.5888 GB, free: 5.156 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/1.789, allocations: 3.938 kB / 0.5888 GB, free: 5.152 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.003419/1.793, allocations: 1.52 MB / 0.5903 GB, free: 3.582 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/1.793, allocations: 11.97 kB / 0.5903 GB, free: 3.57 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.434e-05/1.793, allocations: 62.53 kB / 0.5904 GB, free: 3.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.543e-05/1.793, allocations: 51.38 kB / 0.5904 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/1.793, allocations: 294.1 kB / 0.5907 GB, free: 3.125 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/1.793, allocations: 12.44 kB / 0.5907 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/1.793, allocations: 24 kB / 0.5907 GB, free: 3.09 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/1.794, allocations: 315.4 kB / 0.591 GB, free: 2.75 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/1.794, allocations: 4 kB / 0.591 GB, free: 2.746 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/1.794, allocations: 12 kB / 0.591 GB, free: 2.734 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/1.794, allocations: 11.94 kB / 0.591 GB, free: 2.723 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/1.794, allocations: 205.1 kB / 0.5912 GB, free: 2.523 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.03928/1.833, allocations: 18.1 MB / 0.6089 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/1.834, allocations: 146.5 kB / 0.6091 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/1.834, allocations: 108.8 kB / 0.6092 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1642/1.998, allocations: 77.28 MB / 0.6846 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/1.998, allocations: 34.56 kB / 0.6847 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.984e-06/1.998, allocations: 0 / 0.6847 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001104/1.999, allocations: 0.4914 MB / 0.6851 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.445e-05/1.999, allocations: 59.34 kB / 0.6852 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/2, allocations: 348.5 kB / 0.6855 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/2, allocations: 29.7 kB / 0.6856 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/2, allocations: 200.3 kB / 0.6858 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.493e-05/2, allocations: 114.3 kB / 0.6859 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/2, allocations: 41.7 kB / 0.6859 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001195/2, allocations: 350.8 kB / 0.6862 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/2, allocations: 87.97 kB / 0.6863 GB, free: 6.426 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/2, allocations: 140.2 kB / 0.6865 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/2.001, allocations: 252.5 kB / 0.6867 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/2.001, allocations: 0 / 0.6867 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004982/2.001, allocations: 337.5 kB / 0.687 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/2.001, allocations: 13.53 kB / 0.687 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/2.001, allocations: 0 / 0.687 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008304/2.002, allocations: 144.4 kB / 0.6872 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-05/2.002, allocations: 15.92 kB / 0.6872 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005302/2.003, allocations: 0.6186 MB / 0.6878 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/2.003, allocations: 27.62 kB / 0.6878 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/2.003, allocations: 11.98 kB / 0.6878 GB, free: 4.82 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.0001523/2.003, allocations: 165.8 kB / 0.688 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.804e-05/2.003, allocations: 27.62 kB / 0.688 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008139/2.004, allocations: 0.6492 MB / 0.6886 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000425/2.004, allocations: 254 kB / 0.6889 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/2.004, allocations: 4 kB / 0.6889 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/2.004, allocations: 3.984 kB / 0.6889 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/2.005, allocations: 0.8335 MB / 0.6897 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/2.005, allocations: 0 / 0.6897 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.984e-05/2.005, allocations: 19.98 kB / 0.6897 GB, free: 2.727 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003663/2.006, allocations: 114.1 kB / 0.6898 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/2.006, allocations: 4 kB / 0.6898 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004896/2.006, allocations: 0.6304 MB / 0.6905 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/2.006, allocations: 3.938 kB / 0.6905 GB, free: 1.949 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005105/2.007, allocations: 387.8 kB / 0.6908 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/2.007, allocations: 120.7 kB / 0.6909 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.737e-05/2.007, allocations: 11.84 kB / 0.691 GB, free: 1.402 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/2.007, allocations: 7.938 kB / 0.691 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/2.007, allocations: 7.984 kB / 0.691 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/2.007, allocations: 4 kB / 0.691 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003501/2.008, allocations: 335.1 kB / 0.6913 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/2.008, allocations: 4 kB / 0.6913 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1421/2.15, allocations: 1.2 MB / 0.6925 GB, free: 225.9 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.006736/2.156, allocations: 2.559 MB / 0.695 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007011/2.157, allocations: 303 kB / 0.6953 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/2.157, allocations: 0 / 0.6953 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003084/2.157, allocations: 117.2 kB / 0.6954 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/2.158, allocations: 126.2 kB / 0.6955 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00521/2.164, allocations: 3.701 MB / 0.6991 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/2.164, allocations: 0.8075 MB / 0.6999 GB, free: 223 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000139/2.164, allocations: 31.28 kB / 0.6999 GB, free: 223 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/2.164, allocations: 126.7 kB / 0.7 GB, free: 223 MB / 0.5762 GB Notification: Performance of SimCode: time 4.51e-07/2.164, allocations: 0 / 0.7 GB, free: 223 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06677/2.231, allocations: 49.13 MB / 0.748 GB, free: 194.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/15.56, allocations: 6.297 kB / 0.748 GB, free: 194.3 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)