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.8324/0.8324, allocations: 150.9 MB / 166.5 MB, free: 14.37 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003208/0.0003211, allocations: 14.64 kB / 236.5 MB, free: 2.059 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06099/0.06133, allocations: 31.35 MB / 267.9 MB, free: 7.621 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.618/1.68, allocations: 294.8 MB / 0.5494 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04025/1.72, allocations: 35.08 MB / 0.5837 GB, free: 9.648 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000255/1.72, allocations: 0 / 0.5837 GB, free: 9.648 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.0006131/1.721, allocations: 275 kB / 0.584 GB, free: 9.379 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004344/1.721, allocations: 258.9 kB / 0.5842 GB, free: 9.125 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.02315/1.744, allocations: 9.817 MB / 0.5938 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006689/1.745, allocations: 0.4948 MB / 0.5943 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/1.745, allocations: 176.5 kB / 0.5944 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002849/1.746, allocations: 247.1 kB / 0.5947 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002926/1.746, allocations: 295.1 kB / 0.595 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.845e-05/1.746, allocations: 24 kB / 0.595 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02835/1.774, allocations: 18.04 MB / 0.6126 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002408/1.775, allocations: 183.4 kB / 0.6128 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003019/1.775, allocations: 270.2 kB / 0.613 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01919/1.794, allocations: 8.854 MB / 0.6217 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/1.794, allocations: 0 / 0.6217 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.617e-06/1.794, allocations: 4 kB / 0.6217 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.227e-06/1.794, allocations: 0 / 0.6217 GB, free: 2.684 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.004295/1.798, allocations: 1.824 MB / 0.6235 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/1.798, allocations: 8.031 kB / 0.6235 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.983e-05/1.799, allocations: 74.52 kB / 0.6235 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.524e-05/1.799, allocations: 71.06 kB / 0.6236 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/1.799, allocations: 490.3 kB / 0.6241 GB, free: 128 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/1.799, allocations: 16.56 kB / 0.6241 GB, free: 112 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/1.799, allocations: 27.94 kB / 0.6241 GB, free: 84 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005171/1.8, allocations: 433.3 kB / 0.6245 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/1.8, allocations: 3.938 kB / 0.6245 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/1.8, allocations: 12 kB / 0.6246 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/1.8, allocations: 15.98 kB / 0.6246 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003735/1.8, allocations: 345.7 kB / 0.6249 GB, free: 15.25 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.03525/1.835, allocations: 18.7 MB / 0.6432 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005821/1.836, allocations: 176.7 kB / 0.6433 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/1.836, allocations: 108.8 kB / 0.6434 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3343/2.171, allocations: 77.91 MB / 0.7195 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/2.171, allocations: 30.56 kB / 0.7195 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.094e-06/2.171, allocations: 0 / 0.7195 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001774/2.172, allocations: 0.5955 MB / 0.7201 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/2.172, allocations: 102.8 kB / 0.7202 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009756/2.173, allocations: 1.009 MB / 0.7212 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/2.173, allocations: 25.7 kB / 0.7212 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/2.174, allocations: 299.8 kB / 0.7215 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/2.174, allocations: 125.5 kB / 0.7216 GB, free: 209 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.663e-05/2.174, allocations: 70.47 kB / 0.7217 GB, free: 209 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001073/2.174, allocations: 385.9 kB / 0.7221 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/2.174, allocations: 158.2 kB / 0.7222 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/2.174, allocations: 242.8 kB / 0.7225 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/2.175, allocations: 333.4 kB / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/2.175, allocations: 0 / 0.7228 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005835/2.175, allocations: 0.5355 MB / 0.7233 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/2.175, allocations: 5.5 kB / 0.7233 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.629e-06/2.175, allocations: 1.438 kB / 0.7233 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/2.177, allocations: 223.9 kB / 0.7235 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.819e-05/2.177, allocations: 23.28 kB / 0.7235 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005223/2.178, allocations: 0.68 MB / 0.7242 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/2.178, allocations: 45.17 kB / 0.7243 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/2.178, allocations: 6.188 kB / 0.7243 GB, free: 207.9 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.0002/2.178, allocations: 248.2 kB / 0.7245 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.199e-05/2.178, allocations: 63.58 kB / 0.7246 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006783/2.179, allocations: 0.6999 MB / 0.7252 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002866/2.179, allocations: 247.8 kB / 0.7255 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/2.179, allocations: 0 / 0.7255 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/2.179, allocations: 4.984 kB / 0.7255 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009739/2.18, allocations: 0.9776 MB / 0.7264 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/2.18, allocations: 8.766 kB / 0.7264 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.967e-05/2.18, allocations: 19.53 kB / 0.7265 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008319/2.181, allocations: 172.5 kB / 0.7266 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/2.181, allocations: 10.56 kB / 0.7266 GB, free: 207.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004564/2.181, allocations: 0.7004 MB / 0.7273 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/2.181, allocations: 2.875 kB / 0.7273 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003741/2.182, allocations: 415.7 kB / 0.7277 GB, free: 206.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/2.182, allocations: 175.4 kB / 0.7279 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.443e-05/2.182, allocations: 18.48 kB / 0.7279 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/2.182, allocations: 11.12 kB / 0.7279 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/2.182, allocations: 12.58 kB / 0.7279 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/2.182, allocations: 4.797 kB / 0.7279 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007396/2.183, allocations: 0.8168 MB / 0.7287 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/2.183, allocations: 0 / 0.7287 GB, free: 206.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003125/2.186, allocations: 1.248 MB / 0.7299 GB, free: 206.1 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.005426/2.192, allocations: 2.635 MB / 0.7325 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007462/2.192, allocations: 355.6 kB / 0.7329 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/2.192, allocations: 2.406 kB / 0.7329 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002547/2.193, allocations: 112.5 kB / 0.733 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000892/2.194, allocations: 152.9 kB / 0.7331 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007615/2.201, allocations: 6.118 MB / 0.7391 GB, free: 203.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003754/2.202, allocations: 0.937 MB / 0.74 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001913/2.202, allocations: 55.2 kB / 0.7401 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002194/2.202, allocations: 232.2 kB / 0.7403 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of SimCode: time 8.22e-07/2.202, allocations: 0 / 0.7403 GB, free: 202.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07915/2.281, allocations: 54.56 MB / 0.7936 GB, free: 154.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/16.08, allocations: 9.375 kB / 0.7936 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)