Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.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.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") translateModel(ThermofluidStream.Boundaries.Tests.DynamicBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|source3.outlet.m_flow|source4.outlet.m_flow|source5.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001135, allocations: 99.47 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.001563/0.001564, allocations: 177.3 kB / 15.94 MB, free: 228 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.498/1.498, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7493/0.7493, allocations: 89.61 MB / 380.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006728/0.000673, allocations: 10.06 kB / 459.9 MB, free: 24.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.1829, allocations: 68.82 MB / 0.5163 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.DynamicBoundaries): time 0.4965/0.6794, allocations: 154.5 MB / 0.6672 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0485/0.728, allocations: 37.67 MB / 0.704 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004027/0.7321, allocations: 43.75 kB / 0.704 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.006349/0.7385, allocations: 1.77 MB / 0.7057 GB, free: 8.465 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.01317/0.7517, allocations: 3.734 MB / 0.7094 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.02072/0.7725, allocations: 5.739 MB / 0.715 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.007136/0.7796, allocations: 2.769 MB / 0.7177 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.7812, allocations: 0.7111 MB / 0.7184 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.03041/0.8116, allocations: 17.69 MB / 0.7356 GB, free: 9.754 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003154/0.8148, allocations: 1.213 MB / 0.7368 GB, free: 8.535 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0008139/0.8157, allocations: 100 kB / 0.7369 GB, free: 8.438 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02974/0.8454, allocations: 10.1 MB / 0.7468 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001184/0.8467, allocations: 402.1 kB / 0.7472 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00143/0.8481, allocations: 0.5354 MB / 0.7477 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01558/0.8637, allocations: 5.806 MB / 0.7534 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.8637, allocations: 0 / 0.7534 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.236e-06/0.8638, allocations: 3.938 kB / 0.7534 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.834e-05/0.8638, allocations: 0 / 0.7534 GB, free: 7.578 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 602 * Number of variables: 602 Notification: Performance of Generate backend data structure: time 0.01339/0.8772, allocations: 3.964 MB / 0.7572 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.8773, allocations: 12.03 kB / 0.7572 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003056/0.8804, allocations: 0.5624 MB / 0.7578 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.8833, allocations: 1.226 MB / 0.759 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.8834, allocations: 180.7 kB / 0.7592 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003204/0.8837, allocations: 243.8 kB / 0.7594 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00584/0.8896, allocations: 2.799 MB / 0.7621 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.794e-05/0.8896, allocations: 7.984 kB / 0.7621 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001969/0.8899, allocations: 96 kB / 0.7622 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.783e-05/0.8899, allocations: 60 kB / 0.7623 GB, free: 14.17 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005271/0.8952, allocations: 2.369 MB / 0.7646 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01692/0.9121, allocations: 12.84 MB / 0.7771 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005164/0.9174, allocations: 2.112 MB / 0.7792 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4642/1.382, allocations: 48.04 MB / 0.8261 GB, free: 205.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.507e-05/1.382, allocations: 59.16 kB / 0.8262 GB, free: 205.2 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=208): time 4.639e-06/1.382, allocations: 1.125 kB / 0.8262 GB, free: 205.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=208): time 0.01353/1.395, allocations: 4.347 MB / 0.8304 GB, free: 204.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/1.395, allocations: 208.7 kB / 0.8306 GB, free: 204.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003266/1.399, allocations: 1.445 MB / 0.832 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0003474/1.399, allocations: 61.05 kB / 0.8321 GB, free: 203.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008646/1.4, allocations: 0.9442 MB / 0.833 GB, free: 203 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007409/1.401, allocations: 0.7023 MB / 0.8337 GB, free: 202.4 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.599e-05/1.401, allocations: 34.97 kB / 0.8337 GB, free: 202.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001449/1.401, allocations: 380.3 kB / 0.8341 GB, free: 202.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/1.402, allocations: 0.6734 MB / 0.8348 GB, free: 201.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/1.404, allocations: 0.9412 MB / 0.8357 GB, free: 201.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/1.405, allocations: 0.7951 MB / 0.8364 GB, free: 200.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/1.405, allocations: 2.75 kB / 0.8364 GB, free: 200.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004965/1.41, allocations: 2.322 MB / 0.8387 GB, free: 199.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/1.41, allocations: 13.47 kB / 0.8387 GB, free: 199.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/1.41, allocations: 7.781 kB / 0.8387 GB, free: 199.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/1.411, allocations: 323.4 kB / 0.839 GB, free: 199.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/1.413, allocations: 401.9 kB / 0.8394 GB, free: 199.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006197/1.419, allocations: 9.038 MB / 0.8483 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002398/1.422, allocations: 228.8 kB / 0.8485 GB, free: 190.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002285/1.422, allocations: 87.38 kB / 0.8486 GB, free: 190.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 24 (dynamicPressureInflow5.outlet.state.phase,dynamicPressureInflow4.outlet.state.phase,dynamicPressureInflow3.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,dynamicPressureInflow1.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,flowResistance5.outlet.state.phase,dynamicPressureOutflow5.outlet.state.phase,source5.outlet.state.phase,flowResistance4.outlet.state.phase,dynamicPressureOutflow4.outlet.state.phase,source4.outlet.state.phase,flowResistance3.outlet.state.phase,dynamicPressureOutflow3.outlet.state.phase,source3.outlet.state.phase,flowResistance2.outlet.state.phase,dynamicPressureOutflow2.outlet.state.phase,source2.outlet.state.phase,flowResistance1.outlet.state.phase,dynamicPressureOutflow1.outlet.state.phase,source1.outlet.state.phase,flowResistance.outlet.state.phase,dynamicPressureOutflow.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 (214): * Single equations (assignments): 208 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00129/1.423, allocations: 416.1 kB / 0.849 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008092/1.424, allocations: 211.6 kB / 0.8492 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01085/1.435, allocations: 6.479 MB / 0.8555 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.243e-05/1.435, allocations: 75.52 kB / 0.8556 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.255e-05/1.435, allocations: 7.906 kB / 0.8556 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.906e-05/1.435, allocations: 11.95 kB / 0.8556 GB, free: 186.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0177/1.453, allocations: 10.03 MB / 0.8654 GB, free: 180.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-05/1.453, allocations: 4 kB / 0.8654 GB, free: 180.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/1.455, allocations: 343.5 kB / 0.8657 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/1.456, allocations: 329 kB / 0.866 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002139/1.456, allocations: 63.97 kB / 0.8661 GB, free: 179.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007376/1.464, allocations: 9.036 MB / 0.8749 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.464, allocations: 7.969 kB / 0.8749 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/1.474, allocations: 5.906 MB / 0.8807 GB, free: 163.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001549/1.476, allocations: 0.5386 MB / 0.8812 GB, free: 163 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004781/1.476, allocations: 51.88 kB / 0.8812 GB, free: 162.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002171/1.478, allocations: 135.5 kB / 0.8814 GB, free: 162.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004381/1.479, allocations: 171.7 kB / 0.8815 GB, free: 162.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001766/1.479, allocations: 67.97 kB / 0.8816 GB, free: 162.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002216/1.481, allocations: 1.244 MB / 0.8828 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.71e-07/1.481, allocations: 3.938 kB / 0.8828 GB, free: 161.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00881/1.49, allocations: 1.762 MB / 0.8845 GB, free: 159.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (flowResistance5.inlet.m_flow,flowResistance4.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance1.inlet.m_flow,flowResistance.inlet.m_flow) * Number of discrete variables: 36 ($cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (208): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009692/1.5, allocations: 1.881 MB / 0.8864 GB, free: 158 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.006534/1.506, allocations: 3.132 MB / 0.8894 GB, free: 154.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/1.506, allocations: 0 / 0.8894 GB, free: 154.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.003995/1.51, allocations: 2.514 MB / 0.8919 GB, free: 152.2 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005955/1.516, allocations: 0.7927 MB / 0.8927 GB, free: 151.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01632/1.533, allocations: 8.019 MB / 0.9005 GB, free: 143.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001593/1.534, allocations: 1.971 MB / 0.9024 GB, free: 141.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002947/1.537, allocations: 0.8809 MB / 0.9033 GB, free: 140.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006352/1.538, allocations: 179.3 kB / 0.9035 GB, free: 140.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.112e-06/1.538, allocations: 4 kB / 0.9035 GB, free: 140.3 MB / 0.6075 GB Notification: Performance of Templates: time 0.09893/1.637, allocations: 74.85 MB / 0.9765 GB, free: 65.95 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.DynamicBoundaries_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.DynamicBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches