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.7494/0.7494, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003227, allocations: 17.16 kB / 237.7 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0492/0.04954, allocations: 31.35 MB / 269.1 MB, free: 7.117 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.432/1.481, allocations: 294.8 MB / 0.5507 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4182/1.899, allocations: 190.5 MB / 0.7367 GB, free: 1.797 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002517/1.9, allocations: 10.66 kB / 0.7367 GB, free: 1.797 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.0003273/1.9, allocations: 209.7 kB / 0.7369 GB, free: 1.797 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004008/1.9, allocations: 274.6 kB / 0.7372 GB, free: 1.797 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.02643/1.927, allocations: 12.28 MB / 0.7492 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0005773/1.927, allocations: 0.5384 MB / 0.7497 GB, free: 1.531 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000329/1.928, allocations: 273 kB / 0.75 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003393/1.928, allocations: 256.1 kB / 0.7502 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003384/1.928, allocations: 350.1 kB / 0.7505 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 7.27e-05/1.929, allocations: 42.16 kB / 0.7506 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03151/1.96, allocations: 21.08 MB / 0.7712 GB, free: 32 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002264/1.96, allocations: 207 kB / 0.7714 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004132/1.961, allocations: 327.7 kB / 0.7717 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02069/1.981, allocations: 10.76 MB / 0.7822 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/1.981, allocations: 0 / 0.7822 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/1.981, allocations: 3.938 kB / 0.7822 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.01e-05/1.981, allocations: 0.875 kB / 0.7822 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.004909/1.986, allocations: 2.235 MB / 0.7844 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/1.986, allocations: 9.406 kB / 0.7844 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/1.987, allocations: 85 kB / 0.7845 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006977/1.987, allocations: 0.5556 MB / 0.785 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/1.987, allocations: 30.06 kB / 0.785 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/1.987, allocations: 40.22 kB / 0.7851 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/1.988, allocations: 490 kB / 0.7855 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/1.988, allocations: 5.75 kB / 0.7855 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/1.988, allocations: 16.22 kB / 0.7856 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/1.988, allocations: 11.62 kB / 0.7856 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/1.989, allocations: 416.2 kB / 0.786 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007966/1.997, allocations: 6.678 MB / 0.7925 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004915/1.997, allocations: 122.8 kB / 0.7926 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.107e-05/1.997, allocations: 46.91 kB / 0.7927 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2805/2.278, allocations: 155.7 MB / 0.9447 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/2.278, allocations: 30.56 kB / 0.9447 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/2.278, allocations: 0 / 0.9447 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002065/2.28, allocations: 476.9 kB / 0.9451 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/2.28, allocations: 106.8 kB / 0.9452 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/2.281, allocations: 1.071 MB / 0.9463 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/2.281, allocations: 29.7 kB / 0.9463 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002728/2.282, allocations: 383 kB / 0.9467 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/2.282, allocations: 39.45 kB / 0.9467 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/2.282, allocations: 77.59 kB / 0.9468 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001475/2.282, allocations: 378.8 kB / 0.9472 GB, free: 8.215 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/2.282, allocations: 127.9 kB / 0.9473 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000255/2.282, allocations: 264.1 kB / 0.9475 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000352/2.283, allocations: 324.1 kB / 0.9478 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/2.283, allocations: 0 / 0.9478 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001344/2.284, allocations: 0.5621 MB / 0.9484 GB, free: 6.883 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/2.284, allocations: 12 kB / 0.9484 GB, free: 6.871 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/2.284, allocations: 4.625 kB / 0.9484 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/2.286, allocations: 204.5 kB / 0.9486 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/2.286, allocations: 47.17 kB / 0.9486 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005395/2.286, allocations: 0.6243 MB / 0.9492 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/2.287, allocations: 48.39 kB / 0.9493 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/2.287, allocations: 27.98 kB / 0.9493 GB, free: 5.91 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.0002523/2.287, allocations: 269 kB / 0.9496 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/2.287, allocations: 59.25 kB / 0.9496 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006494/2.288, allocations: 258.2 kB / 0.9499 GB, free: 5.328 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/2.288, allocations: 5.203 kB / 0.9499 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/2.288, allocations: 0 / 0.9499 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/2.288, allocations: 3.984 kB / 0.9499 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/2.289, allocations: 0.843 MB / 0.9507 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/2.289, allocations: 0 / 0.9507 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.061e-05/2.289, allocations: 4 kB / 0.9507 GB, free: 4.426 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/2.29, allocations: 156.9 kB / 0.9509 GB, free: 4.273 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/2.29, allocations: 8 kB / 0.9509 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004998/2.291, allocations: 0.6335 MB / 0.9515 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/2.291, allocations: 3.984 kB / 0.9515 GB, free: 3.605 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/2.292, allocations: 405.2 kB / 0.9519 GB, free: 3.199 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/2.292, allocations: 172.2 kB / 0.952 GB, free: 3.012 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/2.292, allocations: 9.953 kB / 0.9521 GB, free: 3.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/2.293, allocations: 4 kB / 0.9521 GB, free: 3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.778e-05/2.293, allocations: 13.28 kB / 0.9521 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/2.293, allocations: 4 kB / 0.9521 GB, free: 2.988 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008229/2.294, allocations: 0.788 MB / 0.9528 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/2.294, allocations: 0 / 0.9528 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.003822/2.297, allocations: 1.643 MB / 0.9545 GB, free: 0.5586 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.006919/2.304, allocations: 2.489 MB / 0.9569 GB, free: 14.38 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005065/2.305, allocations: 240.9 kB / 0.9571 GB, free: 14.16 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/2.305, allocations: 4 kB / 0.9571 GB, free: 14.15 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000166/2.305, allocations: 60.12 kB / 0.9572 GB, free: 14.1 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/2.306, allocations: 94.44 kB / 0.9573 GB, free: 14.01 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/2.307, allocations: 1.105 MB / 0.9583 GB, free: 12.87 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/2.308, allocations: 0.9349 MB / 0.9593 GB, free: 11.91 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.283e-05/2.308, allocations: 43.44 kB / 0.9593 GB, free: 11.88 MB / 0.795 GB Notification: Performance of SimCode: time 2.51e-07/2.308, allocations: 1.094 kB / 0.9593 GB, free: 11.88 MB / 0.795 GB Notification: Performance of Templates: time 0.04324/2.351, allocations: 35.68 MB / 0.9941 GB, free: 8.18 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)