Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.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.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss",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.743/0.743, allocations: 150.8 MB / 166.1 MB, free: 14.91 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002787, allocations: 19.97 kB / 204.2 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.123, allocations: 31.33 MB / 235.6 MB, free: 5.387 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.TestPipePressureLoss): time 1.372/1.495, allocations: 293.7 MB / 0.5168 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03307/1.528, allocations: 34.64 MB / 0.5507 GB, free: 11.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001792/1.528, allocations: 4 kB / 0.5507 GB, free: 11.2 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/PipePressureLoss.mo:35:3-37:42: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/PipePressureLoss.mo:38:3-40:37: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.0003177/1.529, allocations: 91.56 kB / 0.5507 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000164/1.529, allocations: 87.28 kB / 0.5508 GB, free: 11.02 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.01885/1.548, allocations: 8.396 MB / 0.559 GB, free: 2.621 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003672/1.548, allocations: 346.5 kB / 0.5594 GB, free: 2.281 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/1.548, allocations: 105.1 kB / 0.5595 GB, free: 2.184 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001759/1.548, allocations: 147.3 kB / 0.5596 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/1.549, allocations: 107.5 kB / 0.5597 GB, free: 1.934 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/1.549, allocations: 23.94 kB / 0.5597 GB, free: 1.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02239/1.571, allocations: 17.75 MB / 0.5771 GB, free: 140 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 5.075e-05/1.571, allocations: 51.78 kB / 0.5771 GB, free: 88 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/1.571, allocations: 131.3 kB / 0.5772 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01318/1.584, allocations: 8.441 MB / 0.5855 GB, free: 7.496 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/1.585, allocations: 0 / 0.5855 GB, free: 7.496 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.373e-06/1.585, allocations: 0 / 0.5855 GB, free: 7.496 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/1.585, allocations: 0 / 0.5855 GB, free: 7.496 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003274/1.588, allocations: 1.435 MB / 0.5869 GB, free: 6.012 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/1.588, allocations: 12.03 kB / 0.5869 GB, free: 6 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.242e-05/1.588, allocations: 66.47 kB / 0.587 GB, free: 5.926 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/1.588, allocations: 31.62 kB / 0.587 GB, free: 5.895 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000212/1.588, allocations: 235.4 kB / 0.5872 GB, free: 5.625 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/1.588, allocations: 12.44 kB / 0.5872 GB, free: 5.613 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.537e-05/1.588, allocations: 22.44 kB / 0.5872 GB, free: 5.594 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003938/1.589, allocations: 291.3 kB / 0.5875 GB, free: 5.281 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/1.589, allocations: 4 kB / 0.5875 GB, free: 5.277 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/1.589, allocations: 12 kB / 0.5875 GB, free: 5.266 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/1.589, allocations: 15.98 kB / 0.5875 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/1.589, allocations: 165 kB / 0.5877 GB, free: 5.09 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.03177/1.621, allocations: 18.02 MB / 0.6053 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/1.621, allocations: 126.7 kB / 0.6054 GB, free: 1.062 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/1.621, allocations: 92.84 kB / 0.6055 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1298/1.751, allocations: 77.27 MB / 0.681 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/1.751, allocations: 34.5 kB / 0.681 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.783e-06/1.751, allocations: 0 / 0.681 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008889/1.752, allocations: 439.4 kB / 0.6814 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.07e-05/1.752, allocations: 55.41 kB / 0.6815 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/1.752, allocations: 227.1 kB / 0.6817 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/1.752, allocations: 29.7 kB / 0.6817 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/1.752, allocations: 140.5 kB / 0.6819 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.209e-05/1.752, allocations: 110.3 kB / 0.682 GB, free: 9.848 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.017e-05/1.752, allocations: 57.59 kB / 0.682 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.349e-05/1.752, allocations: 334.8 kB / 0.6823 GB, free: 9.449 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.401e-05/1.753, allocations: 79.86 kB / 0.6824 GB, free: 9.371 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000119/1.753, allocations: 120.2 kB / 0.6825 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/1.753, allocations: 204.6 kB / 0.6827 GB, free: 9.023 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.753, allocations: 0 / 0.6827 GB, free: 9.023 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003872/1.753, allocations: 309.5 kB / 0.683 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/1.753, allocations: 4 kB / 0.683 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/1.753, allocations: 4 kB / 0.683 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008455/1.754, allocations: 157.9 kB / 0.6832 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.11e-05/1.754, allocations: 12 kB / 0.6832 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004307/1.755, allocations: 0.6329 MB / 0.6838 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/1.755, allocations: 27.78 kB / 0.6838 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/1.755, allocations: 8 kB / 0.6838 GB, free: 7.844 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 (pipePressureLoss.C2.b,pipePressureLoss.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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001057/1.755, allocations: 133.8 kB / 0.684 GB, free: 7.703 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/1.755, allocations: 23.72 kB / 0.684 GB, free: 7.68 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006511/1.756, allocations: 0.5969 MB / 0.6846 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003201/1.756, allocations: 222.3 kB / 0.6848 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/1.756, allocations: 4 kB / 0.6848 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/1.756, allocations: 0 / 0.6848 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008114/1.757, allocations: 0.738 MB / 0.6855 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/1.757, allocations: 0 / 0.6855 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.903e-05/1.757, allocations: 12 kB / 0.6855 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003391/1.757, allocations: 116.7 kB / 0.6856 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/1.757, allocations: 4 kB / 0.6856 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003853/1.758, allocations: 0.6548 MB / 0.6863 GB, free: 5.176 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/1.758, allocations: 3.938 kB / 0.6863 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003942/1.758, allocations: 351.9 kB / 0.6866 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.96e-05/1.758, allocations: 96.91 kB / 0.6867 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.029e-05/1.758, allocations: 15.84 kB / 0.6867 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/1.758, allocations: 4 kB / 0.6867 GB, free: 4.676 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.152e-05/1.758, allocations: 8.594 kB / 0.6867 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/1.758, allocations: 4 kB / 0.6867 GB, free: 4.664 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001981/1.759, allocations: 241.9 kB / 0.687 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.51e-07/1.759, allocations: 4 kB / 0.687 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002117/1.761, allocations: 1.183 MB / 0.6881 GB, free: 3.246 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004811/1.765, allocations: 2.571 MB / 0.6906 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004174/1.766, allocations: 241.4 kB / 0.6909 GB, free: 440 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/1.766, allocations: 256 / 0.6909 GB, free: 440 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001855/1.766, allocations: 103.7 kB / 0.691 GB, free: 336 kB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006278/1.767, allocations: 122.5 kB / 0.6911 GB, free: 212 kB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1314/1.898, allocations: 3.095 MB / 0.6941 GB, free: 224.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001533/1.898, allocations: 0.7697 MB / 0.6949 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001061/1.899, allocations: 24.55 kB / 0.6949 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.1e-05/1.899, allocations: 87.47 kB / 0.695 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of SimCode: time 7.81e-07/1.899, allocations: 0.625 kB / 0.695 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.152/5.05, allocations: 47.94 MB / 0.7418 GB, free: 198.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/5.051, allocations: 244.1 kB / 0.742 GB, free: 198.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.059/9.11, allocations: 3.422 kB / 0.742 GB, free: 198.7 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestPipePressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestPipePressureLoss.pipe 2>&1)