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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.5599/0.5599, allocations: 120.4 MB / 140.2 MB, free: 12.97 MB / 138.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.885e-06/2.885e-06, allocations: 0 / 218 MB, free: 8.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.619e-05/3.907e-05, allocations: 2.281 kB / 218 MB, free: 8.637 MB / 202.7 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss): time 1.015/1.015, allocations: 254.3 MB / 472.3 MB, free: 8.848 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.3863/1.401, allocations: 164.8 MB / 0.6221 GB, free: 11.25 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/1.401, allocations: 7.938 kB / 0.6221 GB, free: 11.24 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60: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 master/Fluid/BoundaryConditions/SinkP.mo:47:3-48: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 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 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.0001285/1.401, allocations: 47.52 kB / 0.6222 GB, free: 11.19 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0002742/1.402, allocations: 114.9 kB / 0.6223 GB, free: 11.08 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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 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.02506/1.427, allocations: 11.56 MB / 0.6336 GB, free: 15.51 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.0006213/1.427, allocations: 394.2 kB / 0.6339 GB, free: 15.13 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002593/1.428, allocations: 161 kB / 0.6341 GB, free: 14.98 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/1.428, allocations: 227.5 kB / 0.6343 GB, free: 14.75 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004181/1.428, allocations: 115.6 kB / 0.6344 GB, free: 14.64 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 3.672e-05/1.428, allocations: 36 kB / 0.6344 GB, free: 14.61 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03125/1.46, allocations: 18.65 MB / 0.6527 GB, free: 11.93 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/1.46, allocations: 83.67 kB / 0.6527 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.0001854/1.46, allocations: 123.7 kB / 0.6529 GB, free: 11.73 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.02479/1.485, allocations: 12.32 MB / 0.6649 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/1.485, allocations: 0 / 0.6649 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.214e-06/1.485, allocations: 0 / 0.6649 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 6.893e-06/1.485, allocations: 0 / 0.6649 GB, free: 15.38 MB / 0.6042 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.004756/1.489, allocations: 1.756 MB / 0.6666 GB, free: 13.58 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/1.49, allocations: 8.031 kB / 0.6666 GB, free: 13.57 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.298e-05/1.49, allocations: 47.72 kB / 0.6667 GB, free: 13.53 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/1.49, allocations: 255.9 kB / 0.6669 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/1.49, allocations: 25 kB / 0.6669 GB, free: 13.22 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.19e-05/1.49, allocations: 32 kB / 0.667 GB, free: 13.19 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/1.49, allocations: 352.9 kB / 0.6673 GB, free: 12.83 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/1.49, allocations: 0 / 0.6673 GB, free: 12.83 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.18e-05/1.49, allocations: 16 kB / 0.6673 GB, free: 12.81 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/1.49, allocations: 11.94 kB / 0.6673 GB, free: 12.8 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002847/1.491, allocations: 211 kB / 0.6675 GB, free: 12.59 MB / 0.6042 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.004919/1.496, allocations: 3.069 MB / 0.6705 GB, free: 9.469 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/1.496, allocations: 57.59 kB / 0.6706 GB, free: 9.406 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.575e-05/1.496, allocations: 16.8 kB / 0.6706 GB, free: 9.387 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0742/1.57, allocations: 44.12 MB / 0.7137 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/1.57, allocations: 31.62 kB / 0.7137 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=5): time 2.074e-06/1.57, allocations: 4.938 kB / 0.7137 GB, free: 13.19 MB / 0.6511 GB Notification: Performance of matching and sorting (n=5): time 0.0005775/1.571, allocations: 147.2 kB / 0.7138 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/1.571, allocations: 55.41 kB / 0.7139 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002897/1.571, allocations: 300.1 kB / 0.7142 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/1.571, allocations: 29.64 kB / 0.7142 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/1.571, allocations: 239.9 kB / 0.7144 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.38e-05/1.571, allocations: 19.89 kB / 0.7145 GB, free: 12.38 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.96e-05/1.571, allocations: 65.59 kB / 0.7145 GB, free: 12.31 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.907e-05/1.571, allocations: 326.8 kB / 0.7148 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.177e-05/1.571, allocations: 35.98 kB / 0.7149 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/1.571, allocations: 140.2 kB / 0.715 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/1.572, allocations: 183.8 kB / 0.7152 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/1.572, allocations: 3.938 kB / 0.7152 GB, free: 11.53 MB / 0.6511 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003614/1.572, allocations: 240.7 kB / 0.7154 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/1.572, allocations: 4 kB / 0.7154 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/1.572, allocations: 4.656 kB / 0.7154 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000528/1.573, allocations: 125.1 kB / 0.7155 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.985e-05/1.573, allocations: 31.98 kB / 0.7156 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003702/1.573, allocations: 0.564 MB / 0.7161 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/1.573, allocations: 29.81 kB / 0.7162 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/1.573, allocations: 12.06 kB / 0.7162 GB, free: 10.5 MB / 0.6511 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.0001662/1.573, allocations: 161.7 kB / 0.7163 GB, free: 10.33 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/1.573, allocations: 24.47 kB / 0.7163 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/1.574, allocations: 145.5 kB / 0.7165 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/1.574, allocations: 0 / 0.7165 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.574, allocations: 0 / 0.7165 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/1.574, allocations: 0 / 0.7165 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/1.574, allocations: 210.5 kB / 0.7167 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/1.574, allocations: 0 / 0.7167 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.661e-05/1.574, allocations: 1.969 kB / 0.7167 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000265/1.574, allocations: 64.8 kB / 0.7167 GB, free: 9.84 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/1.574, allocations: 4.875 kB / 0.7167 GB, free: 9.836 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002937/1.574, allocations: 0.5678 MB / 0.7173 GB, free: 9.242 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.574, allocations: 0 / 0.7173 GB, free: 9.242 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001676/1.575, allocations: 139.8 kB / 0.7174 GB, free: 9.086 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.042e-05/1.575, allocations: 39.84 kB / 0.7175 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/1.575, allocations: 0 / 0.7175 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.841e-05/1.575, allocations: 0 / 0.7175 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.166e-05/1.575, allocations: 7.922 kB / 0.7175 GB, free: 9.039 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/1.575, allocations: 7.938 kB / 0.7175 GB, free: 9.031 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001609/1.575, allocations: 211.1 kB / 0.7177 GB, free: 8.824 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7e-08/1.575, allocations: 0 / 0.7177 GB, free: 8.824 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00425/1.579, allocations: 1.461 MB / 0.7191 GB, free: 7.359 MB / 0.6511 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.005995/1.585, allocations: 2.404 MB / 0.7215 GB, free: 4.949 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004006/1.586, allocations: 95.83 kB / 0.7216 GB, free: 4.855 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/1.586, allocations: 0 / 0.7216 GB, free: 4.855 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.779e-05/1.586, allocations: 37.64 kB / 0.7216 GB, free: 4.82 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/1.586, allocations: 68.19 kB / 0.7217 GB, free: 4.758 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008822/1.587, allocations: 494.2 kB / 0.7221 GB, free: 4.242 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/1.587, allocations: 172.6 kB / 0.7223 GB, free: 4.055 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.673e-05/1.587, allocations: 24.5 kB / 0.7223 GB, free: 4.031 MB / 0.6511 GB Notification: Performance of SimCode: time 1.453e-06/1.587, allocations: 0 / 0.7223 GB, free: 4.031 MB / 0.6511 GB Notification: Performance of Templates: time 0.2135/1.8, allocations: 28.89 MB / 0.7505 GB, free: 288.9 MB / 0.6667 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestSingularPressureLoss.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.862312070094049] Failed to read output from testmodel.py, exit status != 0: 2.045075334608555 1.959484255 0.47232011799999996 Calling exit ...