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.8058/0.8058, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003268, allocations: 15.55 kB / 236.6 MB, free: 1.996 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06664/0.06698, 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.TestDiaphragm): time 1.667/1.734, allocations: 294.7 MB / 0.5495 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04044/1.775, allocations: 34.67 MB / 0.5833 GB, free: 10.16 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002439/1.775, allocations: 0 / 0.5833 GB, free: 10.16 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.0004634/1.775, allocations: 111.3 kB / 0.5834 GB, free: 10.05 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003346/1.776, allocations: 91.23 kB / 0.5835 GB, free: 9.965 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.02481/1.8, allocations: 9.643 MB / 0.5929 GB, free: 308 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005275/1.801, allocations: 358.8 kB / 0.5933 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/1.801, allocations: 112.6 kB / 0.5934 GB, free: 15.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/1.801, allocations: 151.3 kB / 0.5935 GB, free: 15.69 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/1.802, allocations: 111.4 kB / 0.5936 GB, free: 15.58 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/1.802, allocations: 24 kB / 0.5937 GB, free: 15.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03265/1.834, allocations: 17.97 MB / 0.6112 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001137/1.834, allocations: 43.84 kB / 0.6112 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002404/1.835, allocations: 135.3 kB / 0.6114 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02545/1.86, allocations: 8.468 MB / 0.6196 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/1.86, allocations: 0 / 0.6196 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.285e-06/1.86, allocations: 0 / 0.6196 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.447e-06/1.86, allocations: 0 / 0.6196 GB, free: 4.902 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.004525/1.865, allocations: 1.454 MB / 0.6211 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/1.865, allocations: 8.031 kB / 0.6211 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.241e-05/1.865, allocations: 66.53 kB / 0.6211 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/1.865, allocations: 31.62 kB / 0.6212 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/1.865, allocations: 227.7 kB / 0.6214 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/1.865, allocations: 16.44 kB / 0.6214 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/1.865, allocations: 24 kB / 0.6214 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/1.866, allocations: 321 kB / 0.6217 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/1.866, allocations: 0 / 0.6217 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/1.866, allocations: 11.94 kB / 0.6217 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/1.866, allocations: 8 kB / 0.6217 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002432/1.866, allocations: 181 kB / 0.6219 GB, free: 2.441 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.03564/1.902, allocations: 18.16 MB / 0.6396 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000446/1.902, allocations: 154.5 kB / 0.6398 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/1.902, allocations: 88.78 kB / 0.6399 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.351/2.253, allocations: 77.91 MB / 0.716 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/2.253, allocations: 33.73 kB / 0.716 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.896e-06/2.253, allocations: 0 / 0.716 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.0008845/2.254, allocations: 426.6 kB / 0.7164 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/2.254, allocations: 79.27 kB / 0.7165 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/2.254, allocations: 225.9 kB / 0.7167 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/2.254, allocations: 25.7 kB / 0.7167 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/2.255, allocations: 153.5 kB / 0.7169 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.413e-05/2.255, allocations: 119 kB / 0.717 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.493e-05/2.255, allocations: 53.09 kB / 0.717 GB, free: 211 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.243e-05/2.255, allocations: 336.8 kB / 0.7174 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/2.255, allocations: 77.33 kB / 0.7174 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/2.255, allocations: 134.1 kB / 0.7176 GB, free: 210.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/2.255, allocations: 225.8 kB / 0.7178 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/2.255, allocations: 0 / 0.7178 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004289/2.256, allocations: 307.2 kB / 0.7181 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/2.256, allocations: 6.656 kB / 0.7181 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/2.256, allocations: 2.844 kB / 0.7181 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009707/2.257, allocations: 137.7 kB / 0.7182 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.888e-05/2.257, allocations: 20.55 kB / 0.7182 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004008/2.257, allocations: 0.6137 MB / 0.7188 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/2.257, allocations: 27.81 kB / 0.7188 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/2.257, allocations: 13.12 kB / 0.7189 GB, free: 210 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.0001022/2.258, allocations: 135.9 kB / 0.719 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.189e-05/2.258, allocations: 19.78 kB / 0.719 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007779/2.258, allocations: 0.6148 MB / 0.7196 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004835/2.259, allocations: 218.8 kB / 0.7198 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/2.259, allocations: 0 / 0.7198 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/2.259, allocations: 6.016 kB / 0.7198 GB, free: 209.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009244/2.26, allocations: 0.7341 MB / 0.7205 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/2.26, allocations: 0 / 0.7205 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.048e-05/2.26, allocations: 20.2 kB / 0.7206 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000304/2.26, allocations: 112.4 kB / 0.7207 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/2.26, allocations: 2.031 kB / 0.7207 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003355/2.261, allocations: 0.6423 MB / 0.7213 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/2.261, allocations: 2.844 kB / 0.7213 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005336/2.261, allocations: 348 kB / 0.7216 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/2.261, allocations: 103 kB / 0.7217 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/2.261, allocations: 20.92 kB / 0.7217 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/2.261, allocations: 2.438 kB / 0.7218 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/2.261, allocations: 10 kB / 0.7218 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/2.261, allocations: 6.25 kB / 0.7218 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001837/2.262, allocations: 239.9 kB / 0.722 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/2.262, allocations: 0 / 0.722 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002932/2.265, allocations: 1.214 MB / 0.7232 GB, free: 208.3 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.004486/2.269, allocations: 2.552 MB / 0.7257 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004997/2.27, allocations: 249.6 kB / 0.7259 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/2.27, allocations: 2.812 kB / 0.7259 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000218/2.27, allocations: 99.62 kB / 0.726 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/2.27, allocations: 131.1 kB / 0.7261 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/2.273, allocations: 3.076 MB / 0.7291 GB, free: 205.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/2.274, allocations: 0.7667 MB / 0.7299 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001006/2.274, allocations: 28.53 kB / 0.7299 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.246e-05/2.274, allocations: 97.48 kB / 0.73 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/2.274, allocations: 0 / 0.73 GB, free: 205.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06984/2.344, allocations: 48.34 MB / 0.7772 GB, free: 169.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/15.26, allocations: 11.5 kB / 0.7772 GB, free: 169.9 MB / 0.5919 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)