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: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9381/0.9381, allocations: 150.9 MB / 166.7 MB, free: 14.63 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000404/0.0004042, allocations: 23.97 kB / 204.8 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3132, allocations: 31.33 MB / 236.1 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 2.21/2.523, allocations: 293.7 MB / 0.5174 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2631/2.786, allocations: 188.1 MB / 0.701 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006992/2.787, allocations: 8 kB / 0.701 GB, free: 1.148 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.0002405/2.787, allocations: 24.77 kB / 0.7011 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005144/2.788, allocations: 103.2 kB / 0.7012 GB, free: 1.023 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.6026/3.39, allocations: 10.68 MB / 0.7116 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008917/3.391, allocations: 399.2 kB / 0.712 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003914/3.391, allocations: 204.9 kB / 0.7122 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000367/3.392, allocations: 163.3 kB / 0.7123 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/3.392, allocations: 171.6 kB / 0.7125 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.146e-05/3.392, allocations: 33.38 kB / 0.7125 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0624/3.455, allocations: 20.92 MB / 0.733 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003714/3.455, allocations: 73.8 kB / 0.733 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006255/3.456, allocations: 184 kB / 0.7332 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02325/3.479, allocations: 7.197 MB / 0.7402 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.241e-05/3.479, allocations: 0 / 0.7402 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.236e-06/3.479, allocations: 0.9062 kB / 0.7402 GB, free: 1.652 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.515e-05/3.479, allocations: 5.031 kB / 0.7402 GB, free: 1.652 MB / 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.01038/3.49, allocations: 1.873 MB / 0.7421 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.147e-05/3.49, allocations: 10.91 kB / 0.7421 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/3.49, allocations: 41.72 kB / 0.7421 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000442/3.49, allocations: 293.1 kB / 0.7424 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.592e-05/3.49, allocations: 24.69 kB / 0.7424 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/3.49, allocations: 35.53 kB / 0.7424 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007284/3.491, allocations: 385.9 kB / 0.7428 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/3.491, allocations: 0 / 0.7428 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.903e-05/3.491, allocations: 19.09 kB / 0.7428 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/3.491, allocations: 12.77 kB / 0.7428 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004804/3.492, allocations: 244 kB / 0.7431 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/3.503, allocations: 6.155 MB / 0.7491 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/3.503, allocations: 89.22 kB / 0.7492 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.925e-05/3.503, allocations: 21.98 kB / 0.7492 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3551/3.858, allocations: 154.7 MB / 0.9003 GB, free: 9.234 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.644e-05/3.858, allocations: 38.56 kB / 0.9003 GB, free: 9.191 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 2.926e-06/3.858, allocations: 0 / 0.9003 GB, free: 9.191 MB / 0.7481 GB Notification: Performance of matching and sorting (n=7): time 0.0009602/3.859, allocations: 254.3 kB / 0.9006 GB, free: 8.949 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/3.859, allocations: 77.11 kB / 0.9006 GB, free: 8.855 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004074/3.86, allocations: 286.9 kB / 0.9009 GB, free: 8.621 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/3.86, allocations: 33.27 kB / 0.901 GB, free: 8.586 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/3.86, allocations: 230.5 kB / 0.9012 GB, free: 8.391 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.223e-05/3.86, allocations: 22.75 kB / 0.9012 GB, free: 8.371 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/3.86, allocations: 62.31 kB / 0.9013 GB, free: 8.324 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001403/3.86, allocations: 337.1 kB / 0.9016 GB, free: 7.996 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/3.86, allocations: 42.45 kB / 0.9016 GB, free: 7.969 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/3.86, allocations: 168 kB / 0.9018 GB, free: 7.777 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002846/3.861, allocations: 210.4 kB / 0.902 GB, free: 7.582 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/3.861, allocations: 4 kB / 0.902 GB, free: 7.578 MB / 0.7481 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006258/3.861, allocations: 277.3 kB / 0.9022 GB, free: 7.371 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/3.861, allocations: 8 kB / 0.9023 GB, free: 7.363 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/3.861, allocations: 4.078 kB / 0.9023 GB, free: 7.359 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/3.862, allocations: 111.2 kB / 0.9024 GB, free: 7.258 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/3.863, allocations: 42.88 kB / 0.9024 GB, free: 7.219 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004894/3.863, allocations: 0.5728 MB / 0.903 GB, free: 6.645 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/3.863, allocations: 38.8 kB / 0.903 GB, free: 6.609 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/3.863, allocations: 15.56 kB / 0.903 GB, free: 6.598 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.0001822/3.864, allocations: 143.2 kB / 0.9032 GB, free: 6.469 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-05/3.864, allocations: 23.72 kB / 0.9032 GB, free: 6.445 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006103/3.864, allocations: 171.2 kB / 0.9033 GB, free: 6.297 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/3.864, allocations: 0 / 0.9033 GB, free: 6.297 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/3.864, allocations: 4 kB / 0.9033 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/3.864, allocations: 7.984 kB / 0.9033 GB, free: 6.285 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003423/3.865, allocations: 309.3 kB / 0.9036 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/3.865, allocations: 1.141 kB / 0.9036 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.229e-05/3.865, allocations: 18.88 kB / 0.9037 GB, free: 5.973 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005364/3.865, allocations: 76.2 kB / 0.9037 GB, free: 5.898 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/3.865, allocations: 3.312 kB / 0.9037 GB, free: 5.898 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004414/3.866, allocations: 0.5688 MB / 0.9043 GB, free: 5.324 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/3.866, allocations: 2.906 kB / 0.9043 GB, free: 5.324 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004952/3.866, allocations: 162.5 kB / 0.9045 GB, free: 5.164 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/3.866, allocations: 111.9 kB / 0.9046 GB, free: 5.043 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/3.867, allocations: 1.203 kB / 0.9046 GB, free: 5.043 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.135e-05/3.867, allocations: 0 / 0.9046 GB, free: 5.043 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/3.867, allocations: 10.89 kB / 0.9046 GB, free: 5.035 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/3.867, allocations: 7.812 kB / 0.9046 GB, free: 5.031 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002282/3.867, allocations: 200.6 kB / 0.9048 GB, free: 4.871 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/3.867, allocations: 0 / 0.9048 GB, free: 4.871 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.006581/3.874, allocations: 1.611 MB / 0.9063 GB, free: 3.375 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.01338/3.887, allocations: 2.571 MB / 0.9089 GB, free: 1.172 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007149/3.888, allocations: 135.5 kB / 0.909 GB, free: 1.078 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 8.597e-06/3.888, allocations: 4 kB / 0.909 GB, free: 1.074 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/3.888, allocations: 43.59 kB / 0.909 GB, free: 1.043 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/3.889, allocations: 72.88 kB / 0.9091 GB, free: 0.9922 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/3.89, allocations: 0.5841 MB / 0.9097 GB, free: 412 kB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/3.89, allocations: 0.7635 MB / 0.9104 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.584e-05/3.89, allocations: 35.19 kB / 0.9104 GB, free: 15.58 MB / 0.7637 GB Notification: Performance of SimCode: time 6.62e-07/3.89, allocations: 0 / 0.9104 GB, free: 15.58 MB / 0.7637 GB Notification: Performance of Templates: time 0.05611/3.946, allocations: 31.21 MB / 0.9409 GB, free: 488 kB / 0.7794 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.makefile (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 & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1)