Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_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.8239/0.8239, allocations: 150.8 MB / 166.1 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002599/0.0002599, allocations: 15.97 kB / 204.2 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1685, allocations: 31.33 MB / 235.6 MB, free: 5.418 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.611/1.78, allocations: 293.6 MB / 0.5168 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03734/1.817, allocations: 34.97 MB / 0.5509 GB, free: 10.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002452/1.818, allocations: 4 kB / 0.5509 GB, free: 10.85 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.000476/1.818, allocations: 135.5 kB / 0.5511 GB, free: 10.71 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/1.818, allocations: 147.2 kB / 0.5512 GB, free: 10.57 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.0236/1.842, allocations: 8.537 MB / 0.5595 GB, free: 2.031 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005907/1.843, allocations: 390.3 kB / 0.5599 GB, free: 1.648 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/1.843, allocations: 134.3 kB / 0.56 GB, free: 1.523 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002362/1.843, allocations: 163.3 kB / 0.5602 GB, free: 1.363 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/1.843, allocations: 167.4 kB / 0.5603 GB, free: 1.199 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/1.843, allocations: 20 kB / 0.5604 GB, free: 1.18 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0285/1.872, allocations: 17.82 MB / 0.5778 GB, free: 15.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/1.872, allocations: 71.77 kB / 0.5778 GB, free: 15.27 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002093/1.872, allocations: 171 kB / 0.578 GB, free: 15.1 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01794/1.89, allocations: 8.542 MB / 0.5863 GB, free: 6.535 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/1.89, allocations: 4 kB / 0.5863 GB, free: 6.531 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.803e-06/1.89, allocations: 0 / 0.5863 GB, free: 6.531 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/1.89, allocations: 0 / 0.5863 GB, free: 6.531 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.003529/1.894, allocations: 1.524 MB / 0.5878 GB, free: 4.957 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/1.894, allocations: 12.03 kB / 0.5878 GB, free: 4.945 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.502e-05/1.894, allocations: 62.53 kB / 0.5879 GB, free: 4.875 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.074e-05/1.894, allocations: 43.38 kB / 0.5879 GB, free: 4.832 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/1.894, allocations: 286.1 kB / 0.5882 GB, free: 4.512 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/1.894, allocations: 16.44 kB / 0.5882 GB, free: 4.496 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.792e-05/1.894, allocations: 20 kB / 0.5883 GB, free: 4.477 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/1.895, allocations: 323.4 kB / 0.5886 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/1.895, allocations: 0 / 0.5886 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/1.895, allocations: 8 kB / 0.5886 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/1.895, allocations: 15.92 kB / 0.5886 GB, free: 4.109 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/1.895, allocations: 217 kB / 0.5888 GB, free: 3.898 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.03396/1.929, allocations: 18.11 MB / 0.6065 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002785/1.929, allocations: 140.2 kB / 0.6066 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/1.929, allocations: 104.8 kB / 0.6067 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1422/2.072, allocations: 77.28 MB / 0.6822 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/2.072, allocations: 34.56 kB / 0.6822 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.234e-06/2.072, allocations: 0 / 0.6822 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001117/2.073, allocations: 0.4992 MB / 0.6827 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/2.073, allocations: 55.34 kB / 0.6828 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003788/2.073, allocations: 360.4 kB / 0.6831 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/2.073, allocations: 25.7 kB / 0.6831 GB, free: 8.586 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/2.073, allocations: 184.4 kB / 0.6833 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.788e-05/2.074, allocations: 114.2 kB / 0.6834 GB, free: 8.285 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.442e-05/2.074, allocations: 57.69 kB / 0.6835 GB, free: 8.223 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000111/2.074, allocations: 342.8 kB / 0.6838 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/2.074, allocations: 95.97 kB / 0.6839 GB, free: 7.785 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/2.074, allocations: 129 kB / 0.684 GB, free: 7.645 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/2.074, allocations: 252.5 kB / 0.6842 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/2.074, allocations: 0 / 0.6842 GB, free: 7.383 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004691/2.075, allocations: 349.5 kB / 0.6846 GB, free: 7.031 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/2.075, allocations: 5.094 kB / 0.6846 GB, free: 7.027 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/2.075, allocations: 4 kB / 0.6846 GB, free: 7.023 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008208/2.076, allocations: 140.8 kB / 0.6847 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.705e-05/2.076, allocations: 12 kB / 0.6847 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005186/2.076, allocations: 0.62 MB / 0.6853 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/2.076, allocations: 31.62 kB / 0.6854 GB, free: 6.195 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/2.076, allocations: 4 kB / 0.6854 GB, free: 6.191 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.0001549/2.077, allocations: 162.3 kB / 0.6855 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.074e-05/2.077, allocations: 35.69 kB / 0.6856 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007847/2.077, allocations: 0.6429 MB / 0.6862 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004031/2.078, allocations: 262.3 kB / 0.6864 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/2.078, allocations: 0 / 0.6864 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/2.078, allocations: 0 / 0.6864 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/2.079, allocations: 0.8388 MB / 0.6873 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/2.079, allocations: 0 / 0.6873 GB, free: 4.109 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.387e-05/2.079, allocations: 16 kB / 0.6873 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003403/2.079, allocations: 106.5 kB / 0.6874 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/2.079, allocations: 4 kB / 0.6874 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00047/2.08, allocations: 0.6382 MB / 0.688 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/2.08, allocations: 3.938 kB / 0.688 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000491/2.08, allocations: 386.8 kB / 0.6884 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/2.081, allocations: 120.6 kB / 0.6885 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.881e-05/2.081, allocations: 11.91 kB / 0.6885 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/2.081, allocations: 7.938 kB / 0.6885 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.31e-05/2.081, allocations: 15.98 kB / 0.6885 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.435e-06/2.081, allocations: 4 kB / 0.6885 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003284/2.081, allocations: 331.1 kB / 0.6888 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/2.081, allocations: 3.938 kB / 0.6888 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002798/2.084, allocations: 1.206 MB / 0.69 GB, free: 1.211 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.1633/2.247, allocations: 2.603 MB / 0.6926 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007921/2.248, allocations: 295 kB / 0.6928 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/2.248, allocations: 0 / 0.6928 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002879/2.248, allocations: 118.2 kB / 0.693 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008541/2.249, allocations: 139.8 kB / 0.6931 GB, free: 226.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005817/2.255, allocations: 3.81 MB / 0.6968 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/2.255, allocations: 0.81 MB / 0.6976 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001728/2.256, allocations: 31.77 kB / 0.6976 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/2.256, allocations: 124.9 kB / 0.6978 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.292e-06/2.256, allocations: 0 / 0.6978 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06655/2.322, allocations: 49.42 MB / 0.746 GB, free: 195.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/2.322, allocations: 263 kB / 0.7463 GB, free: 195.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.082/6.405, allocations: 0 / 0.7463 GB, free: 195.6 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)