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: translateModel(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8054/0.8054, allocations: 150.9 MB / 166.7 MB, free: 14.32 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003205/0.0003205, allocations: 15.98 kB / 204.8 MB, free: 9.859 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.1722, allocations: 31.32 MB / 236.1 MB, free: 5.465 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.527/1.7, allocations: 293.6 MB / 0.5173 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0376/1.737, allocations: 34.63 MB / 0.5511 GB, free: 11.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002179/1.737, allocations: 11.94 kB / 0.5511 GB, free: 11.22 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.0003838/1.738, allocations: 91.55 kB / 0.5512 GB, free: 11.13 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/1.738, allocations: 79.38 kB / 0.5513 GB, free: 11.05 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.02228/1.76, allocations: 8.392 MB / 0.5595 GB, free: 2.664 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004622/1.761, allocations: 326.5 kB / 0.5598 GB, free: 2.344 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/1.761, allocations: 111.8 kB / 0.5599 GB, free: 2.242 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/1.761, allocations: 135.4 kB / 0.56 GB, free: 2.109 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/1.761, allocations: 111.4 kB / 0.5601 GB, free: 2 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/1.761, allocations: 16 kB / 0.5601 GB, free: 1.984 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02727/1.789, allocations: 17.75 MB / 0.5775 GB, free: 220 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.774e-05/1.789, allocations: 39.84 kB / 0.5775 GB, free: 180 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/1.789, allocations: 123.4 kB / 0.5776 GB, free: 56 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/1.799, allocations: 5.696 MB / 0.5832 GB, free: 10.34 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.667e-06/1.799, allocations: 4 kB / 0.5832 GB, free: 10.34 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.154e-06/1.799, allocations: 0 / 0.5832 GB, free: 10.34 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/1.799, allocations: 0 / 0.5832 GB, free: 10.34 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.005024/1.804, allocations: 1.419 MB / 0.5846 GB, free: 8.871 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.804, allocations: 12.03 kB / 0.5846 GB, free: 8.859 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.155e-05/1.804, allocations: 31.56 kB / 0.5846 GB, free: 8.828 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/1.805, allocations: 234.5 kB / 0.5848 GB, free: 8.559 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/1.805, allocations: 12.44 kB / 0.5848 GB, free: 8.547 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/1.805, allocations: 20 kB / 0.5849 GB, free: 8.527 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004568/1.805, allocations: 282.8 kB / 0.5851 GB, free: 8.223 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/1.805, allocations: 4 kB / 0.5851 GB, free: 8.219 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/1.805, allocations: 8 kB / 0.5851 GB, free: 8.211 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/1.805, allocations: 15.98 kB / 0.5852 GB, free: 8.195 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/1.806, allocations: 164.9 kB / 0.5853 GB, free: 8.035 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.03677/1.842, allocations: 18 MB / 0.6029 GB, free: 4.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/1.843, allocations: 123.7 kB / 0.603 GB, free: 4.031 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/1.843, allocations: 81.44 kB / 0.6031 GB, free: 3.949 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.142/1.985, allocations: 77.27 MB / 0.6785 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/1.985, allocations: 34.5 kB / 0.6786 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 3.126e-06/1.985, allocations: 0.7031 kB / 0.6786 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.000801/1.986, allocations: 399.8 kB / 0.679 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/1.986, allocations: 55.39 kB / 0.679 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/1.986, allocations: 211.8 kB / 0.6792 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/1.986, allocations: 25.7 kB / 0.6792 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.693e-05/1.986, allocations: 144.5 kB / 0.6794 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.413e-05/1.986, allocations: 106.4 kB / 0.6795 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/1.986, allocations: 45.61 kB / 0.6795 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001249/1.986, allocations: 338.8 kB / 0.6798 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.539e-05/1.986, allocations: 76.36 kB / 0.6799 GB, free: 12.42 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/1.987, allocations: 110.2 kB / 0.68 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002393/1.987, allocations: 205.5 kB / 0.6802 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/1.987, allocations: 3.938 kB / 0.6802 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003766/1.987, allocations: 273.9 kB / 0.6805 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/1.987, allocations: 5.562 kB / 0.6805 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/1.987, allocations: 4 kB / 0.6805 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008182/1.988, allocations: 140.8 kB / 0.6806 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.676e-05/1.988, allocations: 11.98 kB / 0.6806 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004686/1.989, allocations: 0.6077 MB / 0.6812 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/1.989, allocations: 31.69 kB / 0.6813 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/1.989, allocations: 8 kB / 0.6813 GB, free: 10.97 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.0001149/1.989, allocations: 130.2 kB / 0.6814 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.993e-05/1.989, allocations: 23.66 kB / 0.6814 GB, free: 10.81 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000632/1.99, allocations: 0.5641 MB / 0.682 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003053/1.99, allocations: 199.7 kB / 0.6822 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/1.99, allocations: 0 / 0.6822 GB, free: 9.973 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/1.99, allocations: 8.438 kB / 0.6822 GB, free: 9.965 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007036/1.991, allocations: 0.6849 MB / 0.6828 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/1.991, allocations: 3.938 kB / 0.6828 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.247e-05/1.991, allocations: 23.86 kB / 0.6829 GB, free: 9.195 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000331/1.991, allocations: 108.8 kB / 0.683 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/1.991, allocations: 8.703 kB / 0.683 GB, free: 9.078 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004161/1.991, allocations: 0.6243 MB / 0.6836 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/1.991, allocations: 0 / 0.6836 GB, free: 8.43 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/1.992, allocations: 318.6 kB / 0.6839 GB, free: 8.102 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.816e-05/1.992, allocations: 104.8 kB / 0.684 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/1.992, allocations: 7.906 kB / 0.684 GB, free: 7.973 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/1.992, allocations: 7.938 kB / 0.684 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.945e-05/1.992, allocations: 8.047 kB / 0.684 GB, free: 7.957 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/1.992, allocations: 8 kB / 0.684 GB, free: 7.949 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002101/1.992, allocations: 233.9 kB / 0.6842 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.992, allocations: 0 / 0.6842 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002716/1.995, allocations: 1.175 MB / 0.6854 GB, free: 6.551 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.004497/1.999, allocations: 1.795 MB / 0.6871 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005667/2, allocations: 237.5 kB / 0.6874 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/2, allocations: 0 / 0.6874 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002143/2, allocations: 85.58 kB / 0.6874 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007123/2.001, allocations: 122.8 kB / 0.6876 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008627/2.002, allocations: 0.6022 MB / 0.6882 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/2.002, allocations: 0.7597 MB / 0.6889 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.629e-05/2.002, allocations: 19.44 kB / 0.6889 GB, free: 2.883 MB / 0.5762 GB Notification: Performance of SimCode: time 6.81e-07/2.002, allocations: 3.938 kB / 0.6889 GB, free: 2.879 MB / 0.5762 GB Notification: Performance of Templates: time 0.1821/2.184, allocations: 24.78 MB / 0.7131 GB, free: 220.3 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.makefile (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 & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)