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 1.22/1.22, allocations: 150.9 MB / 166.4 MB, free: 14.22 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003992, allocations: 23.97 kB / 204.6 MB, free: 9.535 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2693, allocations: 31.33 MB / 236 MB, free: 5.438 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 1.922/2.192, allocations: 294.8 MB / 0.5183 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.8472/3.039, allocations: 190.1 MB / 0.7039 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004389/3.04, allocations: 8.125 kB / 0.704 GB, free: 2.133 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.0001725/3.04, allocations: 37.92 kB / 0.704 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003773/3.04, allocations: 115.1 kB / 0.7041 GB, free: 2.133 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.03748/3.078, allocations: 12.11 MB / 0.7159 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007262/3.078, allocations: 392.2 kB / 0.7163 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/3.079, allocations: 205.7 kB / 0.7165 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/3.079, allocations: 167 kB / 0.7167 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/3.079, allocations: 170.2 kB / 0.7168 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/3.079, allocations: 36 kB / 0.7169 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03908/3.118, allocations: 20.74 MB / 0.7371 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000113/3.118, allocations: 75.06 kB / 0.7372 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002234/3.119, allocations: 187 kB / 0.7374 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02733/3.146, allocations: 10.38 MB / 0.7475 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/3.146, allocations: 0 / 0.7475 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.713e-06/3.146, allocations: 0.9062 kB / 0.7475 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 8.506e-06/3.146, allocations: 0 / 0.7475 GB, free: 14.61 MB / 0.5919 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.004519/3.151, allocations: 1.875 MB / 0.7493 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/3.151, allocations: 12.61 kB / 0.7493 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.199e-05/3.151, allocations: 78.22 kB / 0.7494 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/3.151, allocations: 42.28 kB / 0.7495 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000279/3.151, allocations: 290.5 kB / 0.7497 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.904e-05/3.151, allocations: 28.88 kB / 0.7498 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/3.151, allocations: 34.62 kB / 0.7498 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004715/3.152, allocations: 380.2 kB / 0.7502 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/3.152, allocations: 0.8125 kB / 0.7502 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.987e-05/3.152, allocations: 20.36 kB / 0.7502 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/3.152, allocations: 8.672 kB / 0.7502 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/3.152, allocations: 245.6 kB / 0.7504 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007652/3.16, allocations: 6.166 MB / 0.7564 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001878/3.16, allocations: 85.84 kB / 0.7565 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.124e-05/3.16, allocations: 23.55 kB / 0.7565 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7936/3.954, allocations: 154.7 MB / 0.9076 GB, free: 4.418 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/3.954, allocations: 34.56 kB / 0.9077 GB, free: 4.375 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/3.954, allocations: 0 / 0.9077 GB, free: 4.375 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0008463/3.955, allocations: 242.4 kB / 0.9079 GB, free: 4.137 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/3.955, allocations: 88.53 kB / 0.908 GB, free: 4.035 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/3.955, allocations: 290.3 kB / 0.9083 GB, free: 3.801 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/3.955, allocations: 29.72 kB / 0.9083 GB, free: 3.77 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/3.955, allocations: 231.6 kB / 0.9085 GB, free: 3.578 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.455e-05/3.955, allocations: 31.11 kB / 0.9085 GB, free: 3.551 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.311e-05/3.955, allocations: 60.12 kB / 0.9086 GB, free: 3.504 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001108/3.955, allocations: 333.1 kB / 0.9089 GB, free: 3.18 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/3.956, allocations: 46.62 kB / 0.909 GB, free: 3.148 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001867/3.956, allocations: 170.2 kB / 0.9091 GB, free: 2.961 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/3.956, allocations: 209 kB / 0.9093 GB, free: 2.762 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/3.956, allocations: 0 / 0.9093 GB, free: 2.762 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000546/3.957, allocations: 275.2 kB / 0.9096 GB, free: 2.559 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/3.957, allocations: 8 kB / 0.9096 GB, free: 2.551 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/3.957, allocations: 4 kB / 0.9096 GB, free: 2.547 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/3.958, allocations: 112.2 kB / 0.9097 GB, free: 2.441 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/3.958, allocations: 49.36 kB / 0.9098 GB, free: 2.402 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004778/3.958, allocations: 0.57 MB / 0.9103 GB, free: 1.828 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002202/3.959, allocations: 34.36 kB / 0.9103 GB, free: 1.797 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/3.959, allocations: 15.31 kB / 0.9104 GB, free: 1.785 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.0001449/3.959, allocations: 142.8 kB / 0.9105 GB, free: 1.656 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.817e-05/3.959, allocations: 23.66 kB / 0.9105 GB, free: 1.633 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006424/3.959, allocations: 182.8 kB / 0.9107 GB, free: 1.477 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/3.959, allocations: 4 kB / 0.9107 GB, free: 1.473 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/3.96, allocations: 4 kB / 0.9107 GB, free: 1.469 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/3.96, allocations: 0 / 0.9107 GB, free: 1.469 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000287/3.96, allocations: 307 kB / 0.911 GB, free: 1.168 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/3.96, allocations: 0 / 0.911 GB, free: 1.168 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.197e-05/3.96, allocations: 7.984 kB / 0.911 GB, free: 1.16 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005533/3.96, allocations: 77.58 kB / 0.9111 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/3.96, allocations: 0 / 0.9111 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004137/3.961, allocations: 0.5719 MB / 0.9116 GB, free: 0.5156 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/3.961, allocations: 1.094 kB / 0.9116 GB, free: 0.5156 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005186/3.961, allocations: 170.2 kB / 0.9118 GB, free: 364 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 8.754e-05/3.962, allocations: 106.8 kB / 0.9119 GB, free: 244 kB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/3.962, allocations: 3.984 kB / 0.9119 GB, free: 240 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/3.962, allocations: 4 kB / 0.9119 GB, free: 236 kB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.443e-05/3.962, allocations: 11.78 kB / 0.9119 GB, free: 228 kB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/3.962, allocations: 6.984 kB / 0.9119 GB, free: 224 kB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002175/3.962, allocations: 206.6 kB / 0.9121 GB, free: 52 kB / 0.7481 GB Notification: Performance of sort global known variables: time 1.51e-07/3.962, allocations: 1.203 kB / 0.9121 GB, free: 52 kB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004102/3.966, allocations: 1.605 MB / 0.9137 GB, free: 14.56 MB / 0.7637 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.007493/3.974, allocations: 3.082 MB / 0.9167 GB, free: 11.82 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0004604/3.974, allocations: 139.5 kB / 0.9168 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/3.974, allocations: 0 / 0.9168 GB, free: 11.73 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001582/3.974, allocations: 35.73 kB / 0.9169 GB, free: 11.7 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/3.975, allocations: 80.33 kB / 0.9169 GB, free: 11.64 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/3.979, allocations: 3.079 MB / 0.9199 GB, free: 8.707 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/3.979, allocations: 0.7675 MB / 0.9207 GB, free: 7.914 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001894/3.98, allocations: 46.89 kB / 0.9207 GB, free: 7.867 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/3.98, allocations: 96.72 kB / 0.9208 GB, free: 7.836 MB / 0.7637 GB Notification: Performance of SimCode: time 2.8e-07/3.98, allocations: 0 / 0.9208 GB, free: 7.836 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2204/4.2, allocations: 54.48 MB / 0.974 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.25/18.45, allocations: 4.688 kB / 0.974 GB, free: 1.488 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)