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.8239/0.8239, allocations: 150.9 MB / 166.5 MB, free: 14.36 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004758/0.0004759, allocations: 18.41 kB / 236.5 MB, free: 2.207 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05542/0.05591, allocations: 31.34 MB / 267.9 MB, free: 7.734 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.623/1.678, allocations: 295.2 MB / 0.5499 GB, free: 12.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04349/1.722, allocations: 34.67 MB / 0.5837 GB, free: 10.16 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002324/1.722, allocations: 4 kB / 0.5837 GB, free: 10.15 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.0004084/1.723, allocations: 107.2 kB / 0.5838 GB, free: 10.05 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002039/1.723, allocations: 103.2 kB / 0.5839 GB, free: 9.949 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.02397/1.747, allocations: 9.638 MB / 0.5933 GB, free: 312 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005573/1.747, allocations: 362.8 kB / 0.5937 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/1.748, allocations: 116.6 kB / 0.5938 GB, free: 15.83 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/1.748, allocations: 151.2 kB / 0.5939 GB, free: 15.69 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/1.748, allocations: 111.4 kB / 0.594 GB, free: 15.58 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.07e-05/1.748, allocations: 20 kB / 0.5941 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03149/1.78, allocations: 17.95 MB / 0.6116 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.225e-05/1.78, allocations: 55.77 kB / 0.6116 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001959/1.78, allocations: 127.4 kB / 0.6118 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01825/1.798, allocations: 8.497 MB / 0.6201 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.798, allocations: 0 / 0.6201 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.383e-06/1.798, allocations: 0 / 0.6201 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.734e-06/1.798, allocations: 0 / 0.6201 GB, free: 4.883 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.003953/1.802, allocations: 1.502 MB / 0.6215 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/1.802, allocations: 8.031 kB / 0.6215 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.355e-05/1.802, allocations: 66.53 kB / 0.6216 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.451e-05/1.802, allocations: 27.81 kB / 0.6216 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/1.803, allocations: 232 kB / 0.6218 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/1.803, allocations: 24.44 kB / 0.6219 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/1.803, allocations: 19.94 kB / 0.6219 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004625/1.803, allocations: 317 kB / 0.6222 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/1.803, allocations: 0 / 0.6222 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/1.803, allocations: 16 kB / 0.6222 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/1.803, allocations: 15.98 kB / 0.6222 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002719/1.804, allocations: 173 kB / 0.6224 GB, free: 2.359 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.0385/1.842, allocations: 18.18 MB / 0.6401 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004492/1.843, allocations: 150.5 kB / 0.6403 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/1.843, allocations: 88.84 kB / 0.6404 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3224/2.165, allocations: 77.91 MB / 0.7165 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/2.165, allocations: 35.47 kB / 0.7165 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.944e-06/2.165, allocations: 0 / 0.7165 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.000847/2.166, allocations: 423.5 kB / 0.7169 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/2.166, allocations: 80.23 kB / 0.717 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/2.166, allocations: 225.6 kB / 0.7172 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/2.166, allocations: 25.7 kB / 0.7172 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.01e-05/2.166, allocations: 158.1 kB / 0.7174 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.769e-05/2.166, allocations: 120.1 kB / 0.7175 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.914e-05/2.166, allocations: 53.28 kB / 0.7175 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.142e-05/2.167, allocations: 329.7 kB / 0.7178 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/2.167, allocations: 83.03 kB / 0.7179 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/2.167, allocations: 130.2 kB / 0.718 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002254/2.167, allocations: 223.7 kB / 0.7183 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/2.167, allocations: 0 / 0.7183 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003577/2.167, allocations: 318.8 kB / 0.7186 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/2.167, allocations: 7.375 kB / 0.7186 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/2.167, allocations: 1.078 kB / 0.7186 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008565/2.168, allocations: 138.4 kB / 0.7187 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.95e-05/2.168, allocations: 16.16 kB / 0.7187 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003747/2.169, allocations: 0.6175 MB / 0.7193 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/2.169, allocations: 28.28 kB / 0.7193 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/2.169, allocations: 11.12 kB / 0.7194 GB, free: 210.2 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.0001025/2.169, allocations: 133 kB / 0.7195 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.071e-05/2.169, allocations: 19.86 kB / 0.7195 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007274/2.17, allocations: 0.6185 MB / 0.7201 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004456/2.17, allocations: 223.7 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.738e-06/2.17, allocations: 1.938 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/2.17, allocations: 0.5625 kB / 0.7203 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00084/2.171, allocations: 0.7393 MB / 0.721 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/2.171, allocations: 0 / 0.721 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-05/2.171, allocations: 22.36 kB / 0.7211 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003008/2.172, allocations: 111.3 kB / 0.7212 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/2.172, allocations: 6.531 kB / 0.7212 GB, free: 209.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003103/2.172, allocations: 0.6396 MB / 0.7218 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/2.172, allocations: 0 / 0.7218 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000495/2.172, allocations: 347.5 kB / 0.7221 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/2.172, allocations: 115.5 kB / 0.7222 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.728e-05/2.172, allocations: 11.39 kB / 0.7223 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/2.173, allocations: 5.812 kB / 0.7223 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.96e-05/2.173, allocations: 10.27 kB / 0.7223 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/2.173, allocations: 3.406 kB / 0.7223 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001706/2.173, allocations: 239.7 kB / 0.7225 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/2.173, allocations: 0 / 0.7225 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002368/2.175, allocations: 1.225 MB / 0.7237 GB, free: 208.5 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.004565/2.18, allocations: 2.561 MB / 0.7262 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005001/2.18, allocations: 263.4 kB / 0.7265 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/2.18, allocations: 0 / 0.7265 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002212/2.181, allocations: 96.09 kB / 0.7265 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006969/2.181, allocations: 126.1 kB / 0.7267 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003051/2.184, allocations: 3.097 MB / 0.7297 GB, free: 206 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/2.184, allocations: 0.7656 MB / 0.7304 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000104/2.185, allocations: 27.08 kB / 0.7305 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.11e-05/2.185, allocations: 94.5 kB / 0.7306 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of SimCode: time 3.3e-07/2.185, allocations: 0 / 0.7306 GB, free: 205.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07156/2.256, allocations: 48.24 MB / 0.7777 GB, free: 169.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.76/16.01, allocations: 4.625 kB / 0.7777 GB, free: 169.9 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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)