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.5189/0.5189, allocations: 111.6 MB / 131.2 MB, free: 4.609 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 3.076e-06/3.076e-06, allocations: 0 / 176.2 MB, free: 9.172 MB / 170.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.806e-05, allocations: 6.312 kB / 176.2 MB, free: 9.164 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.07/1.07, allocations: 257.1 MB / 433.3 MB, free: 340 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3436/1.414, allocations: 181.6 MB / 0.6005 GB, free: 0.9453 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/1.414, allocations: 11.88 kB / 0.6005 GB, free: 0.9336 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.000116/1.414, allocations: 43.58 kB / 0.6005 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002766/1.414, allocations: 122.9 kB / 0.6006 GB, free: 0.7695 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.02181/1.436, allocations: 11.59 MB / 0.612 GB, free: 5.156 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.000436/1.437, allocations: 410.4 kB / 0.6123 GB, free: 4.754 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/1.437, allocations: 173.1 kB / 0.6125 GB, free: 4.582 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002947/1.437, allocations: 259.4 kB / 0.6128 GB, free: 4.328 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/1.437, allocations: 115.6 kB / 0.6129 GB, free: 4.215 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/1.437, allocations: 32 kB / 0.6129 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02486/1.462, allocations: 18.65 MB / 0.6311 GB, free: 1.508 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001121/1.462, allocations: 91.67 kB / 0.6312 GB, free: 1.418 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/1.462, allocations: 123.7 kB / 0.6313 GB, free: 1.297 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0193/1.482, allocations: 12.21 MB / 0.6432 GB, free: 5.059 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/1.482, allocations: 0 / 0.6432 GB, free: 5.059 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.603e-06/1.482, allocations: 0 / 0.6432 GB, free: 5.059 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.366e-06/1.482, allocations: 4 kB / 0.6432 GB, free: 5.055 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.003502/1.485, allocations: 1.875 MB / 0.6451 GB, free: 3.133 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/1.485, allocations: 11.98 kB / 0.6451 GB, free: 3.121 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/1.485, allocations: 68.45 kB / 0.6452 GB, free: 3.055 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002904/1.486, allocations: 262.8 kB / 0.6454 GB, free: 2.77 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/1.486, allocations: 33 kB / 0.6454 GB, free: 2.738 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/1.486, allocations: 32 kB / 0.6455 GB, free: 2.707 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003883/1.486, allocations: 322.6 kB / 0.6458 GB, free: 2.355 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/1.486, allocations: 3.938 kB / 0.6458 GB, free: 2.352 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/1.486, allocations: 12 kB / 0.6458 GB, free: 2.34 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/1.486, allocations: 8 kB / 0.6458 GB, free: 2.332 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/1.486, allocations: 144.3 kB / 0.6459 GB, free: 2.191 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03731/1.524, allocations: 22.31 MB / 0.6677 GB, free: 11.8 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/1.524, allocations: 47.05 kB / 0.6678 GB, free: 11.75 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.06e-05/1.524, allocations: 27.69 kB / 0.6678 GB, free: 11.71 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.334/1.858, allocations: 67.37 MB / 0.7336 GB, free: 95.87 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/1.858, allocations: 33.39 kB / 0.7336 GB, free: 95.82 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=5): time 1.903e-06/1.858, allocations: 0 / 0.7336 GB, free: 95.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=5): time 0.0002804/1.858, allocations: 89.47 kB / 0.7337 GB, free: 95.79 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.057e-05/1.858, allocations: 60.78 kB / 0.7338 GB, free: 95.73 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000227/1.858, allocations: 340.5 kB / 0.7341 GB, free: 95.55 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/1.858, allocations: 25.7 kB / 0.7341 GB, free: 95.52 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.895e-05/1.858, allocations: 285.5 kB / 0.7344 GB, free: 95.36 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/1.858, allocations: 21.09 kB / 0.7344 GB, free: 95.35 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-05/1.859, allocations: 66.41 kB / 0.7345 GB, free: 95.32 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.924e-05/1.859, allocations: 0.5057 MB / 0.735 GB, free: 94.83 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.573e-05/1.859, allocations: 19.27 kB / 0.735 GB, free: 94.83 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.373e-05/1.859, allocations: 168.9 kB / 0.7351 GB, free: 94.64 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/1.859, allocations: 203.3 kB / 0.7353 GB, free: 94.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.859, allocations: 3 kB / 0.7353 GB, free: 94.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000207/1.859, allocations: 199.8 kB / 0.7355 GB, free: 94.4 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/1.859, allocations: 8.875 kB / 0.7355 GB, free: 94.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/1.859, allocations: 7.703 kB / 0.7355 GB, free: 94.4 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/1.859, allocations: 2.656 kB / 0.7355 GB, free: 94.4 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/1.859, allocations: 69.47 kB / 0.7356 GB, free: 94.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/1.859, allocations: 6.547 kB / 0.7356 GB, free: 94.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.834e-05/1.859, allocations: 23.75 kB / 0.7356 GB, free: 94.39 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/1.859, allocations: 13.62 kB / 0.7356 GB, free: 94.39 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 8.128e-05/1.86, allocations: 177.2 kB / 0.7358 GB, free: 94.23 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.911e-05/1.86, allocations: 27.17 kB / 0.7358 GB, free: 94.22 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001696/1.86, allocations: 97.78 kB / 0.7359 GB, free: 94.16 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/1.86, allocations: 1.844 kB / 0.7359 GB, free: 94.16 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/1.86, allocations: 0.5625 kB / 0.7359 GB, free: 94.16 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/1.86, allocations: 4.938 kB / 0.7359 GB, free: 94.16 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09918/1.959, allocations: 66.02 MB / 0.8004 GB, free: 50.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/1.959, allocations: 4 kB / 0.8004 GB, free: 50.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.987e-05/1.959, allocations: 8 kB / 0.8004 GB, free: 50.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/1.959, allocations: 7.984 kB / 0.8004 GB, free: 50.29 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/1.959, allocations: 0 / 0.8004 GB, free: 50.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/1.959, allocations: 7.094 kB / 0.8004 GB, free: 50.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/1.959, allocations: 1.25 kB / 0.8004 GB, free: 50.28 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/1.959, allocations: 142.7 kB / 0.8006 GB, free: 50.12 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.863e-05/1.959, allocations: 39.67 kB / 0.8006 GB, free: 50.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/1.959, allocations: 7.125 kB / 0.8006 GB, free: 50.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.755e-05/1.959, allocations: 4 kB / 0.8006 GB, free: 50.08 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/1.959, allocations: 8.672 kB / 0.8006 GB, free: 50.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-06/1.959, allocations: 4 kB / 0.8006 GB, free: 50.07 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.476e-05/1.959, allocations: 220 kB / 0.8009 GB, free: 49.88 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8e-08/1.959, allocations: 0 / 0.8009 GB, free: 49.88 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.00231/1.962, allocations: 1.47 MB / 0.8023 GB, free: 48.51 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.004239/1.966, allocations: 2.405 MB / 0.8046 GB, free: 46.43 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002242/1.966, allocations: 84.89 kB / 0.8047 GB, free: 46.36 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.966, allocations: 1.094 kB / 0.8047 GB, free: 46.36 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 2.225e-05/1.966, allocations: 30.17 kB / 0.8047 GB, free: 46.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/1.966, allocations: 64.42 kB / 0.8048 GB, free: 46.29 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00085/1.967, allocations: 0.4948 MB / 0.8053 GB, free: 45.78 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.442e-05/1.967, allocations: 84.31 kB / 0.8054 GB, free: 45.68 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.235e-05/1.967, allocations: 43.31 kB / 0.8054 GB, free: 45.63 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.569e-05/1.967, allocations: 20.5 kB / 0.8054 GB, free: 45.61 MB / 0.6198 GB Notification: Performance of SimCode: time 1.202e-06/1.967, allocations: 0 / 0.8054 GB, free: 45.61 MB / 0.6198 GB Notification: Performance of Templates: time 0.04546/2.013, allocations: 57.62 MB / 0.8617 GB, free: 4.195 MB / 0.6355 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.168641310185194]