Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.7984/0.7984, allocations: 150.9 MB / 166.1 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002917, allocations: 11.98 kB / 204.2 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1275, allocations: 31.33 MB / 235.6 MB, free: 5.426 MB / 190.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.TestDiaphragm): time 1.491/1.619, allocations: 293.6 MB / 0.5168 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03419/1.653, allocations: 34.89 MB / 0.5509 GB, free: 10.94 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/1.653, allocations: 4 kB / 0.5509 GB, free: 10.93 MB / 446.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.0003363/1.654, allocations: 87.56 kB / 0.551 GB, free: 10.85 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001723/1.654, allocations: 87.36 kB / 0.551 GB, free: 10.76 MB / 446.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.02288/1.677, allocations: 8.45 MB / 0.5593 GB, free: 2.309 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004503/1.677, allocations: 350.9 kB / 0.5596 GB, free: 1.965 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/1.677, allocations: 119.1 kB / 0.5597 GB, free: 1.852 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001958/1.677, allocations: 159.3 kB / 0.5599 GB, free: 1.695 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/1.678, allocations: 111.4 kB / 0.56 GB, free: 1.586 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/1.678, allocations: 20 kB / 0.56 GB, free: 1.566 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02421/1.702, allocations: 17.82 MB / 0.5774 GB, free: 15.72 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.257e-05/1.702, allocations: 47.72 kB / 0.5775 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/1.702, allocations: 143.3 kB / 0.5776 GB, free: 15.54 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01583/1.718, allocations: 8.488 MB / 0.5859 GB, free: 7.027 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.718, allocations: 3.938 kB / 0.5859 GB, free: 7.023 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.704e-06/1.718, allocations: 3.938 kB / 0.5859 GB, free: 7.02 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.694e-05/1.718, allocations: 4 kB / 0.5859 GB, free: 7.016 MB / 478.1 MB 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.003719/1.722, allocations: 1.447 MB / 0.5873 GB, free: 5.52 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/1.722, allocations: 12.03 kB / 0.5873 GB, free: 5.508 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.949e-05/1.722, allocations: 62.53 kB / 0.5874 GB, free: 5.438 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.51e-05/1.722, allocations: 27.62 kB / 0.5874 GB, free: 5.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/1.722, allocations: 240.3 kB / 0.5876 GB, free: 5.137 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/1.722, allocations: 12.44 kB / 0.5876 GB, free: 5.121 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/1.722, allocations: 20 kB / 0.5877 GB, free: 5.102 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/1.723, allocations: 325 kB / 0.588 GB, free: 4.754 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/1.723, allocations: 4 kB / 0.588 GB, free: 4.75 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/1.723, allocations: 8 kB / 0.588 GB, free: 4.742 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/1.723, allocations: 15.98 kB / 0.588 GB, free: 4.727 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000262/1.723, allocations: 174.9 kB / 0.5882 GB, free: 4.559 MB / 478.1 MB 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.03295/1.756, allocations: 18.05 MB / 0.6058 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/1.756, allocations: 146.6 kB / 0.6059 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.69e-05/1.757, allocations: 92.77 kB / 0.606 GB, free: 400 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1312/1.888, allocations: 77.45 MB / 0.6817 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/1.888, allocations: 34.56 kB / 0.6817 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.174e-06/1.888, allocations: 0 / 0.6817 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008791/1.889, allocations: 423.4 kB / 0.6821 GB, free: 9.648 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/1.889, allocations: 81.05 kB / 0.6822 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001954/1.889, allocations: 227 kB / 0.6824 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/1.889, allocations: 29.7 kB / 0.6824 GB, free: 9.285 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.3e-05/1.889, allocations: 160.4 kB / 0.6826 GB, free: 9.125 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.812e-05/1.889, allocations: 106.3 kB / 0.6827 GB, free: 9.02 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/1.889, allocations: 49.69 kB / 0.6827 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001086/1.889, allocations: 334.8 kB / 0.683 GB, free: 8.629 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/1.889, allocations: 71.98 kB / 0.6831 GB, free: 8.559 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/1.89, allocations: 137.9 kB / 0.6832 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/1.89, allocations: 233.2 kB / 0.6835 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.89, allocations: 0 / 0.6835 GB, free: 8.156 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003957/1.89, allocations: 313.8 kB / 0.6838 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/1.89, allocations: 4 kB / 0.6838 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/1.89, allocations: 5.219 kB / 0.6838 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009737/1.891, allocations: 132.9 kB / 0.6839 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.912e-05/1.891, allocations: 19.98 kB / 0.6839 GB, free: 7.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004685/1.892, allocations: 0.6147 MB / 0.6845 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/1.892, allocations: 27.72 kB / 0.6845 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/1.892, allocations: 8 kB / 0.6846 GB, free: 7.004 MB / 0.5762 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.0001173/1.892, allocations: 137.9 kB / 0.6847 GB, free: 6.859 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.472e-05/1.892, allocations: 23.7 kB / 0.6847 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008589/1.893, allocations: 0.6026 MB / 0.6853 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005169/1.894, allocations: 238.3 kB / 0.6855 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.894, allocations: 7.938 kB / 0.6855 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/1.894, allocations: 0 / 0.6855 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/1.895, allocations: 0.7341 MB / 0.6862 GB, free: 5.121 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/1.895, allocations: 0 / 0.6862 GB, free: 5.121 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.537e-05/1.895, allocations: 16 kB / 0.6863 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003593/1.895, allocations: 114.4 kB / 0.6864 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/1.895, allocations: 0 / 0.6864 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004279/1.895, allocations: 0.646 MB / 0.687 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.896, allocations: 3.938 kB / 0.687 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005893/1.896, allocations: 341.8 kB / 0.6873 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/1.896, allocations: 108.8 kB / 0.6874 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.35e-05/1.896, allocations: 15.91 kB / 0.6875 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/1.896, allocations: 8 kB / 0.6875 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/1.896, allocations: 7.984 kB / 0.6875 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/1.896, allocations: 4 kB / 0.6875 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002156/1.897, allocations: 237.9 kB / 0.6877 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.897, allocations: 0 / 0.6877 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002779/1.899, allocations: 1.21 MB / 0.6889 GB, free: 2.367 MB / 0.5762 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.1441/2.044, allocations: 2.599 MB / 0.6914 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007114/2.044, allocations: 255.7 kB / 0.6917 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/2.044, allocations: 1.469 kB / 0.6917 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002434/2.045, allocations: 103.3 kB / 0.6918 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/2.045, allocations: 133.8 kB / 0.6919 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004532/2.05, allocations: 3.154 MB / 0.695 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001944/2.05, allocations: 0.7668 MB / 0.6957 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001588/2.05, allocations: 31 kB / 0.6957 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/2.05, allocations: 95.47 kB / 0.6958 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of SimCode: time 1.233e-06/2.05, allocations: 0.9062 kB / 0.6958 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06494/2.115, allocations: 48.46 MB / 0.7432 GB, free: 197.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001289/2.116, allocations: 230.4 kB / 0.7434 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.959/6.075, allocations: 0 / 0.7434 GB, free: 197.3 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)