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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8058/0.8058, allocations: 153.9 MB / 173.5 MB, free: 4.965 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004714/0.0004714, allocations: 11.97 kB / 250.6 MB, free: 4.469 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1521, allocations: 33.36 MB / 284 MB, free: 1.828 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm): time 1.741/1.893, allocations: 307.4 MB / 0.5775 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2129/2.106, allocations: 193.7 MB / 0.7666 GB, free: 3.402 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004216/2.106, allocations: 7.938 kB / 0.7667 GB, free: 3.395 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/Fluid/BoundaryConditions/SourceP.mo:59:3-60: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 master/Fluid/BoundaryConditions/SinkP.mo:47:3-48: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 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 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.0001605/2.106, allocations: 35.59 kB / 0.7667 GB, free: 3.359 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0003614/2.107, allocations: 127 kB / 0.7668 GB, free: 3.234 MB / 0.6231 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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 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.02968/2.136, allocations: 12.44 MB / 0.779 GB, free: 6.781 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0006322/2.137, allocations: 406.7 kB / 0.7793 GB, free: 6.383 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002538/2.137, allocations: 176.8 kB / 0.7795 GB, free: 6.207 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/2.137, allocations: 175.4 kB / 0.7797 GB, free: 6.035 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/2.138, allocations: 179.2 kB / 0.7799 GB, free: 5.859 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 4.547e-05/2.138, allocations: 33.97 kB / 0.7799 GB, free: 5.828 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0384/2.176, allocations: 21.14 MB / 0.8005 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001504/2.176, allocations: 99.67 kB / 0.8006 GB, free: 0.5664 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002365/2.176, allocations: 195 kB / 0.8008 GB, free: 384 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02276/2.199, allocations: 10.41 MB / 0.811 GB, free: 5.934 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/2.199, allocations: 0 / 0.811 GB, free: 5.934 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.393e-06/2.199, allocations: 0 / 0.811 GB, free: 5.934 MB / 0.67 GB Notification: Performance of Transformations before backend: time 8.386e-06/2.199, allocations: 0 / 0.811 GB, free: 5.934 MB / 0.67 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.004823/2.204, allocations: 1.919 MB / 0.8129 GB, free: 3.973 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/2.204, allocations: 9.625 kB / 0.8129 GB, free: 3.965 MB / 0.67 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.042e-05/2.204, allocations: 19.72 kB / 0.8129 GB, free: 3.949 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.286e-05/2.204, allocations: 70.53 kB / 0.8129 GB, free: 3.871 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.528e-05/2.204, allocations: 47.72 kB / 0.813 GB, free: 3.824 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/2.205, allocations: 259.4 kB / 0.8132 GB, free: 3.547 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.467e-05/2.205, allocations: 29 kB / 0.8133 GB, free: 3.52 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.439e-05/2.205, allocations: 36 kB / 0.8133 GB, free: 3.484 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005876/2.205, allocations: 378.6 kB / 0.8137 GB, free: 3.086 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/2.205, allocations: 1.828 kB / 0.8137 GB, free: 3.086 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.588e-05/2.205, allocations: 16 kB / 0.8137 GB, free: 3.07 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/2.205, allocations: 12 kB / 0.8137 GB, free: 3.059 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004443/2.206, allocations: 246.4 kB / 0.8139 GB, free: 2.82 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007636/2.214, allocations: 3.836 MB / 0.8177 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/2.214, allocations: 75.62 kB / 0.8177 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.548e-05/2.214, allocations: 24.86 kB / 0.8178 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4374/2.651, allocations: 88.37 MB / 0.9041 GB, free: 252.1 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/2.651, allocations: 34.56 kB / 0.9041 GB, free: 252.1 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/2.651, allocations: 1.969 kB / 0.9041 GB, free: 252.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=7): time 0.0006691/2.652, allocations: 185.2 kB / 0.9043 GB, free: 251.9 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.028e-05/2.652, allocations: 79.92 kB / 0.9044 GB, free: 251.8 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/2.652, allocations: 341.9 kB / 0.9047 GB, free: 251.5 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/2.652, allocations: 25.7 kB / 0.9047 GB, free: 251.4 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 8.814e-05/2.652, allocations: 240.3 kB / 0.9049 GB, free: 251.2 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/2.652, allocations: 29.12 kB / 0.905 GB, free: 251.2 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.455e-05/2.652, allocations: 69.84 kB / 0.905 GB, free: 251.1 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 4.242e-05/2.652, allocations: 330.8 kB / 0.9053 GB, free: 250.8 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-05/2.653, allocations: 52.44 kB / 0.9054 GB, free: 250.8 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/2.653, allocations: 167 kB / 0.9056 GB, free: 250.6 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/2.653, allocations: 200.7 kB / 0.9057 GB, free: 250.3 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/2.653, allocations: 0 / 0.9057 GB, free: 250.3 MB / 0.6856 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004411/2.653, allocations: 287.4 kB / 0.906 GB, free: 250.1 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/2.653, allocations: 4.625 kB / 0.906 GB, free: 250.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/2.653, allocations: 7.375 kB / 0.906 GB, free: 250 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008545/2.654, allocations: 118.1 kB / 0.9061 GB, free: 249.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/2.654, allocations: 42.98 kB / 0.9062 GB, free: 249.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003046/2.655, allocations: 0.562 MB / 0.9067 GB, free: 249.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/2.655, allocations: 37.27 kB / 0.9068 GB, free: 249.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.786e-05/2.655, allocations: 16 kB / 0.9068 GB, free: 249.3 MB / 0.6856 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.0001188/2.655, allocations: 168.8 kB / 0.9069 GB, free: 249.1 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/2.655, allocations: 27.81 kB / 0.907 GB, free: 249.1 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000488/2.655, allocations: 176.6 kB / 0.9071 GB, free: 248.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/2.655, allocations: 3.984 kB / 0.9071 GB, free: 248.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/2.655, allocations: 3.938 kB / 0.9071 GB, free: 248.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/2.655, allocations: 0 / 0.9071 GB, free: 248.9 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/2.656, allocations: 290.1 kB / 0.9074 GB, free: 248.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/2.656, allocations: 0 / 0.9074 GB, free: 248.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.297e-05/2.656, allocations: 11.98 kB / 0.9074 GB, free: 248.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004545/2.656, allocations: 80.52 kB / 0.9075 GB, free: 248.5 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/2.656, allocations: 0 / 0.9075 GB, free: 248.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002595/2.656, allocations: 0.5747 MB / 0.9081 GB, free: 247.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/2.656, allocations: 0 / 0.9081 GB, free: 247.9 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/2.657, allocations: 168.9 kB / 0.9082 GB, free: 247.7 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 8.859e-05/2.657, allocations: 52.92 kB / 0.9083 GB, free: 247.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/2.657, allocations: 3.984 kB / 0.9083 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/2.657, allocations: 4 kB / 0.9083 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.675e-05/2.657, allocations: 7.984 kB / 0.9083 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/2.657, allocations: 4 kB / 0.9083 GB, free: 247.6 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0001893/2.657, allocations: 251.2 kB / 0.9085 GB, free: 247.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/2.657, allocations: 0 / 0.9085 GB, free: 247.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003257/2.661, allocations: 1.628 MB / 0.9101 GB, free: 246 MB / 0.6856 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.007358/2.668, allocations: 3.097 MB / 0.9132 GB, free: 243.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.000482/2.668, allocations: 126 kB / 0.9133 GB, free: 243.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/2.668, allocations: 0 / 0.9133 GB, free: 243.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/2.669, allocations: 44.39 kB / 0.9133 GB, free: 243.1 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/2.669, allocations: 77.03 kB / 0.9134 GB, free: 243.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00448/2.674, allocations: 3.197 MB / 0.9165 GB, free: 239.7 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001996/2.674, allocations: 0.7789 MB / 0.9173 GB, free: 238.9 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001461/2.674, allocations: 45.44 kB / 0.9173 GB, free: 238.9 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/2.674, allocations: 99.41 kB / 0.9174 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of SimCode: time 6.51e-07/2.674, allocations: 0 / 0.9174 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07058/2.745, allocations: 54.87 MB / 0.971 GB, free: 184.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.89/17.63, allocations: 15.47 kB / 0.971 GB, free: 184.7 MB / 0.6856 GB " [Timeout remaining time 642] (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 --stepSize=0.4 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDiaphragm.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.79326658300124] Failed to read output from testmodel.py, exit status != 0: 17.946378565044142 17.955207162 15.75380982 Calling exit ...