Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.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.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss",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.7636/0.7636, allocations: 150.8 MB / 166.1 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002998, allocations: 11.98 kB / 204.2 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1327, allocations: 31.33 MB / 235.6 MB, free: 5.551 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.TestInvSingularPressureLoss): time 1.456/1.589, allocations: 293.5 MB / 0.5166 GB, free: 13.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03405/1.623, allocations: 34.58 MB / 0.5504 GB, free: 11.42 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/1.623, allocations: 3.938 kB / 0.5504 GB, free: 11.41 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourcePQ.mo:29:3-30:52: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/InvSingularPressureLoss.mo:26:3-28: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/InvSingularPressureLoss.mo:29:3-30:83: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.0003331/1.624, allocations: 92.73 kB / 0.5505 GB, free: 11.32 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001373/1.624, allocations: 67.47 kB / 0.5506 GB, free: 11.26 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.01992/1.644, allocations: 8.379 MB / 0.5587 GB, free: 2.875 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000387/1.644, allocations: 286.7 kB / 0.559 GB, free: 2.594 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/1.644, allocations: 91.56 kB / 0.5591 GB, free: 2.508 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/1.645, allocations: 115.5 kB / 0.5592 GB, free: 2.395 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/1.645, allocations: 99.52 kB / 0.5593 GB, free: 2.297 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/1.645, allocations: 16 kB / 0.5593 GB, free: 2.281 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02391/1.669, allocations: 17.76 MB / 0.5767 GB, free: 0.5 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 5.525e-05/1.669, allocations: 35.84 kB / 0.5767 GB, free: 476 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/1.669, allocations: 111.4 kB / 0.5768 GB, free: 364 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01455/1.683, allocations: 8.394 MB / 0.585 GB, free: 7.941 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/1.684, allocations: 4 kB / 0.585 GB, free: 7.938 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.202e-06/1.684, allocations: 4 kB / 0.585 GB, free: 7.934 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/1.684, allocations: 0 / 0.585 GB, free: 7.934 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.003055/1.687, allocations: 1.4 MB / 0.5864 GB, free: 6.48 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/1.687, allocations: 8.031 kB / 0.5864 GB, free: 6.473 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.432e-05/1.687, allocations: 58.55 kB / 0.5864 GB, free: 6.406 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/1.687, allocations: 27.66 kB / 0.5865 GB, free: 6.379 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/1.687, allocations: 219.4 kB / 0.5867 GB, free: 6.125 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/1.687, allocations: 12.38 kB / 0.5867 GB, free: 6.113 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.373e-05/1.687, allocations: 20 kB / 0.5867 GB, free: 6.094 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/1.687, allocations: 260.1 kB / 0.587 GB, free: 5.816 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/1.687, allocations: 0 / 0.587 GB, free: 5.816 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/1.687, allocations: 8 kB / 0.587 GB, free: 5.809 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/1.687, allocations: 11.94 kB / 0.587 GB, free: 5.797 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002582/1.688, allocations: 151.1 kB / 0.5871 GB, free: 5.652 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.01686/1.705, allocations: 9.502 MB / 0.5964 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/1.705, allocations: 78.55 kB / 0.5965 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.794e-05/1.705, allocations: 56.89 kB / 0.5965 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1335/1.838, allocations: 77.28 MB / 0.672 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/1.838, allocations: 30.56 kB / 0.672 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=22): time 2.054e-06/1.838, allocations: 0 / 0.672 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22): time 0.0005021/1.839, allocations: 207.9 kB / 0.6722 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/1.839, allocations: 51.41 kB / 0.6723 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/1.839, allocations: 224.8 kB / 0.6725 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/1.839, allocations: 33.7 kB / 0.6725 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.414e-05/1.839, allocations: 140.2 kB / 0.6727 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.825e-05/1.839, allocations: 78.83 kB / 0.6727 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.788e-05/1.839, allocations: 33.7 kB / 0.6728 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001117/1.84, allocations: 338.8 kB / 0.6731 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/1.84, allocations: 51.97 kB / 0.6731 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/1.84, allocations: 89.27 kB / 0.6732 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/1.84, allocations: 159.6 kB / 0.6734 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/1.84, allocations: 0 / 0.6734 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003663/1.84, allocations: 189.3 kB / 0.6736 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/1.84, allocations: 9.406 kB / 0.6736 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/1.84, allocations: 0 / 0.6736 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/1.84, allocations: 0 / 0.6736 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/1.841, allocations: 107.9 kB / 0.6737 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/1.841, allocations: 4.062 kB / 0.6737 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/1.841, allocations: 31.67 kB / 0.6737 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/1.841, allocations: 4 kB / 0.6737 GB, free: 3.148 MB / 0.5606 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 (invSingularPressureLoss.C2.b,invSingularPressureLoss.C1.a,sinkQ.C.a,sourcePQ.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): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/1.841, allocations: 129.8 kB / 0.6738 GB, free: 3.012 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/1.841, allocations: 19.72 kB / 0.6738 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004411/1.842, allocations: 335.6 kB / 0.6742 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002255/1.842, allocations: 149.6 kB / 0.6743 GB, free: 2.473 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.842, allocations: 3.938 kB / 0.6743 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/1.842, allocations: 0 / 0.6743 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008184/1.843, allocations: 0.6129 MB / 0.6749 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.843, allocations: 0 / 0.6749 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/1.844, allocations: 103.8 kB / 0.675 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/1.844, allocations: 0 / 0.675 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/1.844, allocations: 4 kB / 0.675 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/1.844, allocations: 4 kB / 0.675 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/1.844, allocations: 0 / 0.675 GB, free: 1.688 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/1.844, allocations: 295.9 kB / 0.6753 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-05/1.844, allocations: 104.8 kB / 0.6754 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.387e-05/1.844, allocations: 4 kB / 0.6754 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/1.844, allocations: 11.94 kB / 0.6754 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.953e-05/1.844, allocations: 11.92 kB / 0.6754 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-06/1.844, allocations: 4 kB / 0.6754 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001739/1.844, allocations: 206 kB / 0.6756 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/1.844, allocations: 0 / 0.6756 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002795/1.847, allocations: 1.179 MB / 0.6768 GB, free: 15.85 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005241/1.853, allocations: 2.497 MB / 0.6792 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000439/1.853, allocations: 197.4 kB / 0.6794 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/1.853, allocations: 256 / 0.6794 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001381/1.853, allocations: 75.91 kB / 0.6795 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006082/1.854, allocations: 107.3 kB / 0.6796 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004013/1.858, allocations: 2.879 MB / 0.6824 GB, free: 9.988 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/1.858, allocations: 0.7519 MB / 0.6831 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001209/1.858, allocations: 21.95 kB / 0.6831 GB, free: 9.191 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/1.858, allocations: 87.39 kB / 0.6832 GB, free: 9.109 MB / 0.5762 GB Notification: Performance of SimCode: time 4.41e-07/1.858, allocations: 0 / 0.6832 GB, free: 9.109 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2056/2.064, allocations: 46.4 MB / 0.7285 GB, free: 208.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/2.064, allocations: 222.9 kB / 0.7287 GB, free: 208.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.059/6.123, allocations: 64 / 0.7287 GB, free: 208.7 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestInvSingularPressureLoss.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1)