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.8203/0.8203, allocations: 150.9 MB / 167.1 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003163/0.0003164, allocations: 23.97 kB / 205.9 MB, free: 9.02 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1314, allocations: 31.32 MB / 237.3 MB, free: 5.742 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.57/1.701, allocations: 294.5 MB / 0.5193 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03743/1.738, allocations: 34.43 MB / 0.5529 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/1.739, allocations: 4 kB / 0.5529 GB, free: 11 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.0003208/1.739, allocations: 99.44 kB / 0.553 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000178/1.739, allocations: 95.16 kB / 0.5531 GB, free: 10.81 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.02233/1.761, allocations: 9.57 MB / 0.5624 GB, free: 1.238 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004459/1.762, allocations: 326.5 kB / 0.5627 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/1.762, allocations: 109 kB / 0.5628 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002094/1.762, allocations: 127.4 kB / 0.563 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001466/1.762, allocations: 107.4 kB / 0.5631 GB, free: 0.582 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/1.763, allocations: 16 kB / 0.5631 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02848/1.791, allocations: 17.9 MB / 0.5805 GB, free: 14.65 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.485e-05/1.791, allocations: 47.83 kB / 0.5806 GB, free: 14.6 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/1.791, allocations: 127.3 kB / 0.5807 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01489/1.806, allocations: 8.402 MB / 0.5889 GB, free: 6.055 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/1.806, allocations: 0 / 0.5889 GB, free: 6.055 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.493e-06/1.806, allocations: 4 kB / 0.5889 GB, free: 6.051 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/1.806, allocations: 0 / 0.5889 GB, free: 6.051 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.00342/1.81, allocations: 1.416 MB / 0.5903 GB, free: 4.586 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/1.81, allocations: 8.031 kB / 0.5903 GB, free: 4.578 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/1.81, allocations: 31.56 kB / 0.5903 GB, free: 4.547 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002063/1.81, allocations: 222.5 kB / 0.5906 GB, free: 4.289 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/1.81, allocations: 20.38 kB / 0.5906 GB, free: 4.27 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/1.81, allocations: 25.34 kB / 0.5906 GB, free: 4.246 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003885/1.81, allocations: 286.8 kB / 0.5909 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/1.81, allocations: 0 / 0.5909 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/1.81, allocations: 8 kB / 0.5909 GB, free: 3.926 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/1.81, allocations: 19.92 kB / 0.5909 GB, free: 3.906 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/1.811, allocations: 156.4 kB / 0.591 GB, free: 3.754 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.03555/1.846, allocations: 18.1 MB / 0.6087 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/1.847, allocations: 122.5 kB / 0.6088 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.107e-05/1.847, allocations: 76.97 kB / 0.6089 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1461/1.993, allocations: 77.73 MB / 0.6848 GB, free: 9.066 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/1.993, allocations: 38.56 kB / 0.6849 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 2.234e-06/1.993, allocations: 0 / 0.6849 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0007952/1.994, allocations: 391.3 kB / 0.6852 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/1.994, allocations: 55.34 kB / 0.6853 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/1.994, allocations: 215.8 kB / 0.6855 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/1.994, allocations: 25.7 kB / 0.6855 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.897e-05/1.994, allocations: 148.5 kB / 0.6857 GB, free: 8.145 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.169e-05/1.994, allocations: 102.4 kB / 0.6858 GB, free: 8.043 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.741e-05/1.994, allocations: 53.61 kB / 0.6858 GB, free: 7.984 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001024/1.994, allocations: 334.8 kB / 0.6861 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/1.994, allocations: 76.23 kB / 0.6862 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/1.995, allocations: 110.2 kB / 0.6863 GB, free: 7.453 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/1.995, allocations: 205.5 kB / 0.6865 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/1.995, allocations: 0 / 0.6865 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003778/1.995, allocations: 283.5 kB / 0.6868 GB, free: 6.953 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/1.995, allocations: 4 kB / 0.6868 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/1.995, allocations: 4 kB / 0.6868 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008231/1.996, allocations: 141.9 kB / 0.6869 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.524e-05/1.996, allocations: 7.938 kB / 0.6869 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004731/1.997, allocations: 0.6147 MB / 0.6875 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/1.997, allocations: 27.62 kB / 0.6875 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.286e-05/1.997, allocations: 4.062 kB / 0.6876 GB, free: 6.125 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.0001111/1.997, allocations: 142.2 kB / 0.6877 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.632e-05/1.997, allocations: 27.66 kB / 0.6877 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006362/1.998, allocations: 0.5485 MB / 0.6883 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003159/1.998, allocations: 206.3 kB / 0.6884 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/1.998, allocations: 0 / 0.6884 GB, free: 5.125 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/1.998, allocations: 8.078 kB / 0.6885 GB, free: 5.117 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007261/1.999, allocations: 0.6823 MB / 0.6891 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/1.999, allocations: 4 kB / 0.6891 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.664e-05/1.999, allocations: 19.92 kB / 0.6891 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003338/1.999, allocations: 107.2 kB / 0.6892 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/1.999, allocations: 0 / 0.6892 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000414/1.999, allocations: 0.6389 MB / 0.6899 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.999, allocations: 0 / 0.6899 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002954/2, allocations: 307.8 kB / 0.6902 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/2, allocations: 100.9 kB / 0.6903 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/2, allocations: 11.91 kB / 0.6903 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/2, allocations: 8 kB / 0.6903 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.162e-05/2, allocations: 7.984 kB / 0.6903 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-06/2, allocations: 4 kB / 0.6903 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002155/2, allocations: 230 kB / 0.6905 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/2, allocations: 0 / 0.6905 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002589/2.003, allocations: 1.187 MB / 0.6917 GB, free: 1.703 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.14/2.143, allocations: 1.734 MB / 0.6934 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005905/2.143, allocations: 221.9 kB / 0.6936 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/2.143, allocations: 0.6562 kB / 0.6936 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000196/2.144, allocations: 80.22 kB / 0.6937 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/2.144, allocations: 123.8 kB / 0.6938 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006985/2.145, allocations: 481.5 kB / 0.6942 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001471/2.145, allocations: 0.7624 MB / 0.695 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.357e-05/2.145, allocations: 23.05 kB / 0.695 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/2.145, allocations: 19.56 kB / 0.695 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of SimCode: time 5.11e-07/2.145, allocations: 0 / 0.695 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.04359/2.189, allocations: 42.17 MB / 0.7362 GB, free: 206.1 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 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)