Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7906/0.7906, allocations: 150.9 MB / 166.1 MB, free: 14.6 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000336/0.000336, allocations: 11.98 kB / 204.2 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1651, allocations: 31.32 MB / 235.5 MB, free: 5.445 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.Fluid.Examples.SimpleExamples.TestSingularPressureLoss): time 1.536/1.701, allocations: 293.6 MB / 0.5167 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1758/1.877, allocations: 185.4 MB / 0.6978 GB, free: 3.891 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002399/1.878, allocations: 7.938 kB / 0.6978 GB, free: 3.883 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SingularPressureLoss.mo:27:3-28:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/SingularPressureLoss.mo:29:3-30:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0001351/1.878, allocations: 27.77 kB / 0.6978 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002794/1.878, allocations: 103.2 kB / 0.6979 GB, free: 3.754 MB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.3147/2.193, allocations: 9.956 MB / 0.7076 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004687/2.193, allocations: 370 kB / 0.708 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/2.193, allocations: 192.7 kB / 0.7082 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/2.194, allocations: 144.1 kB / 0.7083 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/2.194, allocations: 161.9 kB / 0.7085 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/2.194, allocations: 31.72 kB / 0.7085 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02626/2.22, allocations: 19.82 MB / 0.7278 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001059/2.22, allocations: 71.55 kB / 0.7279 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000227/2.22, allocations: 183.1 kB / 0.7281 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01904/2.239, allocations: 9.846 MB / 0.7377 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/2.239, allocations: 0.875 kB / 0.7377 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.545e-06/2.239, allocations: 2.594 kB / 0.7377 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.963e-06/2.239, allocations: 2.141 kB / 0.7377 GB, free: 3.848 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.004471/2.244, allocations: 1.731 MB / 0.7394 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/2.244, allocations: 8.5 kB / 0.7394 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.081e-05/2.244, allocations: 48.48 kB / 0.7394 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/2.244, allocations: 282.2 kB / 0.7397 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/2.244, allocations: 26.94 kB / 0.7397 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.656e-05/2.244, allocations: 37.05 kB / 0.7398 GB, free: 2.441 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004653/2.245, allocations: 346.2 kB / 0.7401 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/2.245, allocations: 0 / 0.7401 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/2.245, allocations: 17.66 kB / 0.7401 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/2.245, allocations: 8.5 kB / 0.7401 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/2.245, allocations: 210.8 kB / 0.7403 GB, free: 2.277 MB / 0.5762 GB 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.007398/2.253, allocations: 6.094 MB / 0.7463 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001119/2.253, allocations: 57.78 kB / 0.7463 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.584e-05/2.253, allocations: 18.98 kB / 0.7464 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1391/2.392, allocations: 70.91 MB / 0.8156 GB, free: 9.438 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/2.392, allocations: 30.56 kB / 0.8156 GB, free: 9.398 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=5): time 1.803e-06/2.392, allocations: 0 / 0.8156 GB, free: 9.398 MB / 0.6544 GB Notification: Performance of matching and sorting (n=5): time 0.0006119/2.393, allocations: 227.2 kB / 0.8158 GB, free: 9.172 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/2.393, allocations: 55.41 kB / 0.8159 GB, free: 9.105 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/2.393, allocations: 271.4 kB / 0.8162 GB, free: 8.879 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/2.393, allocations: 30.61 kB / 0.8162 GB, free: 8.848 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/2.393, allocations: 228 kB / 0.8164 GB, free: 8.656 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/2.393, allocations: 23.23 kB / 0.8164 GB, free: 8.637 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.839e-05/2.393, allocations: 51.61 kB / 0.8165 GB, free: 8.594 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 8.959e-05/2.393, allocations: 335 kB / 0.8168 GB, free: 8.27 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.302e-05/2.393, allocations: 38.66 kB / 0.8168 GB, free: 8.242 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/2.394, allocations: 146.8 kB / 0.817 GB, free: 8.07 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/2.394, allocations: 183.5 kB / 0.8171 GB, free: 7.891 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/2.394, allocations: 1.094 kB / 0.8171 GB, free: 7.891 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004057/2.394, allocations: 251.2 kB / 0.8174 GB, free: 7.699 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/2.394, allocations: 4 kB / 0.8174 GB, free: 7.695 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/2.394, allocations: 4 kB / 0.8174 GB, free: 7.691 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008261/2.395, allocations: 125.9 kB / 0.8175 GB, free: 7.578 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/2.395, allocations: 34.89 kB / 0.8176 GB, free: 7.547 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003509/2.395, allocations: 0.5605 MB / 0.8181 GB, free: 6.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/2.396, allocations: 34.95 kB / 0.8181 GB, free: 6.949 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/2.396, allocations: 8 kB / 0.8181 GB, free: 6.941 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (singularPressureLoss.fluid,SourceP1.C.ftype,PuitsP1.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,singularPressureLoss.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001096/2.396, allocations: 145.9 kB / 0.8183 GB, free: 6.812 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/2.396, allocations: 24.95 kB / 0.8183 GB, free: 6.789 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003131/2.396, allocations: 135.9 kB / 0.8184 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/2.396, allocations: 7.984 kB / 0.8184 GB, free: 6.66 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/2.396, allocations: 0 / 0.8184 GB, free: 6.66 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/2.396, allocations: 0 / 0.8184 GB, free: 6.66 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/2.396, allocations: 290.2 kB / 0.8187 GB, free: 6.375 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/2.396, allocations: 7.938 kB / 0.8187 GB, free: 6.367 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.183e-05/2.396, allocations: 0 / 0.8187 GB, free: 6.367 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003903/2.397, allocations: 79.17 kB / 0.8188 GB, free: 6.297 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/2.397, allocations: 0 / 0.8188 GB, free: 6.297 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003371/2.397, allocations: 0.5642 MB / 0.8193 GB, free: 5.727 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/2.397, allocations: 1.203 kB / 0.8194 GB, free: 5.727 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/2.397, allocations: 130.2 kB / 0.8195 GB, free: 5.598 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.564e-05/2.398, allocations: 100.2 kB / 0.8196 GB, free: 5.484 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.307e-05/2.398, allocations: 7.844 kB / 0.8196 GB, free: 5.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.017e-05/2.398, allocations: 4.062 kB / 0.8196 GB, free: 5.477 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.822e-05/2.398, allocations: 7.422 kB / 0.8196 GB, free: 5.473 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/2.398, allocations: 7.938 kB / 0.8196 GB, free: 5.465 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001731/2.398, allocations: 196.9 kB / 0.8198 GB, free: 5.309 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/2.398, allocations: 0 / 0.8198 GB, free: 5.309 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.003575/2.401, allocations: 1.437 MB / 0.8212 GB, free: 3.973 MB / 0.6544 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 (2): * Single equations (assignments): 1 * 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.006329/2.408, allocations: 2.276 MB / 0.8234 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003968/2.408, allocations: 109.5 kB / 0.8235 GB, free: 1.957 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/2.408, allocations: 5.156 kB / 0.8235 GB, free: 1.953 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.337e-05/2.408, allocations: 26.77 kB / 0.8235 GB, free: 1.934 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/2.409, allocations: 65.72 kB / 0.8236 GB, free: 1.887 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007652/2.409, allocations: 0.521 MB / 0.8241 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/2.41, allocations: 0.7607 MB / 0.8249 GB, free: 0.582 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001213/2.41, allocations: 38.22 kB / 0.8249 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/2.41, allocations: 26.56 kB / 0.8249 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of SimCode: time 2.51e-07/2.41, allocations: 0 / 0.8249 GB, free: 0.5195 MB / 0.6544 GB Notification: Performance of Templates: time 0.05231/2.462, allocations: 45.78 MB / 0.8696 GB, free: 2.863 MB / 0.7012 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.pipe 2>&1)