Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.8221/0.8221, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004692/0.0004692, allocations: 14.52 kB / 236.5 MB, free: 2.051 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05417/0.05465, allocations: 31.35 MB / 267.9 MB, free: 7.617 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.Examples.Book.SimpleExamples.PressureLoss.TestBend): time 1.638/1.693, allocations: 295.2 MB / 0.5499 GB, free: 12.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04222/1.735, allocations: 35.09 MB / 0.5842 GB, free: 9.609 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002671/1.736, allocations: 7.938 kB / 0.5842 GB, free: 9.602 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:55:3-57:42:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/Bend.mo:58:3-60:43:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005848/1.736, allocations: 264.9 kB / 0.5844 GB, free: 9.344 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/1.737, allocations: 266.8 kB / 0.5847 GB, free: 9.082 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.02474/1.761, allocations: 9.819 MB / 0.5943 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000745/1.762, allocations: 0.491 MB / 0.5948 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/1.762, allocations: 188.4 kB / 0.5949 GB, free: 14.58 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/1.763, allocations: 235.1 kB / 0.5952 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003409/1.763, allocations: 295.1 kB / 0.5954 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/1.763, allocations: 28 kB / 0.5955 GB, free: 14.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03187/1.795, allocations: 18.04 MB / 0.6131 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002658/1.795, allocations: 183.4 kB / 0.6133 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003171/1.796, allocations: 274.2 kB / 0.6135 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02076/1.816, allocations: 8.878 MB / 0.6222 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/1.817, allocations: 0 / 0.6222 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/1.817, allocations: 0 / 0.6222 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.574e-05/1.817, allocations: 0 / 0.6222 GB, free: 2.621 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004717/1.821, allocations: 1.886 MB / 0.624 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/1.821, allocations: 8.031 kB / 0.624 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.636e-05/1.821, allocations: 74.53 kB / 0.6241 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/1.822, allocations: 75.53 kB / 0.6242 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005937/1.822, allocations: 0.491 MB / 0.6247 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/1.822, allocations: 20.56 kB / 0.6247 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/1.822, allocations: 31.88 kB / 0.6247 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005891/1.823, allocations: 429.3 kB / 0.6251 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/1.823, allocations: 0 / 0.6251 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.606e-05/1.823, allocations: 12 kB / 0.6251 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/1.823, allocations: 19.97 kB / 0.6252 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004748/1.823, allocations: 345.7 kB / 0.6255 GB, free: 15.1 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03964/1.863, allocations: 18.7 MB / 0.6437 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/1.864, allocations: 174.5 kB / 0.6439 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/1.864, allocations: 104.8 kB / 0.644 GB, free: 10.24 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3282/2.192, allocations: 77.91 MB / 0.7201 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/2.192, allocations: 34.56 kB / 0.7201 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.194e-06/2.192, allocations: 0 / 0.7201 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.00174/2.194, allocations: 0.5906 MB / 0.7207 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/2.194, allocations: 111.6 kB / 0.7208 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009979/2.195, allocations: 1.005 MB / 0.7218 GB, free: 209 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/2.195, allocations: 28.52 kB / 0.7218 GB, free: 209 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000175/2.195, allocations: 308.2 kB / 0.7221 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/2.195, allocations: 132 kB / 0.7222 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.831e-05/2.195, allocations: 65.94 kB / 0.7223 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.097e-05/2.195, allocations: 385 kB / 0.7227 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/2.196, allocations: 158.5 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/2.196, allocations: 238 kB / 0.7231 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/2.196, allocations: 330.4 kB / 0.7234 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/2.196, allocations: 0 / 0.7234 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005772/2.197, allocations: 0.5378 MB / 0.7239 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/2.197, allocations: 11.34 kB / 0.7239 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/2.197, allocations: 0 / 0.7239 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001484/2.198, allocations: 224.2 kB / 0.7241 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.437e-05/2.198, allocations: 20.98 kB / 0.7241 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004973/2.199, allocations: 0.6885 MB / 0.7248 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/2.199, allocations: 40.81 kB / 0.7248 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/2.199, allocations: 12.67 kB / 0.7249 GB, free: 207.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001989/2.199, allocations: 249.5 kB / 0.7251 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.289e-05/2.199, allocations: 65.88 kB / 0.7252 GB, free: 207.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006533/2.2, allocations: 0.6969 MB / 0.7258 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002854/2.2, allocations: 253.4 kB / 0.7261 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/2.2, allocations: 0 / 0.7261 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/2.2, allocations: 2.297 kB / 0.7261 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009479/2.201, allocations: 0.9805 MB / 0.727 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/2.201, allocations: 7.031 kB / 0.7271 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.724e-05/2.201, allocations: 11.69 kB / 0.7271 GB, free: 207 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007827/2.202, allocations: 183 kB / 0.7272 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/2.202, allocations: 3.406 kB / 0.7272 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004248/2.203, allocations: 0.7023 MB / 0.7279 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/2.203, allocations: 0.6875 kB / 0.7279 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003641/2.203, allocations: 428.3 kB / 0.7283 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/2.203, allocations: 175.6 kB / 0.7285 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/2.203, allocations: 14.3 kB / 0.7285 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001976/2.203, allocations: 15.44 kB / 0.7285 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.129e-05/2.203, allocations: 11.19 kB / 0.7285 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/2.203, allocations: 6.312 kB / 0.7285 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007141/2.204, allocations: 0.8133 MB / 0.7293 GB, free: 206 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.204, allocations: 2.844 kB / 0.7293 GB, free: 206 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002735/2.207, allocations: 1.266 MB / 0.7306 GB, free: 206 MB / 0.5919 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 (12): * Single equations (assignments): 11 * 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.005005/2.212, allocations: 2.654 MB / 0.7332 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007007/2.213, allocations: 370.3 kB / 0.7335 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/2.213, allocations: 3.562 kB / 0.7335 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002552/2.213, allocations: 108.9 kB / 0.7336 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008314/2.214, allocations: 146.4 kB / 0.7338 GB, free: 205.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006791/2.221, allocations: 6.148 MB / 0.7398 GB, free: 203.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/2.221, allocations: 0.9413 MB / 0.7407 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001676/2.221, allocations: 63.52 kB / 0.7408 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/2.221, allocations: 230.7 kB / 0.741 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of SimCode: time 1.442e-06/2.221, allocations: 0 / 0.741 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07816/2.299, allocations: 54.29 MB / 0.794 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.14/16.44, allocations: 12.44 kB / 0.794 GB, free: 154.4 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)