Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 100.1 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.001931/0.001931, 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.499/1.499, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8037/0.8037, allocations: 89.61 MB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003783, allocations: 8.906 kB / 459.9 MB, free: 24.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1511, allocations: 68.82 MB / 0.5163 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4897/0.6408, allocations: 126.7 MB / 0.6401 GB, free: 4.316 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.005988/0.6469, allocations: 3.849 MB / 0.6439 GB, free: 1.227 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006058/0.6476, allocations: 11.84 kB / 0.6439 GB, free: 1.223 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008831/0.6484, allocations: 226.2 kB / 0.6441 GB, free: 1.031 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001849/0.6503, allocations: 0.6033 MB / 0.6447 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.6516, allocations: 372.8 kB / 0.645 GB, free: 236 kB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001288/0.6529, allocations: 0.5776 MB / 0.6456 GB, free: 15.88 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002982/0.6532, allocations: 129.9 kB / 0.6457 GB, free: 15.8 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007976/0.654, allocations: 370 kB / 0.6461 GB, free: 15.58 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004246/0.6544, allocations: 325.8 kB / 0.6464 GB, free: 15.4 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.6545, allocations: 20.56 kB / 0.6464 GB, free: 15.4 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.6562, allocations: 0.6701 MB / 0.6471 GB, free: 15.13 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-05/0.6562, allocations: 75.73 kB / 0.6471 GB, free: 15.07 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001125/0.6564, allocations: 120.6 kB / 0.6472 GB, free: 15 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006859/0.6571, allocations: 0.5496 MB / 0.6478 GB, free: 14.64 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.6571, allocations: 0 / 0.6478 GB, free: 14.64 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6571, allocations: 0 / 0.6478 GB, free: 14.64 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.6571, allocations: 2.781 kB / 0.6478 GB, free: 14.64 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001385/0.6585, allocations: 0.7742 MB / 0.6485 GB, free: 13.98 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.6585, allocations: 10.84 kB / 0.6485 GB, free: 13.98 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.6587, allocations: 58.97 kB / 0.6486 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.6592, allocations: 365.8 kB / 0.649 GB, free: 13.6 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.6593, allocations: 34.91 kB / 0.649 GB, free: 13.59 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.6594, allocations: 44.7 kB / 0.649 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008386/0.6602, allocations: 0.4995 MB / 0.6495 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.6602, allocations: 0 / 0.6495 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.289e-05/0.6603, allocations: 21.72 kB / 0.6495 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.6603, allocations: 10.28 kB / 0.6495 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007257/0.6611, allocations: 485.8 kB / 0.65 GB, free: 12.99 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/0.6638, allocations: 2.218 MB / 0.6522 GB, free: 10.94 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007239/0.6646, allocations: 359.4 kB / 0.6525 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002572/0.6671, allocations: 2.08 MB / 0.6546 GB, free: 8.652 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/0.6672, allocations: 39 kB / 0.6546 GB, free: 8.605 MB / 478.1 MB Notification: Performance of pre-optimization done (n=47): time 2.405e-06/0.6672, allocations: 0 / 0.6546 GB, free: 8.605 MB / 478.1 MB Notification: Performance of matching and sorting (n=47): time 0.001612/0.6688, allocations: 0.7764 MB / 0.6553 GB, free: 8.098 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.6689, allocations: 60.08 kB / 0.6554 GB, free: 8.027 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.6693, allocations: 370.1 kB / 0.6558 GB, free: 7.797 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.6694, allocations: 36.23 kB / 0.6558 GB, free: 7.758 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.6696, allocations: 217.5 kB / 0.656 GB, free: 7.562 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.6697, allocations: 166 kB / 0.6562 GB, free: 7.418 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.812e-05/0.6697, allocations: 7.938 kB / 0.6562 GB, free: 7.41 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.6699, allocations: 357.1 kB / 0.6565 GB, free: 7.062 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.6701, allocations: 132 kB / 0.6566 GB, free: 7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002633/0.6704, allocations: 179.3 kB / 0.6568 GB, free: 6.891 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002733/0.6707, allocations: 158.8 kB / 0.657 GB, free: 6.809 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6707, allocations: 0 / 0.657 GB, free: 6.809 MB / 478.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008279/0.6715, allocations: 0.49 MB / 0.6574 GB, free: 6.539 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.6715, allocations: 5.938 kB / 0.6574 GB, free: 6.539 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.6716, allocations: 0 / 0.6574 GB, free: 6.539 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000281/0.6718, allocations: 64.2 kB / 0.6575 GB, free: 6.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.6721, allocations: 87.25 kB / 0.6576 GB, free: 6.48 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/0.6743, allocations: 2.734 MB / 0.6603 GB, free: 3.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.6746, allocations: 37.94 kB / 0.6603 GB, free: 3.652 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/0.6747, allocations: 23.7 kB / 0.6603 GB, free: 3.645 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * Single equations (assignments): 47 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002453/0.6749, allocations: 171.7 kB / 0.6605 GB, free: 3.484 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.585e-05/0.675, allocations: 46.84 kB / 0.6605 GB, free: 3.461 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.6763, allocations: 0.7039 MB / 0.6612 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.6764, allocations: 9.25 kB / 0.6612 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6764, allocations: 7.094 kB / 0.6612 GB, free: 3.012 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.6764, allocations: 3.984 kB / 0.6612 GB, free: 3.008 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.6782, allocations: 1.181 MB / 0.6624 GB, free: 2.105 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.6782, allocations: 14.89 kB / 0.6624 GB, free: 2.094 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002461/0.6785, allocations: 72.64 kB / 0.6625 GB, free: 2.078 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002162/0.6787, allocations: 71.06 kB / 0.6625 GB, free: 2.031 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.6788, allocations: 10.84 kB / 0.6625 GB, free: 2.027 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002331/0.6811, allocations: 2.749 MB / 0.6652 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.6811, allocations: 0 / 0.6652 GB, free: 15.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001174/0.6823, allocations: 0.7968 MB / 0.666 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.6825, allocations: 148.3 kB / 0.6661 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.847e-05/0.6825, allocations: 6.625 kB / 0.6662 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.6828, allocations: 19.72 kB / 0.6662 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.798e-05/0.6829, allocations: 37.28 kB / 0.6662 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.701e-05/0.6829, allocations: 21.42 kB / 0.6662 GB, free: 14.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000318/0.6832, allocations: 284.5 kB / 0.6665 GB, free: 14.29 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6832, allocations: 0 / 0.6665 GB, free: 14.29 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000725/0.684, allocations: 196.5 kB / 0.6667 GB, free: 14.24 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004364/0.6844, allocations: 274 kB / 0.6669 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009422/0.6854, allocations: 0.584 MB / 0.6675 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/0.6854, allocations: 0 / 0.6675 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000536/0.6859, allocations: 443.6 kB / 0.6679 GB, free: 13.29 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008286/0.6868, allocations: 159.7 kB / 0.6681 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.689, allocations: 1.219 MB / 0.6693 GB, free: 11.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.6894, allocations: 0.8512 MB / 0.6701 GB, free: 11.01 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003261/0.6898, allocations: 98.25 kB / 0.6702 GB, free: 10.92 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.6899, allocations: 51.42 kB / 0.6703 GB, free: 10.87 MB / 494.1 MB Notification: Performance of SimCode: time 4.41e-07/0.6899, allocations: 0 / 0.6703 GB, free: 10.87 MB / 494.1 MB Notification: Performance of Templates: time 0.01663/0.7065, allocations: 9.35 MB / 0.6794 GB, free: 1.621 MB / 494.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches