Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 103 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001002/0.001003, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.837/0.837, allocations: 89.64 MB / 380.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003837, allocations: 15.36 kB / 460 MB, free: 24.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1478, allocations: 68.83 MB / 0.5165 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02604/0.1739, allocations: 27.48 MB / 0.5433 GB, free: 92 kB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.1841, allocations: 5.404 MB / 0.5486 GB, free: 10.67 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.186, allocations: 15.94 kB / 0.5486 GB, free: 10.65 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.1879, allocations: 445.7 kB / 0.549 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004913/0.1929, allocations: 1.195 MB / 0.5502 GB, free: 9.016 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002584/0.1955, allocations: 0.6503 MB / 0.5508 GB, free: 8.367 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.1983, allocations: 1.279 MB / 0.5521 GB, free: 7.086 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004362/0.1987, allocations: 212.9 kB / 0.5523 GB, free: 6.867 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002188/0.2009, allocations: 0.8604 MB / 0.5531 GB, free: 6.004 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007859/0.2017, allocations: 0.5485 MB / 0.5537 GB, free: 5.453 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.2018, allocations: 48 kB / 0.5537 GB, free: 5.406 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002205/0.2041, allocations: 0.6555 MB / 0.5543 GB, free: 4.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002179/0.2043, allocations: 195.1 kB / 0.5545 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003217/0.2046, allocations: 237.1 kB / 0.5548 GB, free: 4.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.2063, allocations: 1.154 MB / 0.5559 GB, free: 3.164 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2063, allocations: 0 / 0.5559 GB, free: 3.164 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.2063, allocations: 0 / 0.5559 GB, free: 3.164 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.2063, allocations: 0 / 0.5559 GB, free: 3.164 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002637/0.209, allocations: 1.348 MB / 0.5572 GB, free: 1.766 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.209, allocations: 8.031 kB / 0.5572 GB, free: 1.758 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001722/0.2092, allocations: 143.7 kB / 0.5573 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000323/0.2095, allocations: 138.4 kB / 0.5575 GB, free: 1.473 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009979/0.2105, allocations: 0.6172 MB / 0.5581 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.2106, allocations: 74 kB / 0.5581 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001444/0.2107, allocations: 96 kB / 0.5582 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.2124, allocations: 1.07 MB / 0.5593 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.2124, allocations: 0 / 0.5593 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.491e-05/0.2125, allocations: 36 kB / 0.5593 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.2126, allocations: 24 kB / 0.5593 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/0.2143, allocations: 1.028 MB / 0.5603 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005645/0.2199, allocations: 4.86 MB / 0.5651 GB, free: 9.164 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001678/0.2216, allocations: 0.9358 MB / 0.566 GB, free: 8.211 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004701/0.2263, allocations: 3.59 MB / 0.5695 GB, free: 4.203 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.04e-05/0.2264, allocations: 51.08 kB / 0.5696 GB, free: 4.145 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.695e-06/0.2264, allocations: 4 kB / 0.5696 GB, free: 4.141 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.009913/0.2363, allocations: 4.51 MB / 0.574 GB, free: 15.42 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/0.2364, allocations: 90.2 kB / 0.5741 GB, free: 15.31 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007777/0.2372, allocations: 0.6334 MB / 0.5747 GB, free: 14.67 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.454e-05/0.2373, allocations: 49.7 kB / 0.5747 GB, free: 14.62 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000273/0.2376, allocations: 416.8 kB / 0.5751 GB, free: 14.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003151/0.2379, allocations: 421.8 kB / 0.5755 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.074e-05/0.238, allocations: 20 kB / 0.5755 GB, free: 13.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2381, allocations: 349.9 kB / 0.5759 GB, free: 13.42 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008997/0.239, allocations: 434.4 kB / 0.5763 GB, free: 13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009807/0.24, allocations: 0.5779 MB / 0.5768 GB, free: 12.37 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009494/0.241, allocations: 0.4895 MB / 0.5773 GB, free: 11.88 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.241, allocations: 0 / 0.5773 GB, free: 11.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003185/0.2442, allocations: 1.515 MB / 0.5788 GB, free: 10.33 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.2442, allocations: 15.92 kB / 0.5788 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.2442, allocations: 4.438 kB / 0.5788 GB, free: 10.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.2453, allocations: 314.6 kB / 0.5791 GB, free: 9.977 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009296/0.2463, allocations: 247.7 kB / 0.5794 GB, free: 9.734 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.314/0.5603, allocations: 11.3 MB / 0.5904 GB, free: 68.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.5618, allocations: 91.36 kB / 0.5905 GB, free: 68.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/0.562, allocations: 48.16 kB / 0.5905 GB, free: 68.58 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 initialization (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000629/0.5626, allocations: 244.1 kB / 0.5908 GB, free: 68.46 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003617/0.563, allocations: 101.4 kB / 0.5909 GB, free: 68.46 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005028/0.568, allocations: 1.905 MB / 0.5927 GB, free: 68.26 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.439e-05/0.5681, allocations: 13.41 kB / 0.5927 GB, free: 68.26 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/0.5681, allocations: 6.5 kB / 0.5927 GB, free: 68.26 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.5682, allocations: 12.58 kB / 0.5928 GB, free: 68.26 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006089/0.5743, allocations: 2.933 MB / 0.5956 GB, free: 67.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.5743, allocations: 1.719 kB / 0.5956 GB, free: 67.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009273/0.5752, allocations: 230.2 kB / 0.5958 GB, free: 67.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.5763, allocations: 323.1 kB / 0.5961 GB, free: 67.47 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.627e-05/0.5764, allocations: 42.84 kB / 0.5962 GB, free: 67.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007084/0.5835, allocations: 11.32 MB / 0.6072 GB, free: 56.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5836, allocations: 1.562 kB / 0.6072 GB, free: 56.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004481/0.5881, allocations: 2.276 MB / 0.6095 GB, free: 55.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004372/0.5885, allocations: 192.9 kB / 0.6097 GB, free: 55.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.5887, allocations: 26.78 kB / 0.6097 GB, free: 55.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008128/0.5895, allocations: 91.77 kB / 0.6098 GB, free: 55.15 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.5898, allocations: 111.1 kB / 0.6099 GB, free: 55.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.5899, allocations: 44.42 kB / 0.6099 GB, free: 55.12 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006387/0.5906, allocations: 485.5 kB / 0.6104 GB, free: 54.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5906, allocations: 0 / 0.6104 GB, free: 54.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001656/0.5923, allocations: 448.5 kB / 0.6108 GB, free: 54.84 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.m_flow) * 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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005015/0.5973, allocations: 3.466 MB / 0.6142 GB, free: 52.81 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003483/0.6008, allocations: 2.121 MB / 0.6163 GB, free: 51.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.6008, allocations: 1.562 kB / 0.6163 GB, free: 51.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/0.6033, allocations: 1.618 MB / 0.6178 GB, free: 50.36 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.6051, allocations: 286.2 kB / 0.6181 GB, free: 50.27 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/0.6209, allocations: 9.504 MB / 0.6274 GB, free: 44.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007529/0.6217, allocations: 1.073 MB / 0.6284 GB, free: 43.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00128/0.623, allocations: 219.7 kB / 0.6287 GB, free: 43.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006393/0.6236, allocations: 434.8 kB / 0.6291 GB, free: 43.01 MB / 462.1 MB Notification: Performance of SimCode: time 1.993e-06/0.6236, allocations: 1.219 kB / 0.6291 GB, free: 43.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05709/0.6807, allocations: 31.7 MB / 0.66 GB, free: 17.34 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001517/0.6809, allocations: 224.8 kB / 0.6602 GB, free: 17.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.781/3.462, allocations: 7.375 kB / 0.6602 GB, free: 17.09 MB / 462.1 MB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat does not exist to compare? outputFormat=mat