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.8283/0.8283, allocations: 150.9 MB / 167.1 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003582, allocations: 19.95 kB / 205.9 MB, free: 9.035 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1337, allocations: 31.32 MB / 237.3 MB, free: 5.75 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.617/1.751, allocations: 294.5 MB / 0.5193 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03898/1.79, allocations: 34.43 MB / 0.5529 GB, free: 10.99 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/1.79, allocations: 4 kB / 0.5529 GB, free: 10.99 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.0003562/1.79, allocations: 95.44 kB / 0.553 GB, free: 10.89 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001964/1.79, allocations: 99.17 kB / 0.5531 GB, free: 10.8 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.0232/1.814, allocations: 9.569 MB / 0.5624 GB, free: 1.223 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005027/1.814, allocations: 330.5 kB / 0.5627 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/1.814, allocations: 101.8 kB / 0.5628 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/1.814, allocations: 139.4 kB / 0.563 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/1.815, allocations: 111.4 kB / 0.5631 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.568e-05/1.815, allocations: 16 kB / 0.5631 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02867/1.843, allocations: 17.89 MB / 0.5806 GB, free: 14.62 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.107e-05/1.843, allocations: 39.86 kB / 0.5806 GB, free: 14.59 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001687/1.844, allocations: 131.3 kB / 0.5807 GB, free: 14.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01674/1.86, allocations: 8.398 MB / 0.5889 GB, free: 6.039 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/1.86, allocations: 0 / 0.5889 GB, free: 6.039 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.402e-06/1.86, allocations: 0 / 0.5889 GB, free: 6.039 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/1.86, allocations: 0 / 0.5889 GB, free: 6.039 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.003414/1.864, allocations: 1.419 MB / 0.5903 GB, free: 4.57 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/1.864, allocations: 12.03 kB / 0.5903 GB, free: 4.559 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.979e-05/1.864, allocations: 39.55 kB / 0.5904 GB, free: 4.52 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/1.864, allocations: 222.6 kB / 0.5906 GB, free: 4.262 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/1.864, allocations: 12.44 kB / 0.5906 GB, free: 4.25 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.737e-05/1.864, allocations: 23.94 kB / 0.5906 GB, free: 4.227 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004057/1.865, allocations: 290.7 kB / 0.5909 GB, free: 3.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/1.865, allocations: 6.797 kB / 0.5909 GB, free: 3.906 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/1.865, allocations: 8 kB / 0.5909 GB, free: 3.898 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.301e-05/1.865, allocations: 8 kB / 0.5909 GB, free: 3.891 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/1.865, allocations: 164.4 kB / 0.5911 GB, free: 3.73 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.03737/1.902, allocations: 18.1 MB / 0.6087 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003232/1.903, allocations: 126.5 kB / 0.6088 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.426e-05/1.903, allocations: 84.95 kB / 0.6089 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1545/2.057, allocations: 77.73 MB / 0.6848 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/2.057, allocations: 30.56 kB / 0.6849 GB, free: 9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 3.546e-06/2.057, allocations: 1.734 kB / 0.6849 GB, free: 9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=32): time 0.0008276/2.058, allocations: 399.2 kB / 0.6852 GB, free: 8.582 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.034e-05/2.058, allocations: 55.41 kB / 0.6853 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/2.058, allocations: 211.8 kB / 0.6855 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/2.058, allocations: 25.7 kB / 0.6855 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.932e-05/2.059, allocations: 144.5 kB / 0.6857 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/2.059, allocations: 102.4 kB / 0.6858 GB, free: 8.023 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/2.059, allocations: 57.59 kB / 0.6858 GB, free: 7.961 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001243/2.059, allocations: 342.8 kB / 0.6861 GB, free: 7.617 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.619e-05/2.059, allocations: 64.25 kB / 0.6862 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/2.059, allocations: 115.2 kB / 0.6863 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/2.059, allocations: 209.5 kB / 0.6865 GB, free: 7.211 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/2.059, allocations: 4 kB / 0.6865 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000384/2.06, allocations: 265.9 kB / 0.6868 GB, free: 6.938 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/2.06, allocations: 8 kB / 0.6868 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/2.06, allocations: 0 / 0.6868 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008321/2.061, allocations: 144.8 kB / 0.6869 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.084e-05/2.061, allocations: 15.94 kB / 0.6869 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000499/2.061, allocations: 0.6131 MB / 0.6875 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/2.061, allocations: 27.59 kB / 0.6876 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/2.061, allocations: 4 kB / 0.6876 GB, free: 6.102 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.0001184/2.061, allocations: 138.1 kB / 0.6877 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/2.061, allocations: 23.72 kB / 0.6877 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006823/2.062, allocations: 0.5603 MB / 0.6883 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003219/2.063, allocations: 203.7 kB / 0.6885 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/2.063, allocations: 4 kB / 0.6885 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/2.063, allocations: 0 / 0.6885 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007865/2.063, allocations: 0.6826 MB / 0.6891 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/2.063, allocations: 96 / 0.6891 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.697e-05/2.063, allocations: 23.88 kB / 0.6891 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003511/2.064, allocations: 106.3 kB / 0.6892 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/2.064, allocations: 8 kB / 0.6893 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004447/2.064, allocations: 0.6382 MB / 0.6899 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/2.064, allocations: 0 / 0.6899 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003069/2.065, allocations: 304 kB / 0.6902 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.515e-05/2.065, allocations: 100.9 kB / 0.6903 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/2.065, allocations: 11.84 kB / 0.6903 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.972e-05/2.065, allocations: 4 kB / 0.6903 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/2.065, allocations: 7.984 kB / 0.6903 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/2.065, allocations: 4 kB / 0.6903 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002301/2.065, allocations: 234 kB / 0.6905 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/2.065, allocations: 0 / 0.6905 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002796/2.068, allocations: 1.183 MB / 0.6917 GB, free: 1.684 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.1578/2.226, allocations: 1.734 MB / 0.6934 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000683/2.226, allocations: 218.7 kB / 0.6936 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/2.226, allocations: 0 / 0.6936 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002106/2.227, allocations: 86.86 kB / 0.6937 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007508/2.227, allocations: 119 kB / 0.6938 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000759/2.228, allocations: 484.1 kB / 0.6942 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001799/2.228, allocations: 0.7635 MB / 0.695 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.177e-05/2.228, allocations: 22.34 kB / 0.695 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.497e-05/2.229, allocations: 18.78 kB / 0.695 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of SimCode: time 5.11e-07/2.229, allocations: 0.5 kB / 0.695 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.04753/2.276, allocations: 42.17 MB / 0.7362 GB, free: 205.9 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 cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)