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.8609/0.8609, allocations: 150.9 MB / 166.5 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003283, allocations: 14.91 kB / 237.1 MB, free: 1.758 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06494/0.06529, allocations: 31.34 MB / 268.4 MB, free: 7.055 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.715/1.78, allocations: 295 MB / 0.5502 GB, free: 12.86 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5446/2.325, allocations: 190.5 MB / 0.7363 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/2.325, allocations: 6.094 kB / 0.7363 GB, free: 1.801 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.0004188/2.326, allocations: 206.1 kB / 0.7365 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000552/2.326, allocations: 275.3 kB / 0.7367 GB, free: 1.801 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.03286/2.359, allocations: 12.28 MB / 0.7487 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007842/2.36, allocations: 0.5369 MB / 0.7493 GB, free: 1.535 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002905/2.36, allocations: 272.8 kB / 0.7495 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/2.361, allocations: 247.2 kB / 0.7498 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003227/2.361, allocations: 361 kB / 0.7501 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/2.361, allocations: 42.19 kB / 0.7501 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04351/2.405, allocations: 21.08 MB / 0.7707 GB, free: 8 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003911/2.405, allocations: 214.4 kB / 0.7709 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005016/2.406, allocations: 327.5 kB / 0.7712 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03675/2.442, allocations: 10.79 MB / 0.7818 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/2.442, allocations: 1.203 kB / 0.7818 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.885e-06/2.442, allocations: 3.375 kB / 0.7818 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.279e-05/2.442, allocations: 0 / 0.7818 GB, free: 12.11 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.007353/2.45, allocations: 2.324 MB / 0.7841 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/2.45, allocations: 10.62 kB / 0.7841 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/2.45, allocations: 91.66 kB / 0.7841 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007065/2.451, allocations: 0.5527 MB / 0.7847 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/2.451, allocations: 34.28 kB / 0.7847 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.388e-05/2.451, allocations: 37.8 kB / 0.7848 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/2.451, allocations: 498 kB / 0.7852 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/2.451, allocations: 0.9375 kB / 0.7852 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/2.451, allocations: 17.03 kB / 0.7852 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/2.452, allocations: 10.56 kB / 0.7853 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005328/2.452, allocations: 416.1 kB / 0.7857 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009535/2.462, allocations: 6.689 MB / 0.7922 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005661/2.462, allocations: 124.3 kB / 0.7923 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.631e-05/2.462, allocations: 46.56 kB / 0.7924 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3183/2.781, allocations: 155.7 MB / 0.9444 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.839e-05/2.781, allocations: 30.56 kB / 0.9444 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.444e-06/2.781, allocations: 1.203 kB / 0.9444 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002258/2.783, allocations: 478 kB / 0.9449 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.792e-05/2.783, allocations: 106.8 kB / 0.945 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/2.785, allocations: 1.067 MB / 0.946 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/2.785, allocations: 33.7 kB / 0.946 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003424/2.785, allocations: 392.1 kB / 0.9464 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.623e-05/2.785, allocations: 36.89 kB / 0.9464 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/2.786, allocations: 80.78 kB / 0.9465 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001757/2.786, allocations: 382.8 kB / 0.9469 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/2.786, allocations: 131.9 kB / 0.947 GB, free: 7.867 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002802/2.786, allocations: 261 kB / 0.9473 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003827/2.787, allocations: 318.4 kB / 0.9476 GB, free: 7.203 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.988e-06/2.787, allocations: 6.062 kB / 0.9476 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001607/2.788, allocations: 0.5579 MB / 0.9481 GB, free: 6.664 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/2.788, allocations: 16.38 kB / 0.9481 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/2.788, allocations: 8 kB / 0.9481 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001626/2.79, allocations: 198.2 kB / 0.9483 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/2.79, allocations: 51.08 kB / 0.9484 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000698/2.791, allocations: 0.6239 MB / 0.949 GB, free: 5.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/2.791, allocations: 47.66 kB / 0.949 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.642e-05/2.791, allocations: 26.61 kB / 0.949 GB, free: 5.691 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.0004888/2.792, allocations: 256.9 kB / 0.9493 GB, free: 5.434 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000267/2.792, allocations: 67.58 kB / 0.9494 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008664/2.793, allocations: 260 kB / 0.9496 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/2.793, allocations: 0 / 0.9496 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/2.793, allocations: 0 / 0.9496 GB, free: 5.105 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.128e-06/2.793, allocations: 7.984 kB / 0.9496 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/2.795, allocations: 0.8405 MB / 0.9504 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/2.795, allocations: 0 / 0.9504 GB, free: 4.211 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.805e-05/2.795, allocations: 4 kB / 0.9504 GB, free: 4.207 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001102/2.797, allocations: 163.5 kB / 0.9506 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/2.797, allocations: 8 kB / 0.9506 GB, free: 4.043 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006502/2.797, allocations: 0.6311 MB / 0.9512 GB, free: 3.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.894e-06/2.797, allocations: 8.016 kB / 0.9512 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/2.799, allocations: 405.7 kB / 0.9516 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/2.799, allocations: 184.4 kB / 0.9518 GB, free: 2.781 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.612e-05/2.799, allocations: 9.062 kB / 0.9518 GB, free: 2.773 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/2.799, allocations: 8 kB / 0.9518 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/2.799, allocations: 7.984 kB / 0.9518 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/2.799, allocations: 5.094 kB / 0.9518 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0009997/2.8, allocations: 0.7841 MB / 0.9526 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.01e-07/2.8, allocations: 4 kB / 0.9526 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.005851/2.806, allocations: 1.663 MB / 0.9542 GB, free: 308 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.01003/2.816, allocations: 2.517 MB / 0.9567 GB, free: 14.08 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007585/2.817, allocations: 238.2 kB / 0.9569 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/2.817, allocations: 0 / 0.9569 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001974/2.817, allocations: 58.92 kB / 0.957 GB, free: 13.81 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008178/2.818, allocations: 94.89 kB / 0.957 GB, free: 13.73 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/2.82, allocations: 1.074 MB / 0.9581 GB, free: 12.62 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005597/2.821, allocations: 0.925 MB / 0.959 GB, free: 11.67 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002471/2.821, allocations: 73.83 kB / 0.9591 GB, free: 11.6 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.371e-05/2.821, allocations: 35.42 kB / 0.9591 GB, free: 11.57 MB / 0.795 GB Notification: Performance of SimCode: time 1.964e-06/2.821, allocations: 4 kB / 0.9591 GB, free: 11.57 MB / 0.795 GB Notification: Performance of Templates: time 0.07291/2.894, allocations: 51.52 MB / 1.009 GB, free: 8.105 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)