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.8562/0.8562, allocations: 153.9 MB / 172.7 MB, free: 4.93 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005184/0.0005184, allocations: 15.98 kB / 249.8 MB, free: 4.438 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1648/0.1653, allocations: 33.36 MB / 283.2 MB, free: 1.824 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.738/1.903, allocations: 307.6 MB / 0.5769 GB, free: 15.91 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2053/2.109, allocations: 193.7 MB / 0.7661 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004282/2.109, allocations: 7.938 kB / 0.7661 GB, free: 3.363 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.0002099/2.109, allocations: 43.53 kB / 0.7661 GB, free: 3.32 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0004793/2.11, allocations: 115 kB / 0.7662 GB, free: 3.207 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.03111/2.141, allocations: 12.45 MB / 0.7784 GB, free: 6.758 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0006501/2.141, allocations: 410.8 kB / 0.7788 GB, free: 6.352 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002587/2.142, allocations: 174.2 kB / 0.7789 GB, free: 6.18 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/2.142, allocations: 183.3 kB / 0.7791 GB, free: 6 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/2.142, allocations: 175.2 kB / 0.7793 GB, free: 5.828 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 4.555e-05/2.142, allocations: 35.94 kB / 0.7793 GB, free: 5.793 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03815/2.18, allocations: 21.13 MB / 0.7999 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.000163/2.181, allocations: 95.67 kB / 0.8 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002278/2.181, allocations: 199 kB / 0.8002 GB, free: 352 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02325/2.204, allocations: 10.42 MB / 0.8104 GB, free: 5.898 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/2.204, allocations: 0 / 0.8104 GB, free: 5.898 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.523e-06/2.204, allocations: 0 / 0.8104 GB, free: 5.898 MB / 0.67 GB Notification: Performance of Transformations before backend: time 9.067e-06/2.204, allocations: 0 / 0.8104 GB, free: 5.898 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.004719/2.209, allocations: 1.915 MB / 0.8123 GB, free: 3.941 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/2.209, allocations: 8.031 kB / 0.8123 GB, free: 3.934 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.16e-05/2.209, allocations: 70.53 kB / 0.8123 GB, free: 3.855 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.157e-05/2.209, allocations: 51.72 kB / 0.8124 GB, free: 3.805 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/2.209, allocations: 263.4 kB / 0.8126 GB, free: 3.523 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.086e-05/2.209, allocations: 29 kB / 0.8127 GB, free: 3.496 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/2.209, allocations: 32 kB / 0.8127 GB, free: 3.465 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005883/2.21, allocations: 386.5 kB / 0.8131 GB, free: 3.062 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/2.21, allocations: 0 / 0.8131 GB, free: 3.062 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/2.21, allocations: 16 kB / 0.8131 GB, free: 3.047 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/2.21, allocations: 8 kB / 0.8131 GB, free: 3.039 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004383/2.211, allocations: 242.5 kB / 0.8133 GB, free: 2.805 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00758/2.218, allocations: 3.842 MB / 0.8171 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/2.218, allocations: 79.52 kB / 0.8171 GB, free: 14.68 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/2.218, allocations: 24.86 kB / 0.8172 GB, free: 14.65 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4319/2.65, allocations: 88.37 MB / 0.9035 GB, free: 251.9 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/2.65, allocations: 38.56 kB / 0.9035 GB, free: 251.9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 1.663e-06/2.65, allocations: 0 / 0.9035 GB, free: 251.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=7): time 0.0006608/2.651, allocations: 175.5 kB / 0.9037 GB, free: 251.7 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/2.651, allocations: 83.55 kB / 0.9038 GB, free: 251.6 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/2.651, allocations: 337.8 kB / 0.9041 GB, free: 251.3 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/2.651, allocations: 29.7 kB / 0.9041 GB, free: 251.2 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 8.642e-05/2.651, allocations: 241.3 kB / 0.9043 GB, free: 251 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/2.651, allocations: 31.91 kB / 0.9044 GB, free: 251 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.759e-05/2.651, allocations: 69.84 kB / 0.9044 GB, free: 250.9 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 4.417e-05/2.652, allocations: 330.8 kB / 0.9047 GB, free: 250.6 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.301e-05/2.652, allocations: 44.45 kB / 0.9048 GB, free: 250.6 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/2.652, allocations: 167 kB / 0.9049 GB, free: 250.4 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/2.652, allocations: 206.7 kB / 0.9051 GB, free: 250.1 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/2.652, allocations: 0 / 0.9051 GB, free: 250.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003988/2.652, allocations: 293.8 kB / 0.9054 GB, free: 249.9 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/2.652, allocations: 8 kB / 0.9054 GB, free: 249.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/2.652, allocations: 7.875 kB / 0.9054 GB, free: 249.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000831/2.653, allocations: 105.2 kB / 0.9055 GB, free: 249.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/2.653, allocations: 47.25 kB / 0.9056 GB, free: 249.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002965/2.654, allocations: 0.5631 MB / 0.9061 GB, free: 249.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001841/2.654, allocations: 37.78 kB / 0.9062 GB, free: 249.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/2.654, allocations: 16.06 kB / 0.9062 GB, free: 249.1 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.0001265/2.654, allocations: 158.7 kB / 0.9063 GB, free: 248.9 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.303e-05/2.654, allocations: 27.81 kB / 0.9064 GB, free: 248.9 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004946/2.654, allocations: 183.4 kB / 0.9065 GB, free: 248.7 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/2.654, allocations: 7.547 kB / 0.9065 GB, free: 248.7 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/2.654, allocations: 0 / 0.9065 GB, free: 248.7 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/2.654, allocations: 0 / 0.9065 GB, free: 248.7 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/2.655, allocations: 284.6 kB / 0.9068 GB, free: 248.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/2.655, allocations: 0 / 0.9068 GB, free: 248.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/2.655, allocations: 8 kB / 0.9068 GB, free: 248.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004327/2.655, allocations: 82.69 kB / 0.9069 GB, free: 248.3 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/2.655, allocations: 6.312 kB / 0.9069 GB, free: 248.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002635/2.655, allocations: 0.571 MB / 0.9075 GB, free: 247.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/2.655, allocations: 3.984 kB / 0.9075 GB, free: 247.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/2.656, allocations: 172.9 kB / 0.9076 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 8.635e-05/2.656, allocations: 45.89 kB / 0.9077 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/2.656, allocations: 4 kB / 0.9077 GB, free: 247.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.803e-05/2.656, allocations: 7.984 kB / 0.9077 GB, free: 247.4 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.629e-05/2.656, allocations: 8.062 kB / 0.9077 GB, free: 247.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/2.656, allocations: 0 / 0.9077 GB, free: 247.4 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.000177/2.656, allocations: 247.2 kB / 0.9079 GB, free: 247.2 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8e-08/2.656, allocations: 4 kB / 0.9079 GB, free: 247.2 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003217/2.659, allocations: 1.633 MB / 0.9095 GB, free: 245.8 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.006387/2.666, allocations: 3.094 MB / 0.9126 GB, free: 243.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0004624/2.666, allocations: 127.1 kB / 0.9127 GB, free: 243 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/2.666, allocations: 8.344 kB / 0.9127 GB, free: 243 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0001234/2.666, allocations: 43.97 kB / 0.9127 GB, free: 242.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/2.667, allocations: 72.34 kB / 0.9128 GB, free: 242.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003877/2.671, allocations: 3.199 MB / 0.9159 GB, free: 239.5 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001814/2.671, allocations: 0.7785 MB / 0.9167 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001358/2.671, allocations: 38.97 kB / 0.9167 GB, free: 238.7 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/2.671, allocations: 95.41 kB / 0.9168 GB, free: 238.6 MB / 0.6856 GB Notification: Performance of SimCode: time 6.11e-07/2.671, allocations: 0 / 0.9168 GB, free: 238.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08166/2.753, allocations: 54.85 MB / 0.9704 GB, free: 184.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/17.51, allocations: 0 / 0.9704 GB, free: 184.5 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.42603949108161] Failed to read output from testmodel.py, exit status != 0: 17.77658270811662 17.785795862 15.579571703 Calling exit ...