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.7549/0.7549, allocations: 150.9 MB / 167.2 MB, free: 14.68 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003085/0.0003085, allocations: 19.55 kB / 237.7 MB, free: 1.715 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04686/0.04718, allocations: 31.34 MB / 269.1 MB, free: 7.125 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.457/1.504, allocations: 294.8 MB / 0.5506 GB, free: 12.9 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4254/1.93, allocations: 190.5 MB / 0.7367 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/1.93, allocations: 7.094 kB / 0.7367 GB, free: 1.781 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.0003112/1.93, allocations: 204.6 kB / 0.7369 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003196/1.931, allocations: 282.9 kB / 0.7372 GB, free: 1.781 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.02613/1.957, allocations: 12.29 MB / 0.7492 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005788/1.958, allocations: 0.5345 MB / 0.7497 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/1.958, allocations: 274.1 kB / 0.7499 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/1.958, allocations: 252.7 kB / 0.7502 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002645/1.958, allocations: 358.8 kB / 0.7505 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.78e-05/1.958, allocations: 42.03 kB / 0.7506 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02995/1.988, allocations: 21.08 MB / 0.7711 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000222/1.989, allocations: 206 kB / 0.7713 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003385/1.989, allocations: 321.8 kB / 0.7716 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02032/2.009, allocations: 10.75 MB / 0.7821 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/2.009, allocations: 1.203 kB / 0.7821 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.72e-07/2.009, allocations: 0 / 0.7821 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.431e-05/2.009, allocations: 0.9062 kB / 0.7821 GB, free: 12.04 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.00467/2.014, allocations: 2.238 MB / 0.7843 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/2.014, allocations: 11 kB / 0.7843 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/2.014, allocations: 83.41 kB / 0.7844 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007276/2.015, allocations: 0.5486 MB / 0.785 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.623e-05/2.015, allocations: 35.31 kB / 0.785 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.186e-05/2.015, allocations: 34.84 kB / 0.785 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006271/2.016, allocations: 499.5 kB / 0.7855 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/2.016, allocations: 0 / 0.7855 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/2.016, allocations: 15.91 kB / 0.7855 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/2.016, allocations: 8.531 kB / 0.7855 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005125/2.016, allocations: 420.8 kB / 0.7859 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008594/2.025, allocations: 6.68 MB / 0.7924 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004863/2.025, allocations: 121 kB / 0.7926 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.067e-05/2.025, allocations: 47.23 kB / 0.7926 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2972/2.323, allocations: 155.6 MB / 0.9446 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/2.323, allocations: 39.77 kB / 0.9446 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.795e-06/2.323, allocations: 4.938 kB / 0.9446 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002078/2.325, allocations: 475.1 kB / 0.9451 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/2.325, allocations: 102.8 kB / 0.9452 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/2.326, allocations: 1.071 MB / 0.9462 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/2.326, allocations: 29.7 kB / 0.9463 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/2.326, allocations: 386.2 kB / 0.9466 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.007e-05/2.326, allocations: 44.66 kB / 0.9467 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.571e-05/2.327, allocations: 73.59 kB / 0.9468 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001468/2.327, allocations: 378.8 kB / 0.9471 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/2.327, allocations: 131.1 kB / 0.9472 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/2.327, allocations: 257 kB / 0.9475 GB, free: 7.746 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/2.328, allocations: 329.4 kB / 0.9478 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/2.328, allocations: 0 / 0.9478 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001269/2.329, allocations: 0.5594 MB / 0.9483 GB, free: 6.852 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/2.329, allocations: 11.94 kB / 0.9484 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/2.329, allocations: 4 kB / 0.9484 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001433/2.33, allocations: 197.6 kB / 0.9485 GB, free: 6.645 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/2.33, allocations: 48.66 kB / 0.9486 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000522/2.331, allocations: 0.6287 MB / 0.9492 GB, free: 5.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002746/2.331, allocations: 51.52 kB / 0.9493 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/2.331, allocations: 12 kB / 0.9493 GB, free: 5.891 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.0002564/2.332, allocations: 276.2 kB / 0.9495 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.272e-05/2.332, allocations: 59.25 kB / 0.9496 GB, free: 5.559 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006566/2.332, allocations: 263.5 kB / 0.9498 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/2.332, allocations: 0 / 0.9498 GB, free: 5.297 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/2.332, allocations: 5.203 kB / 0.9498 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/2.332, allocations: 0 / 0.9498 GB, free: 5.293 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/2.334, allocations: 0.8405 MB / 0.9507 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/2.334, allocations: 2.5 kB / 0.9507 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.027e-05/2.334, allocations: 4 kB / 0.9507 GB, free: 4.398 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/2.335, allocations: 161.9 kB / 0.9508 GB, free: 4.242 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/2.335, allocations: 0 / 0.9508 GB, free: 4.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004774/2.336, allocations: 0.6335 MB / 0.9514 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/2.336, allocations: 0 / 0.9514 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/2.337, allocations: 413.4 kB / 0.9518 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002135/2.337, allocations: 176.1 kB / 0.952 GB, free: 2.984 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.779e-05/2.337, allocations: 7.188 kB / 0.952 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/2.337, allocations: 17.19 kB / 0.952 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/2.337, allocations: 7.984 kB / 0.952 GB, free: 2.957 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/2.337, allocations: 4 kB / 0.952 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008096/2.338, allocations: 0.7802 MB / 0.9528 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/2.338, allocations: 0 / 0.9528 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003881/2.342, allocations: 1.639 MB / 0.9544 GB, free: 0.5352 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.006374/2.348, allocations: 2.493 MB / 0.9568 GB, free: 14.34 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000582/2.349, allocations: 236.4 kB / 0.9571 GB, free: 14.12 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/2.349, allocations: 1.062 kB / 0.9571 GB, free: 14.12 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001727/2.349, allocations: 68.17 kB / 0.9571 GB, free: 14.06 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006271/2.35, allocations: 91.53 kB / 0.9572 GB, free: 13.98 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/2.351, allocations: 1.112 MB / 0.9583 GB, free: 12.84 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004789/2.352, allocations: 0.9333 MB / 0.9592 GB, free: 11.88 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.469e-05/2.352, allocations: 35.44 kB / 0.9592 GB, free: 11.85 MB / 0.795 GB Notification: Performance of SimCode: time 1.163e-06/2.352, allocations: 0 / 0.9592 GB, free: 11.85 MB / 0.795 GB Notification: Performance of Templates: time 0.04364/2.396, allocations: 35.79 MB / 0.9942 GB, free: 8.047 MB / 0.8262 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)