Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.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.5211/0.5211, allocations: 111.6 MB / 132.2 MB, free: 4.949 MB / 122.7 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 177.3 MB, free: 8.973 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.375e-05/1.511e-05, allocations: 7.859 kB / 177.3 MB, free: 8.969 MB / 170.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.TestInvSingularPressureLoss): time 1.04/1.04, allocations: 257.1 MB / 434.4 MB, free: 264 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3244/1.365, allocations: 178.2 MB / 0.5983 GB, free: 3.77 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000204/1.365, allocations: 7.938 kB / 0.5983 GB, free: 3.762 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourcePQ.mo:44:3-45:78: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:32:3-33:80: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/InvSingularPressureLoss.mo:22:3-23:80: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/InvSingularPressureLoss.mo:24:3-25:78: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.00011/1.365, allocations: 47.52 kB / 0.5983 GB, free: 3.715 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002814/1.365, allocations: 114.9 kB / 0.5984 GB, free: 3.602 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Properties/WaterSteam/IF97_packages.mo:470:9-470: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:525:9-525: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:708:9-708: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:51:3-51: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:51:3-51: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:118:3-118:151: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:118:3-118:151: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:56:5-56:88: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.02189/1.387, allocations: 11.59 MB / 0.6097 GB, free: 7.984 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004488/1.388, allocations: 406.5 kB / 0.6101 GB, free: 7.586 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002314/1.388, allocations: 173.1 kB / 0.6103 GB, free: 7.414 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003125/1.388, allocations: 255.4 kB / 0.6105 GB, free: 7.164 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001281/1.388, allocations: 115.7 kB / 0.6106 GB, free: 7.051 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.313e-05/1.389, allocations: 36 kB / 0.6107 GB, free: 7.016 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02515/1.414, allocations: 18.65 MB / 0.6289 GB, free: 4.34 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001078/1.414, allocations: 87.67 kB / 0.629 GB, free: 4.254 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.000145/1.414, allocations: 131.7 kB / 0.6291 GB, free: 4.125 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01894/1.433, allocations: 12.21 MB / 0.641 GB, free: 7.887 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/1.433, allocations: 0 / 0.641 GB, free: 7.887 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.413e-06/1.433, allocations: 0 / 0.641 GB, free: 7.887 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.631e-06/1.433, allocations: 0 / 0.641 GB, free: 7.887 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 86 * Number of variables: 86 Notification: Performance of Generate backend data structure: time 0.0035/1.436, allocations: 1.875 MB / 0.6429 GB, free: 5.965 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/1.436, allocations: 15.98 kB / 0.6429 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.809e-05/1.436, allocations: 71.77 kB / 0.6429 GB, free: 5.879 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/1.437, allocations: 258.8 kB / 0.6432 GB, free: 5.598 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/1.437, allocations: 29 kB / 0.6432 GB, free: 5.57 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/1.437, allocations: 32 kB / 0.6432 GB, free: 5.539 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/1.437, allocations: 306.5 kB / 0.6435 GB, free: 5.203 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/1.437, allocations: 0 / 0.6435 GB, free: 5.203 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/1.437, allocations: 16 kB / 0.6436 GB, free: 5.188 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/1.437, allocations: 8 kB / 0.6436 GB, free: 5.18 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/1.437, allocations: 114.9 kB / 0.6437 GB, free: 5.07 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03358/1.471, allocations: 19.42 MB / 0.6626 GB, free: 1.582 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/1.471, allocations: 51.05 kB / 0.6627 GB, free: 1.52 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.005e-05/1.471, allocations: 16.31 kB / 0.6627 GB, free: 1.5 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3113/1.782, allocations: 58.5 MB / 0.7198 GB, free: 99.43 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/1.782, allocations: 33.39 kB / 0.7199 GB, free: 99.38 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.284e-06/1.782, allocations: 2.344 kB / 0.7199 GB, free: 99.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0002368/1.783, allocations: 81.28 kB / 0.7199 GB, free: 99.35 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.79e-05/1.783, allocations: 51.41 kB / 0.72 GB, free: 99.29 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/1.783, allocations: 348.7 kB / 0.7203 GB, free: 99.11 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 5.601e-06/1.783, allocations: 28.98 kB / 0.7203 GB, free: 99.08 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.849e-05/1.783, allocations: 286.2 kB / 0.7206 GB, free: 98.92 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.108e-05/1.783, allocations: 22.53 kB / 0.7206 GB, free: 98.91 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.544e-05/1.783, allocations: 70.08 kB / 0.7207 GB, free: 98.88 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.169e-05/1.783, allocations: 0.4998 MB / 0.7212 GB, free: 98.39 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.66e-05/1.783, allocations: 19.42 kB / 0.7212 GB, free: 98.39 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.406e-05/1.783, allocations: 159.8 kB / 0.7214 GB, free: 98.2 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/1.783, allocations: 213.1 kB / 0.7216 GB, free: 98 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.783, allocations: 0 / 0.7216 GB, free: 98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001785/1.783, allocations: 184.4 kB / 0.7217 GB, free: 97.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/1.783, allocations: 5.438 kB / 0.7217 GB, free: 97.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/1.783, allocations: 2.812 kB / 0.7218 GB, free: 97.96 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/1.783, allocations: 8.656 kB / 0.7218 GB, free: 97.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/1.784, allocations: 67.27 kB / 0.7218 GB, free: 97.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/1.784, allocations: 8.875 kB / 0.7218 GB, free: 97.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.407e-05/1.784, allocations: 26.66 kB / 0.7219 GB, free: 97.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/1.784, allocations: 7.406 kB / 0.7219 GB, free: 97.95 MB / 0.6198 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 (invSingularPressureLoss.C2.diff_on_1,sourcePQ.C.diff_on_2,sourcePQ.fluid1,invSingularPressureLoss.fluid,sinkQ.fluid,sourcePQ.C.ftype) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.912e-05/1.784, allocations: 180 kB / 0.722 GB, free: 97.79 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/1.784, allocations: 27.7 kB / 0.7221 GB, free: 97.78 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/1.784, allocations: 90.53 kB / 0.7221 GB, free: 97.73 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/1.784, allocations: 0 / 0.7221 GB, free: 97.73 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/1.784, allocations: 3.375 kB / 0.7222 GB, free: 97.73 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/1.784, allocations: 2.297 kB / 0.7222 GB, free: 97.73 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09475/1.879, allocations: 57.16 MB / 0.778 GB, free: 73.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/1.879, allocations: 9.188 kB / 0.778 GB, free: 73.44 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.743e-05/1.879, allocations: 7.719 kB / 0.778 GB, free: 73.44 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/1.879, allocations: 4 kB / 0.778 GB, free: 73.43 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/1.879, allocations: 0 / 0.778 GB, free: 73.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/1.879, allocations: 10.98 kB / 0.778 GB, free: 73.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/1.879, allocations: 0 / 0.778 GB, free: 73.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000102/1.879, allocations: 140.2 kB / 0.7781 GB, free: 73.26 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.767e-05/1.879, allocations: 46.58 kB / 0.7782 GB, free: 73.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/1.879, allocations: 0 / 0.7782 GB, free: 73.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.999e-05/1.879, allocations: 1.125 kB / 0.7782 GB, free: 73.23 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.637e-05/1.879, allocations: 4.938 kB / 0.7782 GB, free: 73.22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/1.879, allocations: 9.188 kB / 0.7782 GB, free: 73.21 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.764e-05/1.879, allocations: 213.6 kB / 0.7784 GB, free: 73.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7.1e-08/1.879, allocations: 0 / 0.7784 GB, free: 73.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002269/1.881, allocations: 1.456 MB / 0.7798 GB, free: 71.69 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003582/1.885, allocations: 2.511 MB / 0.7823 GB, free: 69.51 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001743/1.885, allocations: 81.02 kB / 0.7824 GB, free: 69.44 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.885, allocations: 0 / 0.7824 GB, free: 69.44 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.829e-05/1.885, allocations: 23.06 kB / 0.7824 GB, free: 69.42 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/1.886, allocations: 71.14 kB / 0.7824 GB, free: 69.37 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007229/1.886, allocations: 0.4972 MB / 0.7829 GB, free: 68.86 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.046e-05/1.886, allocations: 88.31 kB / 0.783 GB, free: 68.75 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 8.776e-05/1.886, allocations: 40.44 kB / 0.7831 GB, free: 68.71 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.374e-05/1.886, allocations: 117.2 kB / 0.7832 GB, free: 68.6 MB / 0.6198 GB Notification: Performance of SimCode: time 1.132e-06/1.886, allocations: 0 / 0.7832 GB, free: 68.6 MB / 0.6198 GB Notification: Performance of Templates: time 0.03983/1.926, allocations: 54.08 MB / 0.836 GB, free: 14.74 MB / 0.6198 GB " [Timeout remaining time 658] make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.makefile [Timeout 660] (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss -abortSlowSimulation -alarm=240 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestInvSingularPressureLoss.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.363102222792804]