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.7855/0.7855, allocations: 150.9 MB / 166.1 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002566/0.0002566, allocations: 15.97 kB / 204.2 MB, free: 10.04 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1375, allocations: 31.33 MB / 235.5 MB, free: 5.445 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.543/1.68, allocations: 293.7 MB / 0.5168 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.176/1.856, allocations: 188.5 MB / 0.7009 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003016/1.857, allocations: 11.94 kB / 0.7009 GB, free: 0.6445 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.0003403/1.857, allocations: 184.8 kB / 0.7011 GB, free: 476 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004245/1.857, allocations: 262.9 kB / 0.7013 GB, free: 212 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.2988/2.156, allocations: 10.85 MB / 0.7119 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005912/2.157, allocations: 0.5345 MB / 0.7125 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002674/2.157, allocations: 265.2 kB / 0.7127 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/2.157, allocations: 257.3 kB / 0.713 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002747/2.158, allocations: 363.4 kB / 0.7133 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.531e-05/2.158, allocations: 43.56 kB / 0.7134 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03051/2.188, allocations: 20.99 MB / 0.7339 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002489/2.189, allocations: 208.2 kB / 0.7341 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003465/2.189, allocations: 325.1 kB / 0.7344 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02174/2.211, allocations: 10.9 MB / 0.745 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/2.211, allocations: 3.781 kB / 0.745 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.783e-06/2.211, allocations: 0 / 0.745 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.112e-05/2.211, allocations: 0.8125 kB / 0.745 GB, free: 15.44 MB / 0.5919 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.005174/2.216, allocations: 2.237 MB / 0.7472 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/2.216, allocations: 10.78 kB / 0.7472 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/2.216, allocations: 79.16 kB / 0.7473 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005642/2.217, allocations: 0.5407 MB / 0.7478 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/2.217, allocations: 31.03 kB / 0.7478 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/2.217, allocations: 38.44 kB / 0.7479 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/2.217, allocations: 496.4 kB / 0.7483 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/2.217, allocations: 7.062 kB / 0.7484 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.205e-05/2.217, allocations: 13.72 kB / 0.7484 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/2.217, allocations: 10.06 kB / 0.7484 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005234/2.218, allocations: 419.4 kB / 0.7488 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008465/2.226, allocations: 6.698 MB / 0.7553 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005353/2.227, allocations: 127 kB / 0.7554 GB, free: 8.066 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.183e-05/2.227, allocations: 41.41 kB / 0.7555 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2837/2.511, allocations: 154.7 MB / 0.9066 GB, free: 3.992 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/2.511, allocations: 34.56 kB / 0.9066 GB, free: 3.949 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 1.784e-06/2.511, allocations: 0 / 0.9066 GB, free: 3.949 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002262/2.513, allocations: 472.1 kB / 0.9071 GB, free: 3.512 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/2.513, allocations: 112 kB / 0.9072 GB, free: 3.379 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/2.515, allocations: 1.063 MB / 0.9082 GB, free: 2.57 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/2.515, allocations: 31.58 kB / 0.9082 GB, free: 2.535 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002566/2.515, allocations: 385.7 kB / 0.9086 GB, free: 2.289 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.364e-05/2.515, allocations: 41.7 kB / 0.9086 GB, free: 2.254 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/2.515, allocations: 77.41 kB / 0.9087 GB, free: 2.195 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001545/2.515, allocations: 381.5 kB / 0.9091 GB, free: 1.84 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/2.515, allocations: 134.2 kB / 0.9092 GB, free: 1.746 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002476/2.516, allocations: 256.5 kB / 0.9094 GB, free: 1.48 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/2.516, allocations: 321.2 kB / 0.9098 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/2.516, allocations: 4 kB / 0.9098 GB, free: 1.195 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001404/2.517, allocations: 0.5543 MB / 0.9103 GB, free: 0.7578 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/2.517, allocations: 8 kB / 0.9103 GB, free: 0.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/2.517, allocations: 4 kB / 0.9103 GB, free: 0.7461 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/2.519, allocations: 200.3 kB / 0.9105 GB, free: 0.5664 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/2.519, allocations: 59.28 kB / 0.9106 GB, free: 0.5156 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000605/2.52, allocations: 0.6199 MB / 0.9112 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00029/2.52, allocations: 46.89 kB / 0.9112 GB, free: 15.87 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/2.52, allocations: 16 kB / 0.9112 GB, free: 15.86 MB / 0.7637 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.0003096/2.521, allocations: 272.5 kB / 0.9115 GB, free: 15.64 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.892e-05/2.521, allocations: 67.16 kB / 0.9115 GB, free: 15.57 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006962/2.521, allocations: 265.9 kB / 0.9118 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/2.521, allocations: 0 / 0.9118 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/2.521, allocations: 0 / 0.9118 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/2.521, allocations: 7.938 kB / 0.9118 GB, free: 15.36 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/2.523, allocations: 0.8337 MB / 0.9126 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/2.523, allocations: 0 / 0.9126 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.204e-05/2.523, allocations: 4 kB / 0.9126 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/2.524, allocations: 170.6 kB / 0.9128 GB, free: 14.47 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/2.524, allocations: 7.562 kB / 0.9128 GB, free: 14.47 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005115/2.525, allocations: 0.627 MB / 0.9134 GB, free: 13.86 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/2.525, allocations: 7.031 kB / 0.9134 GB, free: 13.86 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/2.526, allocations: 414 kB / 0.9138 GB, free: 13.47 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001673/2.526, allocations: 167.7 kB / 0.914 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/2.526, allocations: 0 / 0.914 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/2.527, allocations: 11.98 kB / 0.914 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.249e-05/2.527, allocations: 11.86 kB / 0.914 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/2.527, allocations: 0 / 0.914 GB, free: 13.29 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0008118/2.527, allocations: 0.7843 MB / 0.9148 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of sort global known variables: time 9.22e-07/2.527, allocations: 0 / 0.9148 GB, free: 12.71 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004767/2.532, allocations: 1.647 MB / 0.9164 GB, free: 11.18 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.007664/2.54, allocations: 2.578 MB / 0.9189 GB, free: 8.965 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0006104/2.541, allocations: 244.1 kB / 0.9191 GB, free: 8.797 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/2.541, allocations: 0 / 0.9191 GB, free: 8.797 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001752/2.541, allocations: 62.09 kB / 0.9192 GB, free: 8.75 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006332/2.541, allocations: 105.3 kB / 0.9193 GB, free: 8.684 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/2.543, allocations: 1.247 MB / 0.9205 GB, free: 7.492 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/2.544, allocations: 0.9349 MB / 0.9214 GB, free: 6.566 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.00021/2.544, allocations: 72.19 kB / 0.9215 GB, free: 6.496 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/2.544, allocations: 39.44 kB / 0.9215 GB, free: 6.457 MB / 0.7637 GB Notification: Performance of SimCode: time 4.21e-07/2.544, allocations: 0 / 0.9215 GB, free: 6.457 MB / 0.7637 GB Notification: Performance of Templates: time 0.06411/2.608, allocations: 52 MB / 0.9723 GB, free: 2.598 MB / 0.8106 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)