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 (/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.001709/0.001709, allocations: 110 kB / 16.37 MB, free: 6.469 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.001856/0.001856, allocations: 195.8 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.658/0.658, allocations: 89.5 MB / 380.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 72.22 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.12, allocations: 67.31 MB / 0.5146 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.3325/0.4525, allocations: 149.4 MB / 0.6605 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005857/0.4583, allocations: 4.578 MB / 0.665 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004928/0.4589, allocations: 11.94 kB / 0.665 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0008526/0.4598, allocations: 282.2 kB / 0.6653 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.4613, allocations: 0.6252 MB / 0.6659 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.4624, allocations: 0.4952 MB / 0.6663 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0009716/0.4634, allocations: 0.8788 MB / 0.6672 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002643/0.4636, allocations: 154.3 kB / 0.6673 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007807/0.4644, allocations: 474.1 kB / 0.6678 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005129/0.465, allocations: 442.4 kB / 0.6682 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.465, allocations: 44 kB / 0.6683 GB, free: 9.938 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001458/0.4665, allocations: 0.7642 MB / 0.669 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.4666, allocations: 107.5 kB / 0.6691 GB, free: 9.066 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002448/0.4669, allocations: 290.5 kB / 0.6694 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.468, allocations: 0.8545 MB / 0.6702 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.468, allocations: 5.781 kB / 0.6702 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.393e-06/0.468, allocations: 0 / 0.6702 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.468, allocations: 4 kB / 0.6702 GB, free: 7.922 MB / 0.5137 GB 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.00134/0.4694, allocations: 0.8575 MB / 0.6711 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.4694, allocations: 8.031 kB / 0.6711 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.4696, allocations: 60.28 kB / 0.6711 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004401/0.47, allocations: 371.7 kB / 0.6715 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.4701, allocations: 41.36 kB / 0.6715 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.57e-05/0.4701, allocations: 48.28 kB / 0.6716 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007359/0.4709, allocations: 0.5087 MB / 0.6721 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4709, allocations: 1.125 kB / 0.6721 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.4709, allocations: 17.45 kB / 0.6721 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.471, allocations: 12 kB / 0.6721 GB, free: 5.898 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007147/0.4717, allocations: 483.7 kB / 0.6726 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.474, allocations: 2.131 MB / 0.6746 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000711/0.4747, allocations: 363.5 kB / 0.675 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.475, allocations: 206.8 kB / 0.6752 GB, free: 2.543 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002273/0.4773, allocations: 2.009 MB / 0.6772 GB, free: 256 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.4774, allocations: 36.88 kB / 0.6772 GB, free: 212 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=47): time 1.853e-06/0.4774, allocations: 0 / 0.6772 GB, free: 212 kB / 0.5137 GB Notification: Performance of matching and sorting (n=47): time 0.001547/0.4789, allocations: 0.7835 MB / 0.678 GB, free: 15.37 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.362e-05/0.479, allocations: 59.84 kB / 0.678 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003693/0.4794, allocations: 373.7 kB / 0.6784 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/0.4794, allocations: 29.7 kB / 0.6784 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.4795, allocations: 224.6 kB / 0.6786 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.896e-05/0.4796, allocations: 157.6 kB / 0.6788 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.4798, allocations: 82.12 kB / 0.6788 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4799, allocations: 362.8 kB / 0.6792 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.4802, allocations: 128.8 kB / 0.6793 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.4804, allocations: 181 kB / 0.6795 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005567/0.481, allocations: 349.6 kB / 0.6798 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.481, allocations: 0 / 0.6798 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008691/0.4819, allocations: 0.4894 MB / 0.6803 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.4819, allocations: 4 kB / 0.6803 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.4819, allocations: 0 / 0.6803 GB, free: 12.88 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.4822, allocations: 65.67 kB / 0.6804 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002936/0.4825, allocations: 88.89 kB / 0.6804 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.4846, allocations: 2.92 MB / 0.6833 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.4849, allocations: 50.5 kB / 0.6833 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-05/0.4849, allocations: 19.98 kB / 0.6834 GB, free: 9.465 MB / 0.5294 GB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001874/0.4851, allocations: 169.8 kB / 0.6835 GB, free: 9.289 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-05/0.4852, allocations: 47.44 kB / 0.6836 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.4865, allocations: 0.6953 MB / 0.6842 GB, free: 8.539 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.4865, allocations: 4.516 kB / 0.6843 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.4865, allocations: 0 / 0.6843 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4865, allocations: 3.984 kB / 0.6843 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001706/0.4882, allocations: 1.159 MB / 0.6854 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4882, allocations: 0 / 0.6854 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.4885, allocations: 79.89 kB / 0.6855 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.4887, allocations: 65.78 kB / 0.6855 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.4888, allocations: 19.92 kB / 0.6855 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002034/0.4908, allocations: 2.933 MB / 0.6884 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4908, allocations: 0 / 0.6884 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001144/0.492, allocations: 0.7503 MB / 0.6891 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.4921, allocations: 132.4 kB / 0.6893 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.207e-05/0.4922, allocations: 11.91 kB / 0.6893 GB, free: 2.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.4924, allocations: 12 kB / 0.6893 GB, free: 2.965 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.781e-05/0.4925, allocations: 37.67 kB / 0.6893 GB, free: 2.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.4925, allocations: 21.05 kB / 0.6893 GB, free: 2.91 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003126/0.4928, allocations: 303.2 kB / 0.6896 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.31e-07/0.4928, allocations: 0 / 0.6896 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00061/0.4934, allocations: 191.8 kB / 0.6898 GB, free: 2.43 MB / 0.5294 GB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004098/0.4939, allocations: 272.2 kB / 0.6901 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0009538/0.4948, allocations: 0.5811 MB / 0.6906 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.4948, allocations: 4 kB / 0.6907 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005609/0.4954, allocations: 445 kB / 0.6911 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008379/0.4963, allocations: 170 kB / 0.6912 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.498, allocations: 0.9967 MB / 0.6922 GB, free: 15.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.4983, allocations: 0.8317 MB / 0.693 GB, free: 15.07 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003044/0.4987, allocations: 106.3 kB / 0.6931 GB, free: 14.99 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.4988, allocations: 51.42 kB / 0.6932 GB, free: 14.95 MB / 0.545 GB Notification: Performance of SimCode: time 3.61e-07/0.4988, allocations: 3.938 kB / 0.6932 GB, free: 14.94 MB / 0.545 GB Notification: Performance of Templates: time 0.01638/0.5152, allocations: 10.19 MB / 0.7031 GB, free: 4.973 MB / 0.545 GB 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches