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.8334/0.8334, allocations: 150.8 MB / 166.1 MB, free: 14.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.000323, allocations: 15.95 kB / 204.2 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1601, allocations: 31.33 MB / 235.6 MB, free: 5.434 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.Book.SimpleExamples.PressureLoss.TestDiaphragm): time 1.64/1.8, allocations: 293.5 MB / 0.5167 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03711/1.837, allocations: 34.88 MB / 0.5508 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002213/1.837, allocations: 8 kB / 0.5508 GB, free: 10.98 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.0003888/1.838, allocations: 100.5 kB / 0.5509 GB, free: 10.88 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/1.838, allocations: 79.38 kB / 0.5509 GB, free: 10.8 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.02332/1.861, allocations: 8.457 MB / 0.5592 GB, free: 2.344 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005305/1.862, allocations: 346.9 kB / 0.5595 GB, free: 2.004 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/1.862, allocations: 117.1 kB / 0.5596 GB, free: 1.891 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/1.862, allocations: 147.3 kB / 0.5598 GB, free: 1.746 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/1.862, allocations: 115.4 kB / 0.5599 GB, free: 1.633 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/1.862, allocations: 24 kB / 0.5599 GB, free: 1.609 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02755/1.89, allocations: 17.82 MB / 0.5773 GB, free: 15.76 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.233e-05/1.89, allocations: 39.86 kB / 0.5774 GB, free: 15.72 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/1.89, allocations: 143.3 kB / 0.5775 GB, free: 15.58 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0234/1.914, allocations: 8.492 MB / 0.5858 GB, free: 7.07 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/1.914, allocations: 3.938 kB / 0.5858 GB, free: 7.066 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.156e-06/1.914, allocations: 0 / 0.5858 GB, free: 7.066 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/1.914, allocations: 0 / 0.5858 GB, free: 7.066 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.004798/1.918, allocations: 1.451 MB / 0.5872 GB, free: 5.566 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.919, allocations: 12.03 kB / 0.5872 GB, free: 5.555 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.386e-05/1.919, allocations: 62.53 kB / 0.5873 GB, free: 5.484 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.22e-05/1.919, allocations: 35.56 kB / 0.5873 GB, free: 5.449 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002424/1.919, allocations: 233.1 kB / 0.5875 GB, free: 5.184 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.352e-05/1.919, allocations: 20.38 kB / 0.5876 GB, free: 5.16 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/1.919, allocations: 16 kB / 0.5876 GB, free: 5.145 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/1.92, allocations: 321 kB / 0.5879 GB, free: 4.801 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/1.92, allocations: 0 / 0.5879 GB, free: 4.801 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/1.92, allocations: 8 kB / 0.5879 GB, free: 4.793 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/1.92, allocations: 15.98 kB / 0.5879 GB, free: 4.777 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/1.92, allocations: 173 kB / 0.5881 GB, free: 4.609 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.03449/1.954, allocations: 18.06 MB / 0.6057 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004587/1.955, allocations: 142.6 kB / 0.6058 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/1.955, allocations: 88.84 kB / 0.6059 GB, free: 452 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1424/2.097, allocations: 77.45 MB / 0.6816 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/2.097, allocations: 38.55 kB / 0.6816 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.124e-06/2.097, allocations: 8 kB / 0.6816 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009003/2.098, allocations: 422.7 kB / 0.682 GB, free: 9.691 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/2.098, allocations: 77.11 kB / 0.6821 GB, free: 9.598 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002762/2.099, allocations: 227 kB / 0.6823 GB, free: 9.367 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/2.099, allocations: 25.7 kB / 0.6823 GB, free: 9.336 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/2.099, allocations: 160.4 kB / 0.6825 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/2.099, allocations: 110.3 kB / 0.6826 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/2.099, allocations: 49.7 kB / 0.6826 GB, free: 9.008 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001165/2.099, allocations: 334.8 kB / 0.683 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001116/2.099, allocations: 75.91 kB / 0.683 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/2.1, allocations: 134 kB / 0.6832 GB, free: 8.445 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002719/2.1, allocations: 229.2 kB / 0.6834 GB, free: 8.203 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/2.1, allocations: 0 / 0.6834 GB, free: 8.203 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004571/2.1, allocations: 313.9 kB / 0.6837 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/2.1, allocations: 4 kB / 0.6837 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/2.1, allocations: 4 kB / 0.6837 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009525/2.101, allocations: 140.8 kB / 0.6838 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-05/2.101, allocations: 19.94 kB / 0.6838 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005548/2.102, allocations: 0.607 MB / 0.6844 GB, free: 7.086 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/2.102, allocations: 39.64 kB / 0.6845 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/2.102, allocations: 8.062 kB / 0.6845 GB, free: 7.039 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.0001346/2.102, allocations: 137.8 kB / 0.6846 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.592e-05/2.102, allocations: 19.72 kB / 0.6846 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008785/2.103, allocations: 0.6065 MB / 0.6852 GB, free: 6.203 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005135/2.104, allocations: 230.3 kB / 0.6854 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/2.104, allocations: 3.938 kB / 0.6854 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/2.104, allocations: 0 / 0.6854 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/2.105, allocations: 0.7327 MB / 0.6861 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/2.105, allocations: 0 / 0.6861 GB, free: 5.172 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.49e-05/2.105, allocations: 23.92 kB / 0.6862 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003501/2.105, allocations: 114.5 kB / 0.6863 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/2.105, allocations: 0 / 0.6863 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004678/2.106, allocations: 0.6421 MB / 0.6869 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/2.106, allocations: 0 / 0.6869 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000605/2.106, allocations: 349.5 kB / 0.6872 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.87e-05/2.107, allocations: 104.8 kB / 0.6873 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.283e-05/2.107, allocations: 11.84 kB / 0.6874 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/2.107, allocations: 8.062 kB / 0.6874 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.702e-05/2.107, allocations: 11.98 kB / 0.6874 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/2.107, allocations: 8 kB / 0.6874 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002245/2.107, allocations: 237.9 kB / 0.6876 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.107, allocations: 0 / 0.6876 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003276/2.11, allocations: 1.214 MB / 0.6888 GB, free: 2.406 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.1608/2.271, allocations: 2.597 MB / 0.6913 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007094/2.272, allocations: 253.6 kB / 0.6916 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/2.272, allocations: 3.406 kB / 0.6916 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002669/2.272, allocations: 100.9 kB / 0.6917 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007841/2.273, allocations: 123.4 kB / 0.6918 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004533/2.277, allocations: 3.16 MB / 0.6949 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/2.278, allocations: 0.7659 MB / 0.6956 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001976/2.278, allocations: 26.38 kB / 0.6956 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/2.278, allocations: 97.59 kB / 0.6957 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/2.278, allocations: 2.188 kB / 0.6957 GB, free: 223.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06978/2.348, allocations: 48.49 MB / 0.7431 GB, free: 197.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/2.348, allocations: 252.8 kB / 0.7433 GB, free: 197.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.023/6.371, allocations: 4 kB / 0.7433 GB, free: 197.3 MB / 0.5762 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)