Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss",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.7352/0.7352, allocations: 150.9 MB / 166.1 MB, free: 14.6 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002547, allocations: 15.98 kB / 204.2 MB, free: 9.969 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1366, allocations: 31.32 MB / 235.6 MB, free: 5.426 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.TestSingularPressureLoss): time 1.524/1.66, allocations: 293.6 MB / 0.5168 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03608/1.696, allocations: 34.63 MB / 0.5506 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/1.697, allocations: 7.938 kB / 0.5506 GB, free: 11.17 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/SingularPressureLoss.mo:25:3-27:16: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/SingularPressureLoss.mo:28:3-29:52: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.0003417/1.697, allocations: 91.55 kB / 0.5507 GB, free: 11.08 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/1.697, allocations: 83.36 kB / 0.5507 GB, free: 11 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.02122/1.718, allocations: 8.395 MB / 0.5589 GB, free: 2.605 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004321/1.719, allocations: 326.5 kB / 0.5593 GB, free: 2.285 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/1.719, allocations: 104.5 kB / 0.5594 GB, free: 2.188 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/1.719, allocations: 135.4 kB / 0.5595 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/1.719, allocations: 103.4 kB / 0.5596 GB, free: 1.953 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/1.719, allocations: 20 kB / 0.5596 GB, free: 1.934 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02539/1.745, allocations: 17.75 MB / 0.5769 GB, free: 160 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.646e-05/1.745, allocations: 43.86 kB / 0.577 GB, free: 116 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001807/1.745, allocations: 123.4 kB / 0.5771 GB, free: 15.99 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01725/1.762, allocations: 8.425 MB / 0.5853 GB, free: 7.547 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/1.762, allocations: 0 / 0.5853 GB, free: 7.547 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.525e-06/1.762, allocations: 0 / 0.5853 GB, free: 7.547 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/1.762, allocations: 3.938 kB / 0.5853 GB, free: 7.543 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.003521/1.766, allocations: 1.421 MB / 0.5867 GB, free: 6.074 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/1.766, allocations: 12.03 kB / 0.5867 GB, free: 6.062 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.709e-05/1.766, allocations: 58.53 kB / 0.5868 GB, free: 5.996 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/1.766, allocations: 35.56 kB / 0.5868 GB, free: 5.961 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/1.766, allocations: 230.5 kB / 0.587 GB, free: 5.695 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/1.766, allocations: 12.44 kB / 0.5871 GB, free: 5.684 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/1.766, allocations: 20 kB / 0.5871 GB, free: 5.664 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000361/1.767, allocations: 286.8 kB / 0.5873 GB, free: 5.355 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/1.767, allocations: 7.938 kB / 0.5874 GB, free: 5.348 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/1.767, allocations: 4.609 kB / 0.5874 GB, free: 5.344 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/1.767, allocations: 19.92 kB / 0.5874 GB, free: 5.324 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/1.767, allocations: 157.1 kB / 0.5875 GB, free: 5.172 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.03381/1.801, allocations: 17.99 MB / 0.6051 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003282/1.801, allocations: 127.2 kB / 0.6052 GB, free: 1.172 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.418e-05/1.801, allocations: 84.95 kB / 0.6053 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1392/1.94, allocations: 77.27 MB / 0.6808 GB, free: 11.05 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/1.94, allocations: 30.56 kB / 0.6808 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 1.934e-06/1.94, allocations: 4 kB / 0.6808 GB, free: 11 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0008/1.941, allocations: 400.2 kB / 0.6812 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/1.941, allocations: 51.41 kB / 0.6812 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/1.942, allocations: 219.6 kB / 0.6814 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/1.942, allocations: 29.64 kB / 0.6815 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.523e-05/1.942, allocations: 148.5 kB / 0.6816 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.852e-05/1.942, allocations: 106.4 kB / 0.6817 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/1.942, allocations: 45.61 kB / 0.6817 GB, free: 9.961 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001095/1.942, allocations: 334.8 kB / 0.6821 GB, free: 9.625 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.2e-05/1.942, allocations: 68.3 kB / 0.6821 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/1.942, allocations: 110.2 kB / 0.6822 GB, free: 9.438 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000227/1.942, allocations: 209.6 kB / 0.6824 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/1.942, allocations: 0 / 0.6824 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003937/1.943, allocations: 269.9 kB / 0.6827 GB, free: 8.945 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/1.943, allocations: 13.52 kB / 0.6827 GB, free: 8.934 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.943, allocations: 4 kB / 0.6827 GB, free: 8.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008544/1.944, allocations: 148.6 kB / 0.6829 GB, free: 8.781 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.309e-05/1.944, allocations: 12 kB / 0.6829 GB, free: 8.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004787/1.944, allocations: 0.6107 MB / 0.6835 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/1.944, allocations: 31.56 kB / 0.6835 GB, free: 8.102 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/1.944, allocations: 8 kB / 0.6835 GB, free: 8.094 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 (singularPressureLoss.C2.b,singularPressureLoss.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 (11): * Single equations (assignments): 8 * 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.0001283/1.945, allocations: 134.1 kB / 0.6836 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.358e-05/1.945, allocations: 27.72 kB / 0.6837 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006421/1.945, allocations: 0.5524 MB / 0.6842 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003044/1.946, allocations: 203.8 kB / 0.6844 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.946, allocations: 0 / 0.6844 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/1.946, allocations: 3.984 kB / 0.6844 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007561/1.946, allocations: 0.6799 MB / 0.6851 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/1.946, allocations: 7.938 kB / 0.6851 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.594e-05/1.946, allocations: 15.98 kB / 0.6851 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000346/1.947, allocations: 108.8 kB / 0.6852 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/1.947, allocations: 4 kB / 0.6852 GB, free: 6.223 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004338/1.947, allocations: 0.6342 MB / 0.6858 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/1.947, allocations: 0 / 0.6858 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003482/1.948, allocations: 303.8 kB / 0.6861 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.016e-05/1.948, allocations: 108.8 kB / 0.6862 GB, free: 5.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/1.948, allocations: 15.84 kB / 0.6862 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/1.948, allocations: 0 / 0.6862 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.818e-05/1.948, allocations: 11.92 kB / 0.6862 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/1.948, allocations: 12.06 kB / 0.6862 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002405/1.948, allocations: 226 kB / 0.6864 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.948, allocations: 0 / 0.6864 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002991/1.951, allocations: 1.195 MB / 0.6876 GB, free: 3.672 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 (11): * Single equations (assignments): 10 * 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.006141/1.957, allocations: 2.519 MB / 0.6901 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005824/1.958, allocations: 244.6 kB / 0.6903 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/1.958, allocations: 0 / 0.6903 GB, free: 0.9102 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002292/1.958, allocations: 87.89 kB / 0.6904 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008359/1.959, allocations: 117.8 kB / 0.6905 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1643/2.123, allocations: 2.991 MB / 0.6934 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/2.124, allocations: 0.7619 MB / 0.6942 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001676/2.124, allocations: 22.86 kB / 0.6942 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/2.124, allocations: 88.47 kB / 0.6943 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.753e-06/2.124, allocations: 0 / 0.6943 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07576/2.2, allocations: 47.66 MB / 0.7408 GB, free: 199.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/2.2, allocations: 253.3 kB / 0.7411 GB, free: 199.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.981/6.181, allocations: 4 kB / 0.7411 GB, free: 199.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)