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.0009861/0.0009861, allocations: 91.14 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.0009973/0.0009974, allocations: 172.7 kB / 15.95 MB, free: 208 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.521/1.521, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7706/0.7706, allocations: 89.65 MB / 380.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003729, allocations: 14.12 kB / 460.1 MB, free: 24.3 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1498, allocations: 68.83 MB / 0.5166 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03658/0.1865, allocations: 38.34 MB / 0.554 GB, free: 5.168 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00783/0.1943, allocations: 5.028 MB / 0.5589 GB, free: 124 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.1956, allocations: 19.88 kB / 0.5589 GB, free: 104 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.1971, allocations: 445.3 kB / 0.5594 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003597/0.2008, allocations: 1.173 MB / 0.5605 GB, free: 14.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002236/0.203, allocations: 0.6302 MB / 0.5611 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003204/0.2062, allocations: 2.248 MB / 0.5633 GB, free: 11.6 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005337/0.2068, allocations: 220.9 kB / 0.5635 GB, free: 11.38 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003084/0.2099, allocations: 0.9996 MB / 0.5645 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.2109, allocations: 0.6807 MB / 0.5652 GB, free: 9.688 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.211, allocations: 48 kB / 0.5652 GB, free: 9.641 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002036/0.2131, allocations: 0.5345 MB / 0.5657 GB, free: 9.105 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.2133, allocations: 191 kB / 0.5659 GB, free: 8.918 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.2137, allocations: 237.1 kB / 0.5662 GB, free: 8.68 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001585/0.2153, allocations: 1.177 MB / 0.5673 GB, free: 7.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.2153, allocations: 0 / 0.5673 GB, free: 7.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2153, allocations: 0 / 0.5673 GB, free: 7.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.2153, allocations: 0 / 0.5673 GB, free: 7.5 MB / 446.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.002665/0.218, allocations: 1.344 MB / 0.5686 GB, free: 6.105 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.218, allocations: 8.031 kB / 0.5686 GB, free: 6.098 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.2182, allocations: 139.7 kB / 0.5688 GB, free: 5.953 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003073/0.2185, allocations: 142.5 kB / 0.5689 GB, free: 5.812 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009509/0.2195, allocations: 0.6172 MB / 0.5695 GB, free: 5.152 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/0.2196, allocations: 70 kB / 0.5696 GB, free: 5.086 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000135/0.2197, allocations: 99.98 kB / 0.5697 GB, free: 4.988 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.2214, allocations: 1.077 MB / 0.5707 GB, free: 3.875 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.2214, allocations: 0 / 0.5707 GB, free: 3.875 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.448e-05/0.2215, allocations: 40 kB / 0.5707 GB, free: 3.836 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.15e-05/0.2216, allocations: 27.95 kB / 0.5708 GB, free: 3.809 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001705/0.2233, allocations: 1.028 MB / 0.5718 GB, free: 2.785 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.323/0.5463, allocations: 4.743 MB / 0.5764 GB, free: 57.45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.5485, allocations: 0.9362 MB / 0.5773 GB, free: 57.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009657/0.5495, allocations: 0.4998 MB / 0.5778 GB, free: 57.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003942/0.5534, allocations: 3.502 MB / 0.5812 GB, free: 54.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.678e-05/0.5535, allocations: 62.36 kB / 0.5813 GB, free: 54.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.785e-06/0.5535, allocations: 0 / 0.5813 GB, free: 54.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.009094/0.5626, allocations: 4.514 MB / 0.5857 GB, free: 52.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.5627, allocations: 91.23 kB / 0.5858 GB, free: 52.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006597/0.5633, allocations: 0.6365 MB / 0.5864 GB, free: 51.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.792e-05/0.5634, allocations: 46.67 kB / 0.5865 GB, free: 51.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002594/0.5637, allocations: 417.2 kB / 0.5869 GB, free: 51.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002875/0.564, allocations: 421.1 kB / 0.5873 GB, free: 51.23 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.471e-05/0.564, allocations: 21.22 kB / 0.5873 GB, free: 51.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.5641, allocations: 354.9 kB / 0.5876 GB, free: 50.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008308/0.565, allocations: 428 kB / 0.588 GB, free: 50.74 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009216/0.5659, allocations: 0.59 MB / 0.5886 GB, free: 50.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008455/0.5667, allocations: 0.4899 MB / 0.5891 GB, free: 50.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.5668, allocations: 0 / 0.5891 GB, free: 50.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002947/0.5697, allocations: 1.52 MB / 0.5906 GB, free: 49.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.5698, allocations: 5.578 kB / 0.5906 GB, free: 49.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.5698, allocations: 3.625 kB / 0.5906 GB, free: 49.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.5709, allocations: 316.6 kB / 0.5909 GB, free: 49.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008754/0.5718, allocations: 245.2 kB / 0.5911 GB, free: 49.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00687/0.5787, allocations: 11.24 MB / 0.6021 GB, free: 38.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.5798, allocations: 92.62 kB / 0.6022 GB, free: 38.39 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.58, allocations: 51.31 kB / 0.6022 GB, free: 38.38 MB / 446.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.0005844/0.5806, allocations: 240.1 kB / 0.6024 GB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003002/0.5809, allocations: 107.6 kB / 0.6026 GB, free: 38.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003896/0.5848, allocations: 1.898 MB / 0.6044 GB, free: 37.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.5848, allocations: 12.12 kB / 0.6044 GB, free: 37.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.5848, allocations: 7.562 kB / 0.6044 GB, free: 37.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/0.5849, allocations: 11.8 kB / 0.6044 GB, free: 37.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005395/0.5903, allocations: 2.894 MB / 0.6073 GB, free: 35.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.5903, allocations: 1.219 kB / 0.6073 GB, free: 35.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009528/0.5913, allocations: 224.3 kB / 0.6075 GB, free: 35.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001167/0.5924, allocations: 322.7 kB / 0.6078 GB, free: 35.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.5926, allocations: 39.56 kB / 0.6078 GB, free: 35.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007053/0.5996, allocations: 11.24 MB / 0.6188 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.5997, allocations: 6.172 kB / 0.6188 GB, free: 24.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004475/0.6041, allocations: 2.209 MB / 0.621 GB, free: 23.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004426/0.6046, allocations: 179.9 kB / 0.6211 GB, free: 23.05 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001583/0.6048, allocations: 28.25 kB / 0.6212 GB, free: 23.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007696/0.6056, allocations: 97.97 kB / 0.6213 GB, free: 22.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/0.6058, allocations: 110.9 kB / 0.6214 GB, free: 22.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.539e-05/0.6059, allocations: 45.31 kB / 0.6214 GB, free: 22.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006046/0.6066, allocations: 484.9 kB / 0.6219 GB, free: 22.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6066, allocations: 4 kB / 0.6219 GB, free: 22.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001784/0.6083, allocations: 442.7 kB / 0.6223 GB, free: 22.55 MB / 446.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.004572/0.6129, allocations: 3.079 MB / 0.6253 GB, free: 20.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.6161, allocations: 2.115 MB / 0.6274 GB, free: 19.13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.6161, allocations: 0 / 0.6274 GB, free: 19.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002036/0.6181, allocations: 1.624 MB / 0.6289 GB, free: 17.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.6199, allocations: 319.7 kB / 0.6293 GB, free: 17.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.6318, allocations: 7.243 MB / 0.6363 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006018/0.6324, allocations: 1.056 MB / 0.6374 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00111/0.6335, allocations: 218.3 kB / 0.6376 GB, free: 10.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005463/0.6341, allocations: 435.3 kB / 0.638 GB, free: 9.781 MB / 446.1 MB Notification: Performance of SimCode: time 1.392e-06/0.6341, allocations: 0 / 0.638 GB, free: 9.781 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07704/0.7112, allocations: 31.86 MB / 0.6691 GB, free: 10.3 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000257/0.7115, allocations: 232.3 kB / 0.6693 GB, free: 10.05 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.897/3.608, allocations: 0 / 0.6693 GB, free: 10.05 MB / 478.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