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.9054/0.9054, allocations: 150.9 MB / 166.5 MB, free: 14.4 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003334, allocations: 19.47 kB / 237.1 MB, free: 1.805 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07129/0.07164, allocations: 31.35 MB / 268.4 MB, free: 7.047 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.885/1.957, allocations: 295 MB / 0.5502 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.6568/2.613, allocations: 190.5 MB / 0.7362 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004872/2.614, allocations: 9.406 kB / 0.7362 GB, free: 1.789 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.0004564/2.614, allocations: 208.7 kB / 0.7364 GB, free: 1.789 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0005047/2.615, allocations: 275.9 kB / 0.7367 GB, free: 1.789 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.04504/2.66, allocations: 12.52 MB / 0.7489 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001691/2.662, allocations: 0.5387 MB / 0.7495 GB, free: 1.523 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005057/2.662, allocations: 271.7 kB / 0.7497 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004368/2.663, allocations: 259.5 kB / 0.75 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004158/2.663, allocations: 352.4 kB / 0.7503 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.006e-05/2.663, allocations: 44.91 kB / 0.7503 GB, free: 1.508 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04943/2.713, allocations: 21.09 MB / 0.7709 GB, free: 0 / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0007828/2.714, allocations: 216.8 kB / 0.7711 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008545/2.714, allocations: 333.1 kB / 0.7715 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03989/2.754, allocations: 10.76 MB / 0.782 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/2.754, allocations: 0.9062 kB / 0.782 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.804e-06/2.754, allocations: 0 / 0.782 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.13e-05/2.754, allocations: 0.875 kB / 0.782 GB, free: 12.13 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.007115/2.762, allocations: 2.228 MB / 0.7841 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/2.762, allocations: 11.91 kB / 0.7842 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/2.762, allocations: 85.31 kB / 0.7842 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007327/2.762, allocations: 0.5519 MB / 0.7848 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/2.763, allocations: 35.88 kB / 0.7848 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/2.763, allocations: 34.81 kB / 0.7848 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007107/2.763, allocations: 496.8 kB / 0.7853 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/2.763, allocations: 2.625 kB / 0.7853 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/2.763, allocations: 13.06 kB / 0.7853 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/2.763, allocations: 10.88 kB / 0.7853 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005678/2.764, allocations: 420.9 kB / 0.7857 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/2.774, allocations: 6.677 MB / 0.7923 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/2.775, allocations: 127.1 kB / 0.7924 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.751e-05/2.775, allocations: 42.47 kB / 0.7924 GB, free: 4.742 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.337/3.112, allocations: 155.6 MB / 0.9444 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/3.112, allocations: 35.66 kB / 0.9445 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.284e-06/3.112, allocations: 0 / 0.9445 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002462/3.114, allocations: 474.5 kB / 0.9449 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/3.114, allocations: 102.8 kB / 0.945 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001825/3.116, allocations: 1.067 MB / 0.9461 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/3.116, allocations: 29.7 kB / 0.9461 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/3.117, allocations: 387.2 kB / 0.9464 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.852e-05/3.117, allocations: 39.39 kB / 0.9465 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/3.117, allocations: 73.59 kB / 0.9466 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001673/3.117, allocations: 382.8 kB / 0.9469 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/3.117, allocations: 128 kB / 0.947 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/3.118, allocations: 264.1 kB / 0.9473 GB, free: 7.484 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/3.118, allocations: 332.9 kB / 0.9476 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/3.118, allocations: 1.094 kB / 0.9476 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001579/3.12, allocations: 0.5653 MB / 0.9482 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.877e-05/3.12, allocations: 11.94 kB / 0.9482 GB, free: 6.574 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/3.12, allocations: 4 kB / 0.9482 GB, free: 6.57 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/3.121, allocations: 190.7 kB / 0.9484 GB, free: 6.383 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/3.121, allocations: 53.86 kB / 0.9484 GB, free: 6.336 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006144/3.122, allocations: 0.6279 MB / 0.949 GB, free: 5.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/3.122, allocations: 39.59 kB / 0.9491 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/3.122, allocations: 27.08 kB / 0.9491 GB, free: 5.625 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.0003854/3.123, allocations: 256.8 kB / 0.9493 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/3.123, allocations: 64.44 kB / 0.9494 GB, free: 5.305 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007517/3.124, allocations: 260.7 kB / 0.9496 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/3.124, allocations: 0 / 0.9496 GB, free: 5.043 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/3.124, allocations: 5.094 kB / 0.9497 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/3.124, allocations: 0 / 0.9497 GB, free: 5.039 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/3.126, allocations: 0.8432 MB / 0.9505 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/3.126, allocations: 0 / 0.9505 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.822e-05/3.126, allocations: 7.984 kB / 0.9505 GB, free: 4.141 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001089/3.127, allocations: 163.2 kB / 0.9506 GB, free: 3.984 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/3.127, allocations: 8 kB / 0.9506 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005331/3.127, allocations: 0.6258 MB / 0.9513 GB, free: 3.328 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/3.127, allocations: 4.031 kB / 0.9513 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001293/3.129, allocations: 408.7 kB / 0.9516 GB, free: 2.914 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/3.129, allocations: 172.2 kB / 0.9518 GB, free: 2.727 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.934e-05/3.129, allocations: 7.469 kB / 0.9518 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/3.129, allocations: 13.19 kB / 0.9518 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/3.129, allocations: 7.188 kB / 0.9518 GB, free: 2.707 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/3.129, allocations: 11.98 kB / 0.9519 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001015/3.13, allocations: 0.7802 MB / 0.9526 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.81e-07/3.13, allocations: 0 / 0.9526 GB, free: 1.918 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.006041/3.136, allocations: 1.643 MB / 0.9542 GB, free: 280 kB / 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.01054/3.147, allocations: 2.502 MB / 0.9567 GB, free: 14.07 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007991/3.148, allocations: 232.4 kB / 0.9569 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/3.148, allocations: 1.062 kB / 0.9569 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002082/3.148, allocations: 64.19 kB / 0.9569 GB, free: 13.8 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009211/3.149, allocations: 96.94 kB / 0.957 GB, free: 13.72 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002207/3.151, allocations: 1.055 MB / 0.9581 GB, free: 12.63 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/3.152, allocations: 0.925 MB / 0.959 GB, free: 11.68 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002825/3.152, allocations: 76.38 kB / 0.959 GB, free: 11.61 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.91e-05/3.152, allocations: 36.53 kB / 0.9591 GB, free: 11.58 MB / 0.795 GB Notification: Performance of SimCode: time 9.42e-07/3.152, allocations: 0 / 0.9591 GB, free: 11.58 MB / 0.795 GB Notification: Performance of Templates: time 0.07544/3.228, allocations: 51.52 MB / 1.009 GB, free: 8.109 MB / 0.8419 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)