Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 81.69 kB / 19.27 MB, free: 0.5859 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008518/0.0008518, allocations: 166 kB / 22.58 MB, free: 1.926 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.045/1.045, allocations: 177.1 MB / 202.9 MB, free: 5.688 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8956/0.8956, allocations: 116 MB / 375.4 MB, free: 4.145 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Idealized.Examples.Volumes.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Examples.Volumes.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 0.5535 GB, free: 13.24 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.135e-05/2.313e-05, allocations: 10.19 kB / 0.5535 GB, free: 13.23 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.03386/0.03388, allocations: 35.24 MB / 0.5879 GB, free: 9.852 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01342/0.0473, allocations: 12.33 MB / 0.5999 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005746/0.04787, allocations: 27.75 kB / 0.6 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.04896, allocations: 309.8 kB / 0.6003 GB, free: 13.15 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001806/0.05077, allocations: 0.6478 MB / 0.6009 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.01459/0.06536, allocations: 5.451 MB / 0.6062 GB, free: 7.031 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00122/0.06658, allocations: 1.043 MB / 0.6072 GB, free: 5.98 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00046/0.06704, allocations: 81.58 kB / 0.6073 GB, free: 5.898 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006861/0.0739, allocations: 3.927 MB / 0.6111 GB, free: 1.918 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004267/0.07432, allocations: 267.1 kB / 0.6114 GB, free: 1.656 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 8.334e-05/0.07441, allocations: 44 kB / 0.6114 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01408/0.08849, allocations: 6.891 MB / 0.6182 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002402/0.08873, allocations: 111.5 kB / 0.6183 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.00056/0.08929, allocations: 223.5 kB / 0.6185 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01646/0.1057, allocations: 5.678 MB / 0.624 GB, free: 4.695 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.1058, allocations: 0 / 0.624 GB, free: 4.695 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.866e-06/0.1058, allocations: 0 / 0.624 GB, free: 4.695 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.587e-05/0.1058, allocations: 0 / 0.624 GB, free: 4.695 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.004273/0.11, allocations: 1.386 MB / 0.6254 GB, free: 3.273 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.1101, allocations: 8.031 kB / 0.6254 GB, free: 3.266 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.39e-05/0.1102, allocations: 82.72 kB / 0.6255 GB, free: 3.176 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006251/0.1108, allocations: 136.4 kB / 0.6256 GB, free: 3.043 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009812/0.1118, allocations: 475 kB / 0.6261 GB, free: 2.551 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.213e-05/0.1118, allocations: 37.38 kB / 0.6261 GB, free: 2.512 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.549e-05/0.1119, allocations: 52.12 kB / 0.6261 GB, free: 2.461 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.1131, allocations: 0.8014 MB / 0.6269 GB, free: 1.578 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.1131, allocations: 0 / 0.6269 GB, free: 1.578 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.259e-05/0.1131, allocations: 20 kB / 0.6269 GB, free: 1.559 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.1132, allocations: 16 kB / 0.627 GB, free: 1.543 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007906/0.1139, allocations: 475.5 kB / 0.6274 GB, free: 1.078 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002538/0.1165, allocations: 2.005 MB / 0.6294 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008092/0.1173, allocations: 360.1 kB / 0.6297 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.1175, allocations: 136.8 kB / 0.6298 GB, free: 14.49 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01762/0.1351, allocations: 8.681 MB / 0.6383 GB, free: 5.801 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.876e-05/0.1352, allocations: 38.56 kB / 0.6384 GB, free: 5.754 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=35): time 2.725e-06/0.1352, allocations: 0 / 0.6384 GB, free: 5.754 MB / 0.5573 GB Notification: Performance of matching and sorting (n=40): time 0.003047/0.1382, allocations: 1.129 MB / 0.6395 GB, free: 4.613 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.1383, allocations: 55.41 kB / 0.6395 GB, free: 4.547 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005236/0.1388, allocations: 430 kB / 0.6399 GB, free: 4.113 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.1388, allocations: 37.7 kB / 0.64 GB, free: 4.07 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.139, allocations: 288.4 kB / 0.6402 GB, free: 3.785 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 8.358e-05/0.1391, allocations: 142.8 kB / 0.6404 GB, free: 3.645 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1392, allocations: 90.14 kB / 0.6405 GB, free: 3.551 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.1393, allocations: 358.8 kB / 0.6408 GB, free: 3.191 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.1395, allocations: 128.9 kB / 0.6409 GB, free: 3.066 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/0.1397, allocations: 228.1 kB / 0.6411 GB, free: 2.801 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005419/0.1403, allocations: 386.5 kB / 0.6415 GB, free: 2.383 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1403, allocations: 0 / 0.6415 GB, free: 2.383 MB / 0.5573 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007855/0.1411, allocations: 0.5725 MB / 0.6421 GB, free: 1.797 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 7.242e-05/0.1411, allocations: 11.94 kB / 0.6421 GB, free: 1.785 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1411, allocations: 4 kB / 0.6421 GB, free: 1.781 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000471/0.1416, allocations: 149.6 kB / 0.6422 GB, free: 1.629 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.1418, allocations: 71.91 kB / 0.6423 GB, free: 1.559 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.1432, allocations: 1.237 MB / 0.6435 GB, free: 276 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002376/0.1434, allocations: 20.03 kB / 0.6435 GB, free: 256 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.701e-05/0.1435, allocations: 19.98 kB / 0.6435 GB, free: 236 kB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (reservoir.medium.phase,massFlowRate.outlet.state.phase,isenthalpic.outlet.state.phase,source.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,4), (2,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002112/0.1437, allocations: 185.8 kB / 0.6437 GB, free: 40 kB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.4249/0.5686, allocations: 52.31 kB / 0.6438 GB, free: 94.86 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003068/0.5717, allocations: 1.47 MB / 0.6452 GB, free: 94.53 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.759e-05/0.5717, allocations: 19.2 kB / 0.6452 GB, free: 94.53 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.5717, allocations: 6.516 kB / 0.6452 GB, free: 94.53 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.5717, allocations: 2.062 kB / 0.6452 GB, free: 94.53 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.5731, allocations: 0.793 MB / 0.646 GB, free: 94.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.5731, allocations: 1.469 kB / 0.646 GB, free: 94.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000205/0.5733, allocations: 61.22 kB / 0.6461 GB, free: 94.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007646/0.5741, allocations: 297.4 kB / 0.6463 GB, free: 94.03 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.5741, allocations: 16.69 kB / 0.6464 GB, free: 94.02 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.5755, allocations: 1.491 MB / 0.6478 GB, free: 92.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.5755, allocations: 0.8438 kB / 0.6478 GB, free: 92.82 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002478/0.578, allocations: 1.579 MB / 0.6494 GB, free: 92.09 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.5783, allocations: 111.5 kB / 0.6495 GB, free: 92.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.315e-05/0.5783, allocations: 24.8 kB / 0.6495 GB, free: 92.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.5785, allocations: 27.91 kB / 0.6495 GB, free: 92.04 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/0.5786, allocations: 28.86 kB / 0.6495 GB, free: 92.03 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.5786, allocations: 15.56 kB / 0.6496 GB, free: 92.03 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004489/0.5791, allocations: 351.1 kB / 0.6499 GB, free: 91.86 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8e-08/0.5791, allocations: 0 / 0.6499 GB, free: 91.86 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.004196/0.5833, allocations: 1.015 MB / 0.6509 GB, free: 91.81 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (reservoir.M,reservoir.U_med) * Number of discrete variables: 9 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,reservoir.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,4), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007949/0.5912, allocations: 3.196 MB / 0.654 GB, free: 90.54 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001355/0.5926, allocations: 0.5314 MB / 0.6545 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.5926, allocations: 0 / 0.6545 GB, free: 90.38 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005296/0.5931, allocations: 377.9 kB / 0.6549 GB, free: 90.25 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.5941, allocations: 229.2 kB / 0.6551 GB, free: 90.21 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/0.6065, allocations: 5.385 MB / 0.6604 GB, free: 87.26 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/0.6071, allocations: 347.1 kB / 0.6607 GB, free: 87.16 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004843/0.6076, allocations: 133.6 kB / 0.6608 GB, free: 87.14 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.6079, allocations: 279.7 kB / 0.6611 GB, free: 86.93 MB / 0.5573 GB Notification: Performance of SimCode: time 2.354e-06/0.6079, allocations: 1.125 kB / 0.6611 GB, free: 86.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/0.7143, allocations: 49.73 MB / 0.7097 GB, free: 48.02 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/12.04, allocations: 3.094 kB / 0.7097 GB, free: 48.02 MB / 0.5573 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 15.474497662857175] Failed to read output from testmodel.py, exit status != 0: 12.16260970570147 12.17781049 12.068667714 Calling exit ...