Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.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: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|terminal_fore.p|terminal_rear.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|terminal_fore.p|terminal_rear.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001414/0.001414, allocations: 177.3 kB / 15.95 MB, free: 216 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.493/1.493, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8048/0.8048, allocations: 89.6 MB / 380.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006057/0.0006058, allocations: 11.16 kB / 459.9 MB, free: 24.32 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1967, allocations: 68.83 MB / 0.5163 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries): time 0.5135/0.7103, allocations: 124.5 MB / 0.6379 GB, free: 6.055 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003632/0.714, allocations: 2.574 MB / 0.6404 GB, free: 3.984 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003448/0.7143, allocations: 8.281 kB / 0.6404 GB, free: 3.98 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006747/0.715, allocations: 177.3 kB / 0.6406 GB, free: 3.832 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008381/0.7159, allocations: 351.1 kB / 0.6409 GB, free: 3.539 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009257/0.7168, allocations: 330.6 kB / 0.6412 GB, free: 3.281 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000511/0.7173, allocations: 401.8 kB / 0.6416 GB, free: 3.039 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002075/0.7175, allocations: 105 kB / 0.6417 GB, free: 2.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007952/0.7183, allocations: 345.7 kB / 0.6421 GB, free: 2.754 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.7186, allocations: 205.6 kB / 0.6423 GB, free: 2.641 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.7187, allocations: 10.25 kB / 0.6423 GB, free: 2.641 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009611/0.7196, allocations: 462.2 kB / 0.6427 GB, free: 2.465 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 5.232e-05/0.7197, allocations: 47.42 kB / 0.6428 GB, free: 2.426 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 9.13e-05/0.7198, allocations: 94.05 kB / 0.6428 GB, free: 2.363 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.7203, allocations: 348.5 kB / 0.6432 GB, free: 2.148 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.514e-06/0.7203, allocations: 0 / 0.6432 GB, free: 2.148 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.7203, allocations: 0 / 0.6432 GB, free: 2.148 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.7203, allocations: 2.406 kB / 0.6432 GB, free: 2.148 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001068/0.7214, allocations: 0.6334 MB / 0.6438 GB, free: 1.586 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.7214, allocations: 7.531 kB / 0.6438 GB, free: 1.586 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.667e-05/0.7215, allocations: 44.05 kB / 0.6438 GB, free: 1.562 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.7219, allocations: 282.8 kB / 0.6441 GB, free: 1.281 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.7219, allocations: 18.5 kB / 0.6441 GB, free: 1.273 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.358e-05/0.722, allocations: 31.22 kB / 0.6442 GB, free: 1.262 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000629/0.7226, allocations: 327.8 kB / 0.6445 GB, free: 1.016 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.7227, allocations: 2.812 kB / 0.6445 GB, free: 1.016 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.7227, allocations: 14.69 kB / 0.6445 GB, free: 1.004 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.7227, allocations: 12.64 kB / 0.6445 GB, free: 0.9961 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004954/0.7232, allocations: 206.2 kB / 0.6447 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.7251, allocations: 1.77 MB / 0.6464 GB, free: 15.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.7256, allocations: 176.5 kB / 0.6466 GB, free: 15.07 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007305/0.7263, allocations: 0.5351 MB / 0.6471 GB, free: 14.48 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.7264, allocations: 42.45 kB / 0.6472 GB, free: 14.43 MB / 478.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.7264, allocations: 0 / 0.6472 GB, free: 14.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008214/0.7272, allocations: 366.1 kB / 0.6475 GB, free: 14.18 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.914e-05/0.7273, allocations: 104.5 kB / 0.6476 GB, free: 14.06 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004632/0.7278, allocations: 322.8 kB / 0.6479 GB, free: 13.85 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/0.7278, allocations: 33.7 kB / 0.648 GB, free: 13.81 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.728, allocations: 196.7 kB / 0.6481 GB, free: 13.63 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.334e-05/0.728, allocations: 60.5 kB / 0.6482 GB, free: 13.58 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.728, allocations: 4 kB / 0.6482 GB, free: 13.57 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.7282, allocations: 342 kB / 0.6485 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.7284, allocations: 60.52 kB / 0.6486 GB, free: 13.21 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.7285, allocations: 114.5 kB / 0.6487 GB, free: 13.12 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.7287, allocations: 82.12 kB / 0.6488 GB, free: 13.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.7287, allocations: 0 / 0.6488 GB, free: 13.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004711/0.7292, allocations: 268.8 kB / 0.649 GB, free: 12.94 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.7292, allocations: 5.375 kB / 0.649 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.7292, allocations: 2 kB / 0.649 GB, free: 12.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000153/0.7294, allocations: 19.16 kB / 0.6491 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.7296, allocations: 62.31 kB / 0.6491 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.7307, allocations: 1.286 MB / 0.6504 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.7309, allocations: 40.64 kB / 0.6504 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.7309, allocations: 8.406 kB / 0.6504 GB, free: 11.54 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001461/0.7311, allocations: 145.7 kB / 0.6506 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.518e-05/0.7312, allocations: 28.78 kB / 0.6506 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005686/0.7317, allocations: 266.5 kB / 0.6508 GB, free: 11.22 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.7318, allocations: 2.625 kB / 0.6508 GB, free: 11.22 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.7318, allocations: 0 / 0.6508 GB, free: 11.22 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.7318, allocations: 6 kB / 0.6508 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004195/0.7322, allocations: 314.1 kB / 0.6511 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.7322, allocations: 0 / 0.6511 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.7324, allocations: 40.72 kB / 0.6512 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.785e-05/0.7325, allocations: 27.72 kB / 0.6512 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.7325, allocations: 2.344 kB / 0.6512 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000982/0.7335, allocations: 1.298 MB / 0.6525 GB, free: 9.531 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7335, allocations: 2.375 kB / 0.6525 GB, free: 9.531 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007726/0.7343, allocations: 486.8 kB / 0.6529 GB, free: 9.156 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.522e-05/0.7344, allocations: 112.5 kB / 0.6531 GB, free: 9.035 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.7344, allocations: 11.11 kB / 0.6531 GB, free: 9.027 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.7346, allocations: 13.94 kB / 0.6531 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.7347, allocations: 16.75 kB / 0.6531 GB, free: 9.012 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.7347, allocations: 5.562 kB / 0.6531 GB, free: 9.012 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.7349, allocations: 234.3 kB / 0.6533 GB, free: 8.863 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.735, allocations: 0 / 0.6533 GB, free: 8.863 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0004688/0.7354, allocations: 96.25 kB / 0.6534 GB, free: 8.84 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (boundary_fore.rear.m_flow,terminal_rear.p,terminal_fore.p) * 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 (13): * Single equations (assignments): 12 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003125/0.7357, allocations: 193.6 kB / 0.6536 GB, free: 8.711 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005738/0.7363, allocations: 284.7 kB / 0.6539 GB, free: 8.527 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.7363, allocations: 0 / 0.6539 GB, free: 8.527 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003151/0.7367, allocations: 191.7 kB / 0.6541 GB, free: 8.383 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006386/0.7373, allocations: 97.72 kB / 0.6541 GB, free: 8.328 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.7385, allocations: 0.8499 MB / 0.655 GB, free: 7.664 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005153/0.7391, allocations: 0.784 MB / 0.6557 GB, free: 6.918 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.7392, allocations: 42.62 kB / 0.6558 GB, free: 6.902 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.864e-05/0.7393, allocations: 31.42 kB / 0.6558 GB, free: 6.887 MB / 478.1 MB Notification: Performance of SimCode: time 2.3e-07/0.7393, allocations: 0 / 0.6558 GB, free: 6.887 MB / 478.1 MB Notification: Performance of Templates: time 0.009322/0.7486, allocations: 4.641 MB / 0.6603 GB, free: 4.543 MB / 478.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches