Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestBend,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8034/0.8034, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.000322, allocations: 20.86 kB / 236.6 MB, free: 2.008 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05642/0.05677, allocations: 31.35 MB / 267.9 MB, free: 7.527 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.SimpleExamples.TestBend): time 1.58/1.637, allocations: 294.8 MB / 0.5496 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03727/1.675, allocations: 35.08 MB / 0.5839 GB, free: 9.598 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002291/1.675, allocations: 4 kB / 0.5839 GB, free: 9.594 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.000521/1.675, allocations: 267 kB / 0.5841 GB, free: 9.332 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003137/1.676, allocations: 262.8 kB / 0.5844 GB, free: 9.074 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.0221/1.698, allocations: 9.824 MB / 0.594 GB, free: 15.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007434/1.699, allocations: 498.7 kB / 0.5944 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002516/1.699, allocations: 188.4 kB / 0.5946 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002915/1.699, allocations: 235.1 kB / 0.5948 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003169/1.699, allocations: 299.1 kB / 0.5951 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.073e-05/1.699, allocations: 28 kB / 0.5952 GB, free: 14.01 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02739/1.727, allocations: 18.04 MB / 0.6128 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002179/1.727, allocations: 179.4 kB / 0.6129 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002795/1.727, allocations: 270.3 kB / 0.6132 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01788/1.745, allocations: 8.862 MB / 0.6219 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/1.745, allocations: 3.938 kB / 0.6219 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.473e-06/1.745, allocations: 0 / 0.6219 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.898e-06/1.745, allocations: 0 / 0.6219 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.00463/1.75, allocations: 1.823 MB / 0.6236 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/1.75, allocations: 8.031 kB / 0.6236 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.627e-05/1.75, allocations: 70.53 kB / 0.6237 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.959e-05/1.75, allocations: 71.06 kB / 0.6238 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005042/1.751, allocations: 494.3 kB / 0.6243 GB, free: 64 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/1.751, allocations: 16.56 kB / 0.6243 GB, free: 48 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/1.751, allocations: 31.88 kB / 0.6243 GB, free: 16 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/1.751, allocations: 429.3 kB / 0.6247 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/1.751, allocations: 4 kB / 0.6247 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/1.751, allocations: 8 kB / 0.6247 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/1.751, allocations: 15.98 kB / 0.6247 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004002/1.752, allocations: 341.7 kB / 0.6251 GB, free: 15.2 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.03652/1.788, allocations: 18.7 MB / 0.6433 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006033/1.789, allocations: 170.6 kB / 0.6435 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/1.789, allocations: 108.8 kB / 0.6436 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3197/2.109, allocations: 77.91 MB / 0.7197 GB, free: 210 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/2.109, allocations: 36.61 kB / 0.7197 GB, free: 210 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=38): time 2.555e-06/2.109, allocations: 0 / 0.7197 GB, free: 210 MB / 0.5919 GB Notification: Performance of matching and sorting (n=38): time 0.001826/2.111, allocations: 0.5858 MB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/2.111, allocations: 109.3 kB / 0.7204 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/2.112, allocations: 1.008 MB / 0.7214 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/2.112, allocations: 27.3 kB / 0.7214 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/2.112, allocations: 311.8 kB / 0.7217 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.071e-05/2.112, allocations: 120.2 kB / 0.7218 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-05/2.113, allocations: 68.59 kB / 0.7219 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001091/2.113, allocations: 383.6 kB / 0.7222 GB, free: 209 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/2.113, allocations: 156.5 kB / 0.7224 GB, free: 209 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/2.113, allocations: 239.1 kB / 0.7226 GB, free: 209 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/2.113, allocations: 333.4 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/2.113, allocations: 0.6875 kB / 0.7229 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006927/2.114, allocations: 0.5354 MB / 0.7235 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/2.114, allocations: 6.109 kB / 0.7235 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/2.114, allocations: 2.719 kB / 0.7235 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/2.116, allocations: 221.6 kB / 0.7237 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.161e-05/2.116, allocations: 26.66 kB / 0.7237 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000579/2.116, allocations: 0.6717 MB / 0.7244 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/2.117, allocations: 46.39 kB / 0.7244 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/2.117, allocations: 14.61 kB / 0.7244 GB, free: 208.2 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.0002163/2.117, allocations: 255.2 kB / 0.7247 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.746e-05/2.117, allocations: 63.94 kB / 0.7247 GB, free: 208.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006896/2.118, allocations: 0.6962 MB / 0.7254 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000293/2.118, allocations: 254.4 kB / 0.7256 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/2.118, allocations: 0 / 0.7256 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/2.118, allocations: 4.5 kB / 0.7256 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/2.119, allocations: 0.965 MB / 0.7266 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/2.119, allocations: 3 kB / 0.7266 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.26e-05/2.119, allocations: 19.94 kB / 0.7266 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008338/2.12, allocations: 185.2 kB / 0.7268 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/2.12, allocations: 6.719 kB / 0.7268 GB, free: 207.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004704/2.121, allocations: 0.7059 MB / 0.7275 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/2.121, allocations: 1.406 kB / 0.7275 GB, free: 206.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004091/2.121, allocations: 411.4 kB / 0.7279 GB, free: 206.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/2.121, allocations: 176.9 kB / 0.728 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.009e-05/2.121, allocations: 14.44 kB / 0.7281 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/2.122, allocations: 17.67 kB / 0.7281 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/2.122, allocations: 10.5 kB / 0.7281 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/2.122, allocations: 13.16 kB / 0.7281 GB, free: 206.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008053/2.122, allocations: 0.8035 MB / 0.7289 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/2.122, allocations: 0 / 0.7289 GB, free: 206.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003301/2.126, allocations: 1.252 MB / 0.7301 GB, free: 206.4 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.007206/2.133, allocations: 2.638 MB / 0.7327 GB, free: 205.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009603/2.134, allocations: 359.8 kB / 0.733 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/2.134, allocations: 0 / 0.733 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003109/2.134, allocations: 110.2 kB / 0.7331 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/2.135, allocations: 152.7 kB / 0.7333 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009301/2.145, allocations: 6.125 MB / 0.7393 GB, free: 203.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/2.145, allocations: 0.9406 MB / 0.7402 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001912/2.145, allocations: 61.31 kB / 0.7402 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002428/2.146, allocations: 229.5 kB / 0.7405 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.373e-06/2.146, allocations: 2.906 kB / 0.7405 GB, free: 202.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07751/2.223, allocations: 54.53 MB / 0.7937 GB, free: 154.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/16.03, allocations: 3.984 kB / 0.7937 GB, free: 154.5 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestBend.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestBend.pipe 2>&1)