Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8341/0.8341, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003083/0.0003083, allocations: 14.75 kB / 237 MB, free: 1.844 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04991/0.05024, allocations: 31.35 MB / 268.4 MB, free: 7.121 MB / 222.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.Book.SimpleExamples.PressureLoss.TestBend): time 1.63/1.68, allocations: 294.8 MB / 0.55 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5174/2.197, allocations: 190.5 MB / 0.736 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004207/2.198, allocations: 10.16 kB / 0.7361 GB, free: 1.801 MB / 0.5919 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/Bend.mo:57:3-58: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/Bend.mo:59:3-60:67: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.0003776/2.198, allocations: 208.2 kB / 0.7363 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004457/2.199, allocations: 277.5 kB / 0.7365 GB, free: 1.801 MB / 0.5919 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.03417/2.233, allocations: 12.29 MB / 0.7485 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0009555/2.234, allocations: 0.529 MB / 0.749 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003371/2.234, allocations: 275.6 kB / 0.7493 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002628/2.234, allocations: 255.2 kB / 0.7495 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00031/2.235, allocations: 354.2 kB / 0.7499 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5e-05/2.235, allocations: 40.97 kB / 0.7499 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03562/2.27, allocations: 21.09 MB / 0.7705 GB, free: 20 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003567/2.271, allocations: 207.7 kB / 0.7707 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004809/2.271, allocations: 331.8 kB / 0.771 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02539/2.297, allocations: 10.76 MB / 0.7815 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/2.297, allocations: 0.9375 kB / 0.7815 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.723e-06/2.297, allocations: 2.625 kB / 0.7815 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.09e-05/2.297, allocations: 0 / 0.7815 GB, free: 12.13 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.00553/2.302, allocations: 2.229 MB / 0.7837 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/2.302, allocations: 8.656 kB / 0.7837 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/2.303, allocations: 89.44 kB / 0.7838 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006409/2.303, allocations: 0.5506 MB / 0.7843 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/2.303, allocations: 36.38 kB / 0.7844 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/2.303, allocations: 37.25 kB / 0.7844 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006369/2.304, allocations: 493.6 kB / 0.7849 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/2.304, allocations: 2.406 kB / 0.7849 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/2.304, allocations: 14.55 kB / 0.7849 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/2.304, allocations: 11.53 kB / 0.7849 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005072/2.305, allocations: 419.5 kB / 0.7853 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009658/2.314, allocations: 6.676 MB / 0.7918 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005256/2.315, allocations: 123.8 kB / 0.7919 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.698e-05/2.315, allocations: 45.73 kB / 0.792 GB, free: 4.746 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3227/2.638, allocations: 155.6 MB / 0.944 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/2.638, allocations: 36.88 kB / 0.944 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.335e-06/2.638, allocations: 0 / 0.944 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002219/2.64, allocations: 472.9 kB / 0.9445 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/2.64, allocations: 102.8 kB / 0.9446 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/2.641, allocations: 1.067 MB / 0.9456 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/2.641, allocations: 29.7 kB / 0.9456 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000289/2.642, allocations: 391 kB / 0.946 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/2.642, allocations: 43.45 kB / 0.9461 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/2.642, allocations: 69.59 kB / 0.9461 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001648/2.642, allocations: 382.8 kB / 0.9465 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/2.642, allocations: 129.6 kB / 0.9466 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002664/2.642, allocations: 260.1 kB / 0.9469 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003825/2.643, allocations: 333 kB / 0.9472 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/2.643, allocations: 1.094 kB / 0.9472 GB, free: 7.434 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001357/2.644, allocations: 0.5582 MB / 0.9477 GB, free: 6.891 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/2.644, allocations: 11.94 kB / 0.9477 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/2.644, allocations: 4 kB / 0.9477 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/2.646, allocations: 194.5 kB / 0.9479 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/2.646, allocations: 50.27 kB / 0.948 GB, free: 6.645 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005546/2.646, allocations: 0.6273 MB / 0.9486 GB, free: 5.996 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/2.647, allocations: 47.59 kB / 0.9486 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/2.647, allocations: 23.98 kB / 0.9487 GB, free: 5.926 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,SinkP1.fluid,Bend.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Bend.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002822/2.647, allocations: 261.8 kB / 0.9489 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.026e-05/2.647, allocations: 64.33 kB / 0.949 GB, free: 5.602 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006893/2.648, allocations: 261.3 kB / 0.9492 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/2.648, allocations: 4.391 kB / 0.9492 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/2.648, allocations: 0 / 0.9492 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/2.648, allocations: 0 / 0.9492 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/2.65, allocations: 0.8472 MB / 0.95 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/2.65, allocations: 3.984 kB / 0.9501 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.191e-05/2.65, allocations: 4 kB / 0.9501 GB, free: 4.441 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/2.651, allocations: 162.5 kB / 0.9502 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.279e-05/2.651, allocations: 4 kB / 0.9502 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005246/2.651, allocations: 0.6336 MB / 0.9508 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/2.651, allocations: 192 / 0.9508 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/2.653, allocations: 413.7 kB / 0.9512 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/2.653, allocations: 176.2 kB / 0.9514 GB, free: 3.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.255e-05/2.653, allocations: 2.641 kB / 0.9514 GB, free: 3.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/2.653, allocations: 7.984 kB / 0.9514 GB, free: 3.012 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.237e-05/2.653, allocations: 11.98 kB / 0.9514 GB, free: 3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/2.653, allocations: 8 kB / 0.9514 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009154/2.654, allocations: 0.7802 MB / 0.9522 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/2.654, allocations: 0 / 0.9522 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004026/2.658, allocations: 1.643 MB / 0.9538 GB, free: 0.5703 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 2 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006539/2.665, allocations: 2.485 MB / 0.9562 GB, free: 14.39 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005956/2.665, allocations: 247.6 kB / 0.9565 GB, free: 14.16 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/2.665, allocations: 0 / 0.9565 GB, free: 14.16 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00018/2.666, allocations: 54.09 kB / 0.9565 GB, free: 14.11 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006259/2.666, allocations: 99.88 kB / 0.9566 GB, free: 14.02 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/2.668, allocations: 1.051 MB / 0.9576 GB, free: 12.94 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/2.668, allocations: 0.9284 MB / 0.9585 GB, free: 11.99 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001834/2.669, allocations: 76.36 kB / 0.9586 GB, free: 11.91 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.975e-05/2.669, allocations: 36.64 kB / 0.9586 GB, free: 11.88 MB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/2.669, allocations: 0 / 0.9586 GB, free: 11.88 MB / 0.795 GB Notification: Performance of Templates: time 0.06589/2.735, allocations: 51.52 MB / 1.009 GB, free: 8.418 MB / 0.8419 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)