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.8279/0.8279, allocations: 150.9 MB / 167 MB, free: 14.29 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003689, allocations: 15.97 kB / 205.2 MB, free: 9.613 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1547, allocations: 31.33 MB / 236.5 MB, free: 5.441 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.SimpleExamples.TestBend): time 1.597/1.752, allocations: 294.9 MB / 0.519 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.607/2.359, allocations: 190.5 MB / 0.705 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004417/2.359, allocations: 9.188 kB / 0.705 GB, free: 2.098 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.0004484/2.36, allocations: 205.3 kB / 0.7052 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005654/2.36, allocations: 275.4 kB / 0.7055 GB, free: 2.098 MB / 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.03693/2.397, allocations: 12.29 MB / 0.7175 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008984/2.398, allocations: 0.5354 MB / 0.718 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003246/2.399, allocations: 280.4 kB / 0.7183 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002904/2.399, allocations: 248.9 kB / 0.7185 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/2.399, allocations: 360.3 kB / 0.7189 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.516e-05/2.399, allocations: 42.03 kB / 0.7189 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04105/2.44, allocations: 20.82 MB / 0.7392 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003419/2.441, allocations: 203 kB / 0.7394 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004779/2.441, allocations: 322.5 kB / 0.7397 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03113/2.472, allocations: 10.79 MB / 0.7503 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/2.472, allocations: 3.188 kB / 0.7503 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.054e-06/2.472, allocations: 0 / 0.7503 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.205e-05/2.472, allocations: 0.8125 kB / 0.7503 GB, free: 14.08 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.006678/2.479, allocations: 2.229 MB / 0.7525 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/2.479, allocations: 9.875 kB / 0.7525 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/2.479, allocations: 82.47 kB / 0.7525 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006874/2.48, allocations: 0.5436 MB / 0.7531 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/2.48, allocations: 33.91 kB / 0.7531 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/2.48, allocations: 36.94 kB / 0.7531 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006689/2.481, allocations: 490.9 kB / 0.7536 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/2.481, allocations: 4.094 kB / 0.7536 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.704e-05/2.481, allocations: 16.34 kB / 0.7536 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-05/2.481, allocations: 10.84 kB / 0.7536 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005514/2.481, allocations: 414.1 kB / 0.754 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0105/2.492, allocations: 6.705 MB / 0.7606 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005924/2.493, allocations: 125.2 kB / 0.7607 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/2.493, allocations: 48.95 kB / 0.7608 GB, free: 6.684 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3189/2.812, allocations: 154.7 MB / 0.9118 GB, free: 1.863 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/2.812, allocations: 39.77 kB / 0.9119 GB, free: 1.816 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=11): time 2.505e-06/2.812, allocations: 0 / 0.9119 GB, free: 1.816 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.002382/2.814, allocations: 470.2 kB / 0.9123 GB, free: 1.379 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/2.814, allocations: 106.8 kB / 0.9124 GB, free: 1.25 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/2.816, allocations: 1.068 MB / 0.9135 GB, free: 448 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/2.816, allocations: 28.7 kB / 0.9135 GB, free: 416 kB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000322/2.816, allocations: 384.6 kB / 0.9139 GB, free: 168 kB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.376e-05/2.816, allocations: 46.95 kB / 0.9139 GB, free: 128 kB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/2.816, allocations: 75.33 kB / 0.914 GB, free: 68 kB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001998/2.817, allocations: 381.4 kB / 0.9143 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/2.817, allocations: 129.4 kB / 0.9145 GB, free: 15.62 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002996/2.817, allocations: 266 kB / 0.9147 GB, free: 15.35 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003993/2.818, allocations: 313.7 kB / 0.915 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/2.818, allocations: 4.922 kB / 0.915 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00157/2.819, allocations: 0.5596 MB / 0.9156 GB, free: 14.63 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/2.819, allocations: 8 kB / 0.9156 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/2.819, allocations: 7.844 kB / 0.9156 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/2.821, allocations: 194.5 kB / 0.9158 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/2.821, allocations: 52.02 kB / 0.9158 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006196/2.822, allocations: 0.6325 MB / 0.9164 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003772/2.822, allocations: 43.39 kB / 0.9165 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/2.822, allocations: 12 kB / 0.9165 GB, free: 13.73 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.0003223/2.822, allocations: 272.4 kB / 0.9168 GB, free: 13.52 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/2.823, allocations: 63.16 kB / 0.9168 GB, free: 13.45 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007388/2.823, allocations: 260.2 kB / 0.9171 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/2.823, allocations: 0 / 0.9171 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/2.823, allocations: 1.203 kB / 0.9171 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/2.823, allocations: 11.02 kB / 0.9171 GB, free: 13.24 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001944/2.825, allocations: 0.8468 MB / 0.9179 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/2.825, allocations: 0 / 0.9179 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.124e-05/2.825, allocations: 4 kB / 0.9179 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/2.826, allocations: 157.8 kB / 0.9181 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/2.826, allocations: 3 kB / 0.9181 GB, free: 12.35 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005601/2.827, allocations: 0.6371 MB / 0.9187 GB, free: 11.74 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/2.827, allocations: 3.984 kB / 0.9187 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/2.828, allocations: 411.6 kB / 0.9191 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/2.829, allocations: 172.1 kB / 0.9192 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.812e-05/2.829, allocations: 4 kB / 0.9192 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/2.829, allocations: 5.203 kB / 0.9193 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/2.829, allocations: 11.55 kB / 0.9193 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/2.829, allocations: 4 kB / 0.9193 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0009656/2.83, allocations: 0.7843 MB / 0.92 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.8e-07/2.83, allocations: 0 / 0.92 GB, free: 10.53 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.005484/2.835, allocations: 1.647 MB / 0.9216 GB, free: 8.883 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.009986/2.845, allocations: 2.489 MB / 0.9241 GB, free: 6.684 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007062/2.846, allocations: 250 kB / 0.9243 GB, free: 6.457 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/2.846, allocations: 0 / 0.9243 GB, free: 6.457 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002008/2.846, allocations: 61.02 kB / 0.9244 GB, free: 6.398 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007051/2.847, allocations: 103.8 kB / 0.9245 GB, free: 6.305 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002094/2.849, allocations: 1.112 MB / 0.9256 GB, free: 5.156 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/2.85, allocations: 0.9332 MB / 0.9265 GB, free: 4.199 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/2.85, allocations: 39.44 kB / 0.9265 GB, free: 4.16 MB / 0.7637 GB Notification: Performance of SimCode: time 1.503e-06/2.85, allocations: 0 / 0.9265 GB, free: 4.16 MB / 0.7637 GB Notification: Performance of Templates: time 0.05811/2.908, allocations: 35.71 MB / 0.9614 GB, free: 452 kB / 0.795 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)