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.7915/0.7915, allocations: 150.9 MB / 166 MB, free: 14.66 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002932/0.0002932, allocations: 11.97 kB / 204 MB, free: 10.11 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1516, allocations: 31.32 MB / 235.4 MB, free: 5.469 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.589/1.741, allocations: 292.8 MB / 0.5158 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5549/2.296, allocations: 191.5 MB / 0.7028 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000359/2.296, allocations: 8.156 kB / 0.7028 GB, free: 3.77 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.0004387/2.297, allocations: 182.1 kB / 0.703 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004534/2.297, allocations: 274.3 kB / 0.7032 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02811/2.325, allocations: 9.453 MB / 0.7125 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008819/2.326, allocations: 0.5177 MB / 0.713 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/2.327, allocations: 254.5 kB / 0.7132 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002885/2.327, allocations: 233.8 kB / 0.7135 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003395/2.327, allocations: 344.9 kB / 0.7138 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.876e-05/2.327, allocations: 27.78 kB / 0.7138 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03929/2.367, allocations: 21.09 MB / 0.7344 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003423/2.367, allocations: 194.1 kB / 0.7346 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000456/2.367, allocations: 304 kB / 0.7349 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03234/2.4, allocations: 10.89 MB / 0.7455 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/2.4, allocations: 0 / 0.7455 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 7.92e-07/2.4, allocations: 0 / 0.7455 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.5e-05/2.4, allocations: 1.5 kB / 0.7455 GB, free: 15.57 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.006301/2.406, allocations: 2.239 MB / 0.7477 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/2.406, allocations: 7.094 kB / 0.7477 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/2.406, allocations: 81.31 kB / 0.7478 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000625/2.407, allocations: 0.5471 MB / 0.7483 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/2.407, allocations: 29.19 kB / 0.7483 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/2.407, allocations: 43.61 kB / 0.7484 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006359/2.408, allocations: 493.2 kB / 0.7489 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/2.408, allocations: 0 / 0.7489 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/2.408, allocations: 17.59 kB / 0.7489 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/2.408, allocations: 10.12 kB / 0.7489 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005295/2.408, allocations: 419.8 kB / 0.7493 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008804/2.417, allocations: 6.698 MB / 0.7558 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/2.418, allocations: 123 kB / 0.7559 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.659e-05/2.418, allocations: 40.83 kB / 0.756 GB, free: 8.074 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3012/2.719, allocations: 154.7 MB / 0.9071 GB, free: 4.059 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/2.719, allocations: 35.77 kB / 0.9071 GB, free: 4.016 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/2.719, allocations: 0 / 0.9071 GB, free: 4.016 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002387/2.722, allocations: 476.2 kB / 0.9076 GB, free: 3.578 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/2.722, allocations: 102.8 kB / 0.9077 GB, free: 3.453 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/2.723, allocations: 1.069 MB / 0.9087 GB, free: 2.641 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.241e-05/2.723, allocations: 25.7 kB / 0.9087 GB, free: 2.609 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002997/2.724, allocations: 385.4 kB / 0.9091 GB, free: 2.367 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.831e-05/2.724, allocations: 51.75 kB / 0.9092 GB, free: 2.328 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/2.724, allocations: 75.89 kB / 0.9092 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001606/2.724, allocations: 388.6 kB / 0.9096 GB, free: 1.91 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/2.724, allocations: 129.9 kB / 0.9097 GB, free: 1.816 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/2.724, allocations: 255.8 kB / 0.91 GB, free: 1.551 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/2.725, allocations: 318.5 kB / 0.9103 GB, free: 1.273 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.463e-06/2.725, allocations: 0 / 0.9103 GB, free: 1.273 MB / 0.7481 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001611/2.726, allocations: 0.5607 MB / 0.9108 GB, free: 0.8359 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/2.726, allocations: 9.562 kB / 0.9108 GB, free: 0.8281 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/2.726, allocations: 4.469 kB / 0.9108 GB, free: 0.8242 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/2.728, allocations: 200.1 kB / 0.911 GB, free: 0.6406 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/2.728, allocations: 51.7 kB / 0.9111 GB, free: 0.5977 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006271/2.729, allocations: 0.6234 MB / 0.9117 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000405/2.729, allocations: 46.09 kB / 0.9117 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/2.729, allocations: 19.36 kB / 0.9117 GB, free: 15.94 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.0003504/2.73, allocations: 265 kB / 0.912 GB, free: 15.72 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/2.73, allocations: 63.16 kB / 0.9121 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007599/2.731, allocations: 266 kB / 0.9123 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/2.731, allocations: 0 / 0.9123 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/2.731, allocations: 0 / 0.9123 GB, free: 15.45 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/2.731, allocations: 9.016 kB / 0.9123 GB, free: 15.44 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001968/2.733, allocations: 0.8335 MB / 0.9131 GB, free: 14.71 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/2.733, allocations: 4 kB / 0.9131 GB, free: 14.7 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.579e-05/2.733, allocations: 7.375 kB / 0.9131 GB, free: 14.7 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001308/2.734, allocations: 182.2 kB / 0.9133 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/2.734, allocations: 0 / 0.9133 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005559/2.735, allocations: 0.6374 MB / 0.9139 GB, free: 13.92 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/2.735, allocations: 0 / 0.9139 GB, free: 13.92 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/2.736, allocations: 407.1 kB / 0.9143 GB, free: 13.55 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/2.736, allocations: 170.2 kB / 0.9145 GB, free: 13.38 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.866e-05/2.736, allocations: 8.906 kB / 0.9145 GB, free: 13.37 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002132/2.737, allocations: 8.984 kB / 0.9145 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.09e-05/2.737, allocations: 11.12 kB / 0.9145 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/2.737, allocations: 8 kB / 0.9145 GB, free: 13.35 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001045/2.738, allocations: 0.7788 MB / 0.9153 GB, free: 12.78 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.41e-07/2.738, allocations: 0 / 0.9153 GB, free: 12.78 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005051/2.743, allocations: 1.646 MB / 0.9169 GB, free: 11.25 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.009609/2.752, allocations: 2.575 MB / 0.9194 GB, free: 9.051 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007853/2.753, allocations: 237.5 kB / 0.9196 GB, free: 8.883 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/2.753, allocations: 0 / 0.9196 GB, free: 8.883 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002173/2.753, allocations: 63.41 kB / 0.9197 GB, free: 8.836 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008284/2.754, allocations: 93.64 kB / 0.9198 GB, free: 8.781 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/2.757, allocations: 1.249 MB / 0.921 GB, free: 7.59 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/2.757, allocations: 0.9357 MB / 0.9219 GB, free: 6.66 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002841/2.758, allocations: 80.36 kB / 0.922 GB, free: 6.582 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.331e-05/2.758, allocations: 31.44 kB / 0.922 GB, free: 6.551 MB / 0.7637 GB Notification: Performance of SimCode: time 5.51e-07/2.758, allocations: 0 / 0.922 GB, free: 6.551 MB / 0.7637 GB Notification: Performance of Templates: time 0.07086/2.829, allocations: 51.57 MB / 0.9724 GB, free: 3.102 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)