Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.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.SimpleExamples.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8635/0.8635, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004002/0.0004002, allocations: 15.2 kB / 237.8 MB, free: 1.777 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06398/0.0644, allocations: 31.35 MB / 269.1 MB, free: 7.027 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.SimpleExamples.TestBend): time 1.655/1.72, allocations: 294.9 MB / 0.5508 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5251/2.245, allocations: 190.5 MB / 0.7368 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003655/2.245, allocations: 8.5 kB / 0.7368 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.0003872/2.246, allocations: 203.7 kB / 0.737 GB, free: 1.781 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0004398/2.246, allocations: 279.1 kB / 0.7373 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.03821/2.284, allocations: 12.29 MB / 0.7493 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008778/2.285, allocations: 0.531 MB / 0.7498 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003223/2.286, allocations: 278.8 kB / 0.7501 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/2.286, allocations: 254.8 kB / 0.7503 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000355/2.286, allocations: 357.2 kB / 0.7507 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.79e-05/2.286, allocations: 41 kB / 0.7507 GB, free: 1.5 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04017/2.326, allocations: 21.08 MB / 0.7713 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002966/2.327, allocations: 207.2 kB / 0.7715 GB, free: 15.94 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004258/2.327, allocations: 324.5 kB / 0.7718 GB, free: 15.92 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02907/2.356, allocations: 10.74 MB / 0.7823 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/2.356, allocations: 3.188 kB / 0.7823 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.944e-06/2.356, allocations: 1 kB / 0.7823 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.142e-05/2.356, allocations: 0 / 0.7823 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.006148/2.363, allocations: 2.232 MB / 0.7845 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/2.363, allocations: 11.91 kB / 0.7845 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/2.363, allocations: 87.23 kB / 0.7846 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006274/2.363, allocations: 0.5456 MB / 0.7851 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/2.363, allocations: 36.09 kB / 0.7851 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/2.363, allocations: 38.25 kB / 0.7852 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006026/2.364, allocations: 496 kB / 0.7856 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/2.364, allocations: 0 / 0.7856 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/2.364, allocations: 15.62 kB / 0.7857 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/2.364, allocations: 11.81 kB / 0.7857 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005035/2.365, allocations: 417.3 kB / 0.7861 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008786/2.373, allocations: 6.683 MB / 0.7926 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/2.374, allocations: 126.9 kB / 0.7927 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.713e-05/2.374, allocations: 44.09 kB / 0.7928 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2941/2.668, allocations: 155.6 MB / 0.9448 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/2.668, allocations: 37.75 kB / 0.9448 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.585e-06/2.668, allocations: 0 / 0.9448 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002454/2.671, allocations: 470 kB / 0.9452 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.881e-05/2.671, allocations: 106.8 kB / 0.9453 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/2.673, allocations: 1.071 MB / 0.9464 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/2.673, allocations: 26.91 kB / 0.9464 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003407/2.673, allocations: 393.8 kB / 0.9468 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/2.673, allocations: 47.39 kB / 0.9468 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/2.673, allocations: 73.59 kB / 0.9469 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001685/2.673, allocations: 374.8 kB / 0.9473 GB, free: 8.148 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/2.674, allocations: 127.9 kB / 0.9474 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/2.674, allocations: 264.2 kB / 0.9476 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003899/2.674, allocations: 321.3 kB / 0.9479 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/2.674, allocations: 0 / 0.9479 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001573/2.676, allocations: 0.5686 MB / 0.9485 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/2.676, allocations: 7.938 kB / 0.9485 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/2.676, allocations: 4 kB / 0.9485 GB, free: 6.801 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/2.678, allocations: 197.5 kB / 0.9487 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/2.678, allocations: 52.88 kB / 0.9487 GB, free: 6.562 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006302/2.678, allocations: 0.6267 MB / 0.9494 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/2.679, allocations: 51.58 kB / 0.9494 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.81e-05/2.679, allocations: 17.09 kB / 0.9494 GB, free: 5.852 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.0003542/2.679, allocations: 264.7 kB / 0.9497 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/2.679, allocations: 62.44 kB / 0.9497 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007396/2.68, allocations: 260.5 kB / 0.95 GB, free: 5.266 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/2.68, allocations: 4 kB / 0.95 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/2.68, allocations: 0 / 0.95 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/2.68, allocations: 0 / 0.95 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/2.682, allocations: 0.84 MB / 0.9508 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/2.682, allocations: 0 / 0.9508 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.49e-05/2.682, allocations: 7.094 kB / 0.9508 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001122/2.683, allocations: 167.3 kB / 0.951 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/2.684, allocations: 0 / 0.951 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005918/2.684, allocations: 0.6385 MB / 0.9516 GB, free: 3.547 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/2.684, allocations: 3.094 kB / 0.9516 GB, free: 3.547 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/2.685, allocations: 407.2 kB / 0.952 GB, free: 3.137 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002397/2.686, allocations: 172.2 kB / 0.9522 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.613e-05/2.686, allocations: 4 kB / 0.9522 GB, free: 2.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/2.686, allocations: 12.61 kB / 0.9522 GB, free: 2.934 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.181e-05/2.686, allocations: 11.98 kB / 0.9522 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/2.686, allocations: 4 kB / 0.9522 GB, free: 2.918 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001005/2.687, allocations: 0.7763 MB / 0.9529 GB, free: 2.145 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.61e-07/2.687, allocations: 0 / 0.9529 GB, free: 2.145 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.005577/2.693, allocations: 1.643 MB / 0.9545 GB, free: 0.5 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.009012/2.702, allocations: 2.506 MB / 0.957 GB, free: 14.3 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006995/2.702, allocations: 241.6 kB / 0.9572 GB, free: 14.08 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/2.703, allocations: 0 / 0.9572 GB, free: 14.08 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001911/2.703, allocations: 64.03 kB / 0.9573 GB, free: 14.02 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007651/2.703, allocations: 89.61 kB / 0.9574 GB, free: 13.94 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/2.705, allocations: 1.115 MB / 0.9585 GB, free: 12.79 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/2.706, allocations: 0.9275 MB / 0.9594 GB, free: 11.84 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/2.706, allocations: 39.44 kB / 0.9594 GB, free: 11.8 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/2.706, allocations: 0 / 0.9594 GB, free: 11.8 MB / 0.795 GB Notification: Performance of Templates: time 0.05269/2.759, allocations: 35.77 MB / 0.9943 GB, free: 8.012 MB / 0.8262 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestBend.pipe 2>&1)