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.7912/0.7912, allocations: 150.9 MB / 166.7 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.0003201, allocations: 15.98 kB / 204.8 MB, free: 10.03 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1756, allocations: 31.32 MB / 236.1 MB, free: 5.453 MB / 190.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.594/1.77, allocations: 293.7 MB / 0.5175 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1929/1.963, allocations: 188.5 MB / 0.7015 GB, free: 0.6328 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003314/1.963, allocations: 4 kB / 0.7015 GB, free: 0.6289 MB / 0.5762 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.0003643/1.964, allocations: 192.6 kB / 0.7017 GB, free: 452 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000377/1.964, allocations: 262.9 kB / 0.702 GB, free: 188 kB / 0.5762 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.3432/2.307, allocations: 10.85 MB / 0.7125 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008009/2.308, allocations: 0.5304 MB / 0.7131 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/2.308, allocations: 276.9 kB / 0.7133 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000303/2.309, allocations: 254.5 kB / 0.7136 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003324/2.309, allocations: 358 kB / 0.7139 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.15e-05/2.309, allocations: 42 kB / 0.714 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03779/2.347, allocations: 21 MB / 0.7345 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003395/2.347, allocations: 212.9 kB / 0.7347 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004381/2.348, allocations: 321.5 kB / 0.735 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01484/2.363, allocations: 7.508 MB / 0.7423 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/2.363, allocations: 1.203 kB / 0.7423 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.894e-06/2.363, allocations: 0.875 kB / 0.7423 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.423e-05/2.363, allocations: 0 / 0.7423 GB, free: 0.5703 MB / 0.5762 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.006904/2.37, allocations: 2.238 MB / 0.7445 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/2.37, allocations: 8.5 kB / 0.7445 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/2.37, allocations: 81.03 kB / 0.7446 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000673/2.37, allocations: 0.5411 MB / 0.7451 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.438e-05/2.371, allocations: 30.56 kB / 0.7451 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.488e-05/2.371, allocations: 38.31 kB / 0.7452 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006596/2.371, allocations: 494 kB / 0.7456 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/2.371, allocations: 2.094 kB / 0.7456 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/2.371, allocations: 13.66 kB / 0.7457 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/2.371, allocations: 11.31 kB / 0.7457 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005436/2.372, allocations: 418.2 kB / 0.7461 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009203/2.381, allocations: 6.7 MB / 0.7526 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/2.382, allocations: 127 kB / 0.7527 GB, free: 9.195 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.328e-05/2.382, allocations: 49.27 kB / 0.7528 GB, free: 9.184 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.298/2.68, allocations: 154.7 MB / 0.9039 GB, free: 6.078 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/2.68, allocations: 34.12 kB / 0.9039 GB, free: 6.039 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 3.917e-06/2.68, allocations: 0 / 0.9039 GB, free: 6.039 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.0023/2.682, allocations: 479.4 kB / 0.9044 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.44e-05/2.682, allocations: 106.8 kB / 0.9045 GB, free: 5.469 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/2.684, allocations: 1.07 MB / 0.9055 GB, free: 4.656 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/2.684, allocations: 25.7 kB / 0.9055 GB, free: 4.625 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003387/2.684, allocations: 379.3 kB / 0.9059 GB, free: 4.379 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/2.684, allocations: 45.36 kB / 0.9059 GB, free: 4.344 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/2.685, allocations: 75.09 kB / 0.906 GB, free: 4.285 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002204/2.685, allocations: 390.1 kB / 0.9064 GB, free: 3.926 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/2.685, allocations: 132.4 kB / 0.9065 GB, free: 3.832 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003491/2.685, allocations: 256.8 kB / 0.9068 GB, free: 3.562 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004884/2.686, allocations: 319.7 kB / 0.9071 GB, free: 3.285 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/2.686, allocations: 7.562 kB / 0.9071 GB, free: 3.281 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001689/2.688, allocations: 0.555 MB / 0.9076 GB, free: 2.844 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/2.688, allocations: 5.672 kB / 0.9076 GB, free: 2.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/2.688, allocations: 4 kB / 0.9076 GB, free: 2.836 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001657/2.689, allocations: 201.8 kB / 0.9078 GB, free: 2.648 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/2.69, allocations: 47.77 kB / 0.9079 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007643/2.69, allocations: 0.6311 MB / 0.9085 GB, free: 2 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004482/2.691, allocations: 43.58 kB / 0.9085 GB, free: 1.961 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/2.691, allocations: 18.06 kB / 0.9085 GB, free: 1.945 MB / 0.7481 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.0003868/2.691, allocations: 270 kB / 0.9088 GB, free: 1.73 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002117/2.691, allocations: 63.16 kB / 0.9089 GB, free: 1.668 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008224/2.692, allocations: 256.4 kB / 0.9091 GB, free: 1.465 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/2.692, allocations: 10.89 kB / 0.9091 GB, free: 1.457 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/2.692, allocations: 4 kB / 0.9091 GB, free: 1.453 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/2.692, allocations: 7.922 kB / 0.9091 GB, free: 1.445 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002016/2.694, allocations: 0.8318 MB / 0.9099 GB, free: 0.7148 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/2.694, allocations: 4 kB / 0.9099 GB, free: 0.7109 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.137e-05/2.694, allocations: 4 kB / 0.9099 GB, free: 0.707 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/2.695, allocations: 160.1 kB / 0.9101 GB, free: 0.5664 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/2.695, allocations: 9.688 kB / 0.9101 GB, free: 0.5586 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005762/2.696, allocations: 0.6378 MB / 0.9107 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/2.696, allocations: 0 / 0.9107 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/2.697, allocations: 412.1 kB / 0.9111 GB, free: 15.56 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/2.698, allocations: 171.2 kB / 0.9113 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.705e-05/2.698, allocations: 0 / 0.9113 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/2.698, allocations: 10.94 kB / 0.9113 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/2.698, allocations: 14.98 kB / 0.9113 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/2.698, allocations: 4 kB / 0.9113 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008768/2.699, allocations: 0.7837 MB / 0.9121 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.11e-07/2.699, allocations: 0 / 0.9121 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004755/2.704, allocations: 1.643 MB / 0.9137 GB, free: 13.27 MB / 0.7637 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.009074/2.713, allocations: 2.574 MB / 0.9162 GB, free: 11.05 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.000645/2.713, allocations: 245.4 kB / 0.9164 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/2.713, allocations: 4 kB / 0.9164 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001963/2.714, allocations: 58.83 kB / 0.9165 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007137/2.714, allocations: 106.3 kB / 0.9166 GB, free: 10.77 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/2.716, allocations: 1.3 MB / 0.9179 GB, free: 9.535 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/2.717, allocations: 0.9354 MB / 0.9188 GB, free: 8.605 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/2.717, allocations: 46.17 kB / 0.9188 GB, free: 8.562 MB / 0.7637 GB Notification: Performance of SimCode: time 8.11e-07/2.717, allocations: 0 / 0.9188 GB, free: 8.562 MB / 0.7637 GB Notification: Performance of Templates: time 0.05263/2.77, allocations: 35.69 MB / 0.9537 GB, free: 5.008 MB / 0.795 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)