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: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8742/0.8742, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003336, allocations: 15.58 kB / 236.6 MB, free: 2.082 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07152/0.07188, allocations: 31.34 MB / 267.9 MB, free: 7.605 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.Book.SimpleExamples.PressureLoss.TestBend): time 1.999/2.071, allocations: 294.8 MB / 0.5495 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5456/2.617, allocations: 190.5 MB / 0.7356 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003796/2.617, allocations: 8.594 kB / 0.7356 GB, free: 1.805 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.0003831/2.618, allocations: 208.8 kB / 0.7358 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003999/2.618, allocations: 277.7 kB / 0.736 GB, free: 1.805 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.03435/2.653, allocations: 12.29 MB / 0.748 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007783/2.653, allocations: 0.5369 MB / 0.7486 GB, free: 1.539 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003139/2.654, allocations: 279.4 kB / 0.7488 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002706/2.654, allocations: 255.6 kB / 0.7491 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/2.654, allocations: 359.4 kB / 0.7494 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/2.654, allocations: 40.81 kB / 0.7495 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0362/2.691, allocations: 21.07 MB / 0.77 GB, free: 0 / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003799/2.691, allocations: 209.2 kB / 0.7702 GB, free: 0 / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004284/2.691, allocations: 333.3 kB / 0.7705 GB, free: 0 / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02802/2.719, allocations: 10.77 MB / 0.7811 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/2.719, allocations: 0 / 0.7811 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.883e-06/2.719, allocations: 2.109 kB / 0.7811 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.166e-05/2.719, allocations: 0 / 0.7811 GB, free: 12.18 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.005303/2.725, allocations: 2.237 MB / 0.7833 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/2.725, allocations: 9.125 kB / 0.7833 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.388e-05/2.725, allocations: 76.25 kB / 0.7833 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/2.725, allocations: 83.66 kB / 0.7834 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006973/2.726, allocations: 0.5573 MB / 0.784 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/2.726, allocations: 32.52 kB / 0.784 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/2.726, allocations: 37.94 kB / 0.784 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006228/2.726, allocations: 491.6 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/2.726, allocations: 0.5625 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/2.727, allocations: 24.14 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/2.727, allocations: 10.19 kB / 0.7845 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000514/2.727, allocations: 410.2 kB / 0.7849 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009137/2.736, allocations: 6.684 MB / 0.7914 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/2.737, allocations: 132 kB / 0.7916 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.175e-05/2.737, allocations: 44.86 kB / 0.7916 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3128/3.05, allocations: 155.6 MB / 0.9436 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.628e-05/3.05, allocations: 42.86 kB / 0.9436 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.904e-06/3.05, allocations: 0 / 0.9436 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.002218/3.052, allocations: 466.5 kB / 0.9441 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/3.052, allocations: 110.8 kB / 0.9442 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/3.053, allocations: 1.067 MB / 0.9452 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/3.053, allocations: 29.7 kB / 0.9453 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000277/3.054, allocations: 389.3 kB / 0.9456 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.091e-05/3.054, allocations: 36.75 kB / 0.9457 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/3.054, allocations: 73.59 kB / 0.9457 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001448/3.054, allocations: 382.7 kB / 0.9461 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/3.054, allocations: 127.9 kB / 0.9462 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/3.054, allocations: 264.1 kB / 0.9465 GB, free: 7.594 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/3.055, allocations: 322.4 kB / 0.9468 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/3.055, allocations: 0.75 kB / 0.9468 GB, free: 7.242 MB / 0.7794 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001344/3.056, allocations: 0.5595 MB / 0.9473 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/3.056, allocations: 11.94 kB / 0.9473 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/3.056, allocations: 7.984 kB / 0.9474 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/3.058, allocations: 197.7 kB / 0.9475 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/3.058, allocations: 50.27 kB / 0.9476 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005557/3.058, allocations: 0.6257 MB / 0.9482 GB, free: 5.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003105/3.059, allocations: 47.52 kB / 0.9482 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/3.059, allocations: 15.98 kB / 0.9483 GB, free: 5.742 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.0002762/3.059, allocations: 268.8 kB / 0.9485 GB, free: 5.477 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/3.059, allocations: 63.31 kB / 0.9486 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006523/3.06, allocations: 266.1 kB / 0.9488 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/3.06, allocations: 0 / 0.9488 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/3.06, allocations: 0 / 0.9488 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/3.06, allocations: 9.125 kB / 0.9488 GB, free: 5.141 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/3.062, allocations: 0.8294 MB / 0.9497 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/3.062, allocations: 3.094 kB / 0.9497 GB, free: 4.262 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.055e-05/3.062, allocations: 4 kB / 0.9497 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/3.063, allocations: 166.7 kB / 0.9498 GB, free: 4.098 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/3.063, allocations: 7.984 kB / 0.9498 GB, free: 4.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000506/3.063, allocations: 0.6326 MB / 0.9504 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/3.063, allocations: 0 / 0.9504 GB, free: 3.438 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/3.065, allocations: 405.7 kB / 0.9508 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/3.065, allocations: 180.1 kB / 0.951 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.023e-05/3.065, allocations: 8 kB / 0.951 GB, free: 2.828 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/3.065, allocations: 4 kB / 0.951 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/3.065, allocations: 9.188 kB / 0.951 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/3.065, allocations: 4 kB / 0.951 GB, free: 2.812 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008213/3.066, allocations: 0.7841 MB / 0.9518 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.8e-07/3.066, allocations: 4 kB / 0.9518 GB, free: 2.027 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004112/3.07, allocations: 1.635 MB / 0.9534 GB, free: 400 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.008261/3.078, allocations: 3.269 MB / 0.9566 GB, free: 13.41 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005398/3.079, allocations: 245.6 kB / 0.9568 GB, free: 13.19 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/3.079, allocations: 0 / 0.9568 GB, free: 13.19 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001696/3.079, allocations: 52.95 kB / 0.9569 GB, free: 13.14 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005837/3.08, allocations: 108 kB / 0.957 GB, free: 13.04 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/3.09, allocations: 6.292 MB / 0.9631 GB, free: 6.602 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005618/3.09, allocations: 0.9284 MB / 0.964 GB, free: 5.648 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002285/3.091, allocations: 78.88 kB / 0.9641 GB, free: 5.574 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/3.091, allocations: 210.6 kB / 0.9643 GB, free: 5.375 MB / 0.795 GB Notification: Performance of SimCode: time 8.82e-07/3.091, allocations: 0 / 0.9643 GB, free: 5.375 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.138/4.229, allocations: 60.89 MB / 1.024 GB, free: 455.2 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.69/19.92, allocations: 12.38 kB / 1.024 GB, free: 455.2 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)