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.4861/0.4861, allocations: 111.6 MB / 131.7 MB, free: 5.066 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 2.945e-06/2.945e-06, allocations: 4 kB / 176.5 MB, free: 9.422 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.921e-05/2.215e-05, allocations: 5.703 kB / 176.5 MB, free: 9.418 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.036/1.036, allocations: 257 MB / 433.5 MB, free: 356 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3478/1.384, allocations: 181.2 MB / 0.6003 GB, free: 1.273 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002209/1.384, allocations: 11.88 kB / 0.6003 GB, free: 1.262 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.0001086/1.384, allocations: 39.59 kB / 0.6004 GB, free: 1.223 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002816/1.385, allocations: 134.8 kB / 0.6005 GB, free: 1.09 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.02139/1.406, allocations: 11.58 MB / 0.6118 GB, free: 5.488 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0004373/1.406, allocations: 406.4 kB / 0.6122 GB, free: 5.09 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002234/1.407, allocations: 165.2 kB / 0.6124 GB, free: 4.926 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/1.407, allocations: 251.4 kB / 0.6126 GB, free: 4.68 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/1.407, allocations: 123.6 kB / 0.6127 GB, free: 4.559 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/1.407, allocations: 32 kB / 0.6127 GB, free: 4.527 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02356/1.431, allocations: 18.65 MB / 0.631 GB, free: 1.848 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001173/1.431, allocations: 83.69 kB / 0.631 GB, free: 1.766 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001572/1.431, allocations: 131.6 kB / 0.6312 GB, free: 1.637 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.02017/1.451, allocations: 12.21 MB / 0.6431 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/1.451, allocations: 0 / 0.6431 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.294e-06/1.451, allocations: 0 / 0.6431 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.905e-06/1.451, allocations: 4 kB / 0.6431 GB, free: 5.395 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.003496/1.455, allocations: 1.863 MB / 0.6449 GB, free: 3.484 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.214e-05/1.455, allocations: 15.98 kB / 0.6449 GB, free: 3.469 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/1.455, allocations: 76.44 kB / 0.645 GB, free: 3.395 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/1.455, allocations: 266.7 kB / 0.6453 GB, free: 3.105 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.151e-05/1.455, allocations: 25 kB / 0.6453 GB, free: 3.082 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.208e-05/1.455, allocations: 32 kB / 0.6453 GB, free: 3.051 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/1.455, allocations: 318.7 kB / 0.6456 GB, free: 2.703 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/1.455, allocations: 3.938 kB / 0.6456 GB, free: 2.699 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.223e-05/1.456, allocations: 16 kB / 0.6456 GB, free: 2.684 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/1.456, allocations: 8 kB / 0.6456 GB, free: 2.676 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/1.456, allocations: 147.7 kB / 0.6458 GB, free: 2.531 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03629/1.492, allocations: 22.31 MB / 0.6676 GB, free: 12.14 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001339/1.492, allocations: 55.97 kB / 0.6676 GB, free: 12.07 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.981e-05/1.492, allocations: 15.72 kB / 0.6676 GB, free: 12.05 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2391/1.731, allocations: 67.35 MB / 0.7334 GB, free: 281 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/1.731, allocations: 37.38 kB / 0.7334 GB, free: 281 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 2.344e-06/1.731, allocations: 0.5469 kB / 0.7334 GB, free: 281 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0002718/1.732, allocations: 87.83 kB / 0.7335 GB, free: 280.9 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.151e-05/1.732, allocations: 55.41 kB / 0.7336 GB, free: 280.8 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/1.732, allocations: 338.7 kB / 0.7339 GB, free: 280.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.083e-06/1.732, allocations: 25.7 kB / 0.7339 GB, free: 280.5 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.093e-05/1.732, allocations: 292.4 kB / 0.7342 GB, free: 280.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.988e-06/1.732, allocations: 18.25 kB / 0.7342 GB, free: 280.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.572e-05/1.732, allocations: 67.3 kB / 0.7343 GB, free: 280.1 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.837e-05/1.732, allocations: 0.5001 MB / 0.7348 GB, free: 279.6 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.546e-05/1.732, allocations: 21.17 kB / 0.7348 GB, free: 279.6 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.996e-05/1.732, allocations: 165.4 kB / 0.735 GB, free: 279.4 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/1.732, allocations: 213.8 kB / 0.7352 GB, free: 279.1 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.732, allocations: 0 / 0.7352 GB, free: 279.1 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0001921/1.732, allocations: 198.2 kB / 0.7354 GB, free: 278.9 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/1.733, allocations: 8 kB / 0.7354 GB, free: 278.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/1.733, allocations: 0 / 0.7354 GB, free: 278.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/1.733, allocations: 8.984 kB / 0.7354 GB, free: 278.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003052/1.733, allocations: 88.33 kB / 0.7355 GB, free: 278.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/1.733, allocations: 9.484 kB / 0.7355 GB, free: 278.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.195e-05/1.733, allocations: 28.56 kB / 0.7355 GB, free: 278.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/1.733, allocations: 12 kB / 0.7355 GB, free: 278.8 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 (sourcePQ.C.ftype,sinkQ.fluid,invSingularPressureLoss.fluid,sourcePQ.fluid1,sourcePQ.C.diff_on_2,invSingularPressureLoss.C2.diff_on_1) * 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.96e-05/1.733, allocations: 174.5 kB / 0.7357 GB, free: 278.6 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.77e-05/1.733, allocations: 27.81 kB / 0.7357 GB, free: 278.6 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/1.733, allocations: 104.5 kB / 0.7358 GB, free: 278.5 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/1.733, allocations: 0 / 0.7358 GB, free: 278.5 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/1.733, allocations: 1.438 kB / 0.7358 GB, free: 278.5 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/1.733, allocations: 3.984 kB / 0.7358 GB, free: 278.5 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09964/1.833, allocations: 66.01 MB / 0.8003 GB, free: 212.6 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/1.833, allocations: 128 / 0.8003 GB, free: 212.6 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.311e-05/1.833, allocations: 23.44 kB / 0.8003 GB, free: 212.6 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/1.833, allocations: 0 / 0.8003 GB, free: 212.6 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/1.833, allocations: 4 kB / 0.8003 GB, free: 212.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/1.833, allocations: 0.625 kB / 0.8003 GB, free: 212.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.833, allocations: 0 / 0.8003 GB, free: 212.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/1.833, allocations: 151.5 kB / 0.8004 GB, free: 212.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/1.833, allocations: 35.78 kB / 0.8005 GB, free: 212.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/1.833, allocations: 8 kB / 0.8005 GB, free: 212.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.96e-05/1.833, allocations: 0.5625 kB / 0.8005 GB, free: 212.4 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.536e-05/1.833, allocations: 12.55 kB / 0.8005 GB, free: 212.4 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/1.833, allocations: 4 kB / 0.8005 GB, free: 212.3 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.91e-05/1.833, allocations: 222.9 kB / 0.8007 GB, free: 212.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/1.833, allocations: 0 / 0.8007 GB, free: 212.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002383/1.836, allocations: 1.465 MB / 0.8021 GB, free: 210.7 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.004392/1.84, allocations: 2.411 MB / 0.8045 GB, free: 208.6 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002305/1.84, allocations: 88.58 kB / 0.8046 GB, free: 208.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.84, allocations: 0 / 0.8046 GB, free: 208.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 2.6e-05/1.84, allocations: 20.56 kB / 0.8046 GB, free: 208.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/1.841, allocations: 72.03 kB / 0.8047 GB, free: 208.4 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009048/1.842, allocations: 0.4924 MB / 0.8051 GB, free: 207.8 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.76e-05/1.842, allocations: 96.23 kB / 0.8052 GB, free: 207.7 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.729e-05/1.842, allocations: 35.45 kB / 0.8053 GB, free: 207.7 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.747e-05/1.842, allocations: 24.48 kB / 0.8053 GB, free: 207.7 MB / 0.6198 GB Notification: Performance of SimCode: time 1.272e-06/1.842, allocations: 0 / 0.8053 GB, free: 207.7 MB / 0.6198 GB Notification: Performance of Templates: time 0.03526/1.877, allocations: 46.1 MB / 0.8503 GB, free: 161.8 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: 5.377857907908037]