Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.9678/0.9678, allocations: 150.8 MB / 166.1 MB, free: 14.61 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002605/0.0002603, allocations: 11.98 kB / 204.2 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.262, allocations: 31.32 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.Fluid.Examples.SimpleExamples.TestDiaphragm): time 2.126/2.388, allocations: 293.7 MB / 0.5169 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2647/2.652, allocations: 188.1 MB / 0.7005 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006624/2.653, allocations: 8 kB / 0.7005 GB, free: 1.086 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:34:3-35:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/Diaphragm.mo:36:3-37:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002239/2.653, allocations: 32.61 kB / 0.7006 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004775/2.654, allocations: 103.2 kB / 0.7007 GB, free: 0.9531 MB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.5823/3.236, allocations: 10.69 MB / 0.7111 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007189/3.237, allocations: 392.6 kB / 0.7115 GB, free: 2.574 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003151/3.237, allocations: 197.9 kB / 0.7117 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002296/3.238, allocations: 166.5 kB / 0.7118 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002132/3.238, allocations: 170.4 kB / 0.712 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/3.238, allocations: 39.47 kB / 0.712 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04376/3.282, allocations: 20.91 MB / 0.7324 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002238/3.282, allocations: 75.98 kB / 0.7325 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003544/3.282, allocations: 187.5 kB / 0.7327 GB, free: 2.434 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.03637/3.319, allocations: 10.5 MB / 0.743 GB, free: 412 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/3.319, allocations: 3.984 kB / 0.743 GB, free: 408 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.402e-06/3.319, allocations: 0 / 0.743 GB, free: 408 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.019e-05/3.319, allocations: 0.9062 kB / 0.743 GB, free: 408 kB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00701/3.326, allocations: 1.876 MB / 0.7448 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/3.326, allocations: 10.03 kB / 0.7448 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.26e-05/3.326, allocations: 74.31 kB / 0.7449 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.548e-05/3.326, allocations: 41.34 kB / 0.7449 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003311/3.326, allocations: 284.8 kB / 0.7452 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/3.326, allocations: 34.47 kB / 0.7452 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.233e-05/3.326, allocations: 37.47 kB / 0.7452 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005612/3.327, allocations: 382.2 kB / 0.7456 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/3.327, allocations: 2.906 kB / 0.7456 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/3.327, allocations: 17 kB / 0.7456 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/3.327, allocations: 6.875 kB / 0.7456 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/3.327, allocations: 248.6 kB / 0.7459 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008552/3.336, allocations: 6.157 MB / 0.7519 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/3.336, allocations: 90.17 kB / 0.752 GB, free: 9.473 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.589e-05/3.336, allocations: 26.14 kB / 0.752 GB, free: 9.465 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2961/3.632, allocations: 154.7 MB / 0.9031 GB, free: 6.961 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/3.632, allocations: 40.45 kB / 0.9031 GB, free: 6.918 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 2.375e-06/3.632, allocations: 0 / 0.9031 GB, free: 6.918 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0008564/3.633, allocations: 244.4 kB / 0.9034 GB, free: 6.68 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.124e-05/3.633, allocations: 77.73 kB / 0.9034 GB, free: 6.586 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000375/3.634, allocations: 284.8 kB / 0.9037 GB, free: 6.355 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.071e-05/3.634, allocations: 34.7 kB / 0.9037 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/3.634, allocations: 235 kB / 0.904 GB, free: 6.121 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.939e-05/3.634, allocations: 29.81 kB / 0.904 GB, free: 6.098 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/3.634, allocations: 60.59 kB / 0.904 GB, free: 6.051 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000121/3.634, allocations: 335.8 kB / 0.9044 GB, free: 5.723 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/3.634, allocations: 51.5 kB / 0.9044 GB, free: 5.688 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001896/3.635, allocations: 157.6 kB / 0.9046 GB, free: 5.508 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/3.635, allocations: 210.1 kB / 0.9048 GB, free: 5.309 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/3.635, allocations: 0 / 0.9048 GB, free: 5.309 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005754/3.635, allocations: 282.4 kB / 0.905 GB, free: 5.098 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/3.636, allocations: 4 kB / 0.905 GB, free: 5.094 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/3.636, allocations: 7.984 kB / 0.905 GB, free: 5.086 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009934/3.637, allocations: 116.3 kB / 0.9052 GB, free: 4.977 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/3.637, allocations: 43.14 kB / 0.9052 GB, free: 4.941 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000461/3.637, allocations: 0.5656 MB / 0.9058 GB, free: 4.371 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/3.637, allocations: 35.5 kB / 0.9058 GB, free: 4.34 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/3.637, allocations: 13.88 kB / 0.9058 GB, free: 4.328 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,Diaphragm.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,Diaphragm.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001627/3.638, allocations: 150.8 kB / 0.9059 GB, free: 4.195 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.545e-05/3.638, allocations: 24.34 kB / 0.906 GB, free: 4.172 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006107/3.638, allocations: 184.6 kB / 0.9061 GB, free: 4.016 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/3.638, allocations: 0 / 0.9061 GB, free: 4.016 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/3.638, allocations: 0 / 0.9061 GB, free: 4.016 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/3.638, allocations: 1.203 kB / 0.9061 GB, free: 4.016 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/3.639, allocations: 309.5 kB / 0.9064 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/3.639, allocations: 0 / 0.9064 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.782e-05/3.639, allocations: 5.875 kB / 0.9064 GB, free: 3.707 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005452/3.639, allocations: 81.05 kB / 0.9065 GB, free: 3.633 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/3.639, allocations: 7.984 kB / 0.9065 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004051/3.64, allocations: 0.5634 MB / 0.9071 GB, free: 3.059 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/3.64, allocations: 0 / 0.9071 GB, free: 3.059 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004942/3.64, allocations: 170.6 kB / 0.9072 GB, free: 2.895 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 9.843e-05/3.64, allocations: 105.4 kB / 0.9073 GB, free: 2.777 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/3.64, allocations: 5.875 kB / 0.9073 GB, free: 2.773 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.387e-05/3.64, allocations: 3.984 kB / 0.9074 GB, free: 2.77 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/3.641, allocations: 5.875 kB / 0.9074 GB, free: 2.766 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/3.641, allocations: 0 / 0.9074 GB, free: 2.766 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002019/3.641, allocations: 211 kB / 0.9076 GB, free: 2.598 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/3.641, allocations: 0 / 0.9076 GB, free: 2.598 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.005377/3.646, allocations: 1.604 MB / 0.9091 GB, free: 1.109 MB / 0.7481 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 (4): * Single equations (assignments): 3 * 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.01062/3.657, allocations: 3.175 MB / 0.9122 GB, free: 14.3 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005585/3.657, allocations: 138.2 kB / 0.9124 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/3.657, allocations: 0 / 0.9124 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001692/3.658, allocations: 37.39 kB / 0.9124 GB, free: 14.18 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005266/3.658, allocations: 94.89 kB / 0.9125 GB, free: 14.11 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006823/3.665, allocations: 3.181 MB / 0.9156 GB, free: 11.07 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/3.665, allocations: 0.7646 MB / 0.9163 GB, free: 10.28 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001928/3.665, allocations: 46.91 kB / 0.9164 GB, free: 10.23 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/3.666, allocations: 105 kB / 0.9165 GB, free: 10.2 MB / 0.7637 GB Notification: Performance of SimCode: time 7.52e-07/3.666, allocations: 0 / 0.9165 GB, free: 10.2 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1518/3.817, allocations: 54.89 MB / 0.9701 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/3.818, allocations: 278.9 kB / 0.9704 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.644/8.462, allocations: 5.25 kB / 0.9704 GB, free: 3.148 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)