Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",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.8026/0.8026, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005329/0.0005329, allocations: 14.62 kB / 236.5 MB, free: 2.043 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07816/0.07871, allocations: 31.35 MB / 267.9 MB, free: 7.609 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.TestDiaphragm): time 1.59/1.668, allocations: 294.6 MB / 0.5493 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03716/1.705, allocations: 34.66 MB / 0.5832 GB, free: 10.23 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002286/1.706, allocations: 4 kB / 0.5832 GB, free: 10.23 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/Diaphragm.mo:30:3-32: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/Diaphragm.mo:33:3-35:37: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.0003851/1.706, allocations: 111.3 kB / 0.5833 GB, free: 10.12 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001878/1.706, allocations: 91.23 kB / 0.5833 GB, free: 10.03 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.02305/1.729, allocations: 9.648 MB / 0.5928 GB, free: 376 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004968/1.73, allocations: 354.8 kB / 0.5931 GB, free: 20 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/1.73, allocations: 112.6 kB / 0.5932 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/1.73, allocations: 151.3 kB / 0.5934 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001479/1.73, allocations: 111.4 kB / 0.5935 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.655e-05/1.731, allocations: 16 kB / 0.5935 GB, free: 15.64 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02815/1.759, allocations: 17.97 MB / 0.611 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.038e-05/1.759, allocations: 39.73 kB / 0.6111 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001808/1.759, allocations: 135.3 kB / 0.6112 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01958/1.779, allocations: 8.465 MB / 0.6195 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/1.779, allocations: 4 kB / 0.6195 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.114e-06/1.779, allocations: 0 / 0.6195 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.806e-06/1.779, allocations: 0 / 0.6195 GB, free: 4.984 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00415/1.783, allocations: 1.454 MB / 0.6209 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/1.783, allocations: 12.03 kB / 0.6209 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.366e-05/1.783, allocations: 62.53 kB / 0.621 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.055e-05/1.783, allocations: 31.56 kB / 0.621 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/1.783, allocations: 231.6 kB / 0.6212 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/1.783, allocations: 20.44 kB / 0.6212 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/1.783, allocations: 24 kB / 0.6213 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/1.784, allocations: 321 kB / 0.6216 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/1.784, allocations: 3.938 kB / 0.6216 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/1.784, allocations: 4 kB / 0.6216 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/1.784, allocations: 16 kB / 0.6216 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/1.784, allocations: 177 kB / 0.6218 GB, free: 2.516 MB / 0.4981 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.0353/1.819, allocations: 18.16 MB / 0.6395 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004838/1.82, allocations: 162.4 kB / 0.6396 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/1.82, allocations: 84.84 kB / 0.6397 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3251/2.145, allocations: 77.91 MB / 0.7158 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/2.145, allocations: 39.19 kB / 0.7158 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.024e-06/2.145, allocations: 0 / 0.7158 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0008603/2.146, allocations: 424.8 kB / 0.7162 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/2.146, allocations: 79.27 kB / 0.7163 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/2.146, allocations: 220.7 kB / 0.7165 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/2.146, allocations: 30.98 kB / 0.7166 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/2.146, allocations: 153.1 kB / 0.7167 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.489e-05/2.146, allocations: 110.1 kB / 0.7168 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/2.147, allocations: 53.55 kB / 0.7169 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.005e-05/2.147, allocations: 335.2 kB / 0.7172 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/2.147, allocations: 76.81 kB / 0.7173 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/2.147, allocations: 130.5 kB / 0.7174 GB, free: 211 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/2.147, allocations: 224.4 kB / 0.7176 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/2.147, allocations: 5.188 kB / 0.7176 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003944/2.148, allocations: 306.9 kB / 0.7179 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/2.148, allocations: 11.56 kB / 0.7179 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/2.148, allocations: 1.281 kB / 0.7179 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009648/2.149, allocations: 136.5 kB / 0.718 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.867e-05/2.149, allocations: 23.64 kB / 0.7181 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000388/2.149, allocations: 0.6064 MB / 0.7187 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/2.149, allocations: 43.52 kB / 0.7187 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/2.149, allocations: 7.047 kB / 0.7187 GB, free: 210.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.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 (15): * Single equations (assignments): 12 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001027/2.149, allocations: 132.3 kB / 0.7188 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.116e-05/2.149, allocations: 20.09 kB / 0.7188 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007799/2.15, allocations: 0.6079 MB / 0.7194 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000483/2.151, allocations: 230.5 kB / 0.7197 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/2.151, allocations: 0 / 0.7197 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/2.151, allocations: 0 / 0.7197 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000913/2.152, allocations: 0.7347 MB / 0.7204 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/2.152, allocations: 4 kB / 0.7204 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-05/2.152, allocations: 16.75 kB / 0.7204 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003173/2.152, allocations: 113 kB / 0.7205 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/2.152, allocations: 4.844 kB / 0.7205 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003446/2.152, allocations: 0.6475 MB / 0.7211 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/2.152, allocations: 0.8438 kB / 0.7211 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005251/2.153, allocations: 345 kB / 0.7215 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.384e-05/2.153, allocations: 107.4 kB / 0.7216 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/2.153, allocations: 13.45 kB / 0.7216 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/2.153, allocations: 6.281 kB / 0.7216 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/2.153, allocations: 7.438 kB / 0.7216 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/2.153, allocations: 7.719 kB / 0.7216 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001822/2.153, allocations: 238 kB / 0.7218 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/2.153, allocations: 0 / 0.7218 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002924/2.156, allocations: 1.212 MB / 0.723 GB, free: 208.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 12 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005353/2.162, allocations: 2.543 MB / 0.7255 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006384/2.162, allocations: 256 kB / 0.7257 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/2.162, allocations: 0.5625 kB / 0.7257 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002242/2.163, allocations: 104.1 kB / 0.7258 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007378/2.163, allocations: 121.4 kB / 0.726 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003743/2.167, allocations: 3.077 MB / 0.729 GB, free: 206.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/2.167, allocations: 0.7693 MB / 0.7297 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001155/2.167, allocations: 25.19 kB / 0.7297 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.767e-05/2.168, allocations: 94.53 kB / 0.7298 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of SimCode: time 4.11e-07/2.168, allocations: 0 / 0.7298 GB, free: 205.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07158/2.239, allocations: 48.37 MB / 0.7771 GB, free: 170 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/15.28, allocations: 7.359 kB / 0.7771 GB, free: 170 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)