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.8449/0.8449, allocations: 150.9 MB / 166.5 MB, free: 14.38 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003968, allocations: 16.92 kB / 237.1 MB, free: 1.844 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06443/0.06484, allocations: 31.34 MB / 268.4 MB, free: 7.09 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.629/1.694, allocations: 294.9 MB / 0.5501 GB, free: 12.89 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4785/2.172, allocations: 190.5 MB / 0.7361 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002832/2.173, allocations: 8.375 kB / 0.7362 GB, free: 1.785 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.0003599/2.173, allocations: 205.5 kB / 0.7363 GB, free: 1.785 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003784/2.173, allocations: 279.2 kB / 0.7366 GB, free: 1.785 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.02892/2.202, allocations: 12.28 MB / 0.7486 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008782/2.203, allocations: 0.5334 MB / 0.7491 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003547/2.204, allocations: 280 kB / 0.7494 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003173/2.204, allocations: 242.2 kB / 0.7496 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003573/2.204, allocations: 361.1 kB / 0.75 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.887e-05/2.204, allocations: 44.38 kB / 0.75 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0338/2.238, allocations: 21.08 MB / 0.7706 GB, free: 4 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000324/2.238, allocations: 211.6 kB / 0.7708 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004066/2.239, allocations: 329.9 kB / 0.7711 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02402/2.263, allocations: 10.78 MB / 0.7817 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/2.263, allocations: 0 / 0.7817 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.094e-06/2.263, allocations: 1.953 kB / 0.7817 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.089e-05/2.263, allocations: 6.406 kB / 0.7817 GB, free: 12.11 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.006187/2.269, allocations: 2.326 MB / 0.7839 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/2.269, allocations: 8.656 kB / 0.7839 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/2.269, allocations: 90.94 kB / 0.784 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006875/2.27, allocations: 0.5513 MB / 0.7846 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/2.27, allocations: 37.78 kB / 0.7846 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/2.27, allocations: 37.19 kB / 0.7846 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007276/2.271, allocations: 496 kB / 0.7851 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/2.271, allocations: 0 / 0.7851 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.376e-05/2.271, allocations: 15.78 kB / 0.7851 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/2.271, allocations: 10.62 kB / 0.7851 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005797/2.272, allocations: 418.7 kB / 0.7855 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009366/2.281, allocations: 6.691 MB / 0.7921 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/2.281, allocations: 120.1 kB / 0.7922 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.881e-05/2.282, allocations: 47.55 kB / 0.7922 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3227/2.604, allocations: 155.7 MB / 0.9442 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/2.604, allocations: 42.84 kB / 0.9443 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.874e-06/2.604, allocations: 0 / 0.9443 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002274/2.607, allocations: 476.5 kB / 0.9447 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.963e-05/2.607, allocations: 106.8 kB / 0.9448 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/2.609, allocations: 1.067 MB / 0.9459 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/2.609, allocations: 29.7 kB / 0.9459 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000337/2.609, allocations: 394.2 kB / 0.9463 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/2.609, allocations: 40.78 kB / 0.9463 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/2.609, allocations: 81.53 kB / 0.9464 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001769/2.609, allocations: 378.8 kB / 0.9468 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/2.61, allocations: 131.9 kB / 0.9469 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002887/2.61, allocations: 265.3 kB / 0.9471 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004243/2.61, allocations: 322.9 kB / 0.9474 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/2.61, allocations: 1.203 kB / 0.9474 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001457/2.612, allocations: 0.5662 MB / 0.948 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/2.612, allocations: 13.5 kB / 0.948 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/2.612, allocations: 4 kB / 0.948 GB, free: 6.637 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00153/2.613, allocations: 191.5 kB / 0.9482 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/2.614, allocations: 46.27 kB / 0.9482 GB, free: 6.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005963/2.614, allocations: 0.6363 MB / 0.9489 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003413/2.615, allocations: 43.67 kB / 0.9489 GB, free: 5.711 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.106e-05/2.615, allocations: 19.98 kB / 0.9489 GB, free: 5.691 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.0002906/2.615, allocations: 265 kB / 0.9492 GB, free: 5.426 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/2.615, allocations: 65.12 kB / 0.9492 GB, free: 5.363 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007137/2.616, allocations: 269 kB / 0.9495 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/2.616, allocations: 0 / 0.9495 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/2.616, allocations: 1.203 kB / 0.9495 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/2.616, allocations: 0 / 0.9495 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/2.618, allocations: 0.8431 MB / 0.9503 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/2.618, allocations: 0 / 0.9503 GB, free: 4.203 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.735e-05/2.618, allocations: 11.08 kB / 0.9503 GB, free: 4.195 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001057/2.619, allocations: 157.6 kB / 0.9505 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/2.619, allocations: 7.984 kB / 0.9505 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005578/2.619, allocations: 0.6334 MB / 0.9511 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/2.619, allocations: 3.188 kB / 0.9511 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/2.621, allocations: 411.4 kB / 0.9515 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/2.621, allocations: 184.5 kB / 0.9517 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.578e-05/2.621, allocations: 4 kB / 0.9517 GB, free: 2.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/2.621, allocations: 7.984 kB / 0.9517 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/2.621, allocations: 6.469 kB / 0.9517 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/2.621, allocations: 7.984 kB / 0.9517 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001009/2.622, allocations: 0.7841 MB / 0.9525 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/2.622, allocations: 0 / 0.9525 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.005252/2.628, allocations: 1.663 MB / 0.9541 GB, free: 300 kB / 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.008548/2.636, allocations: 2.511 MB / 0.9565 GB, free: 14.08 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000628/2.637, allocations: 233.2 kB / 0.9568 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/2.637, allocations: 4.375 kB / 0.9568 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001903/2.637, allocations: 58.92 kB / 0.9568 GB, free: 13.8 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006129/2.638, allocations: 92.06 kB / 0.9569 GB, free: 13.73 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/2.639, allocations: 1.069 MB / 0.958 GB, free: 12.62 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/2.64, allocations: 0.9355 MB / 0.9589 GB, free: 11.67 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002022/2.64, allocations: 78.91 kB / 0.959 GB, free: 11.59 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.501e-05/2.64, allocations: 35.44 kB / 0.959 GB, free: 11.56 MB / 0.795 GB Notification: Performance of SimCode: time 2.6e-07/2.64, allocations: 1.203 kB / 0.959 GB, free: 11.56 MB / 0.795 GB Notification: Performance of Templates: time 0.06689/2.707, allocations: 51.53 MB / 1.009 GB, free: 8.086 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)