Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 180.9 kB / 15.43 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 225.7 MB / 241.9 MB, free: 384 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007695/0.0007695, allocations: 98.69 kB / 293.1 MB, free: 12.89 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6567/0.6567, allocations: 91.65 MB / 435.8 MB, free: 23.62 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003005/0.0003006, allocations: 8 kB / 0.5038 GB, free: 8.293 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.2998, allocations: 69.29 MB / 0.5714 GB, free: 45.51 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1388/0.4387, allocations: 138.4 MB / 0.7066 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.006115/0.4449, allocations: 6.48 MB / 0.713 GB, free: 8.992 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004481/0.4453, allocations: 7.938 kB / 0.713 GB, free: 8.984 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0007127/0.4461, allocations: 246.7 kB / 0.7132 GB, free: 8.742 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.4476, allocations: 0.6179 MB / 0.7138 GB, free: 8.121 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.4487, allocations: 438.5 kB / 0.7142 GB, free: 7.691 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001194/0.4499, allocations: 1.249 MB / 0.7154 GB, free: 6.438 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002409/0.4502, allocations: 129.5 kB / 0.7156 GB, free: 6.309 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008671/0.451, allocations: 442.1 kB / 0.716 GB, free: 5.875 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005474/0.4516, allocations: 462.3 kB / 0.7164 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 5.91e-05/0.4517, allocations: 20 kB / 0.7164 GB, free: 5.402 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.4534, allocations: 0.8809 MB / 0.7173 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.4535, allocations: 87.55 kB / 0.7174 GB, free: 4.434 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.4538, allocations: 288.3 kB / 0.7177 GB, free: 4.145 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001298/0.4551, allocations: 0.9249 MB / 0.7186 GB, free: 3.219 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.4551, allocations: 0 / 0.7186 GB, free: 3.219 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4551, allocations: 0 / 0.7186 GB, free: 3.219 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.4551, allocations: 0 / 0.7186 GB, free: 3.219 MB / 0.5105 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.001371/0.4565, allocations: 0.7989 MB / 0.7193 GB, free: 2.371 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.4565, allocations: 11.98 kB / 0.7194 GB, free: 2.359 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.178e-05/0.4566, allocations: 60.28 kB / 0.7194 GB, free: 2.301 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004382/0.4571, allocations: 375.7 kB / 0.7198 GB, free: 1.895 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.4571, allocations: 29.38 kB / 0.7198 GB, free: 1.867 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.168e-05/0.4572, allocations: 52.28 kB / 0.7199 GB, free: 1.816 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000737/0.458, allocations: 458.5 kB / 0.7203 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.458, allocations: 4 kB / 0.7203 GB, free: 1.359 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.458, allocations: 16 kB / 0.7203 GB, free: 1.344 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.458, allocations: 12 kB / 0.7203 GB, free: 1.332 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007559/0.4588, allocations: 495.7 kB / 0.7208 GB, free: 0.8477 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.4613, allocations: 2.17 MB / 0.7229 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008787/0.4621, allocations: 0.5443 MB / 0.7234 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004008/0.4626, allocations: 270.5 kB / 0.7237 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009258/0.4635, allocations: 0.6006 MB / 0.7243 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.4635, allocations: 35.12 kB / 0.7243 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=59): time 2.554e-06/0.4636, allocations: 0 / 0.7243 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=59): time 0.0018/0.4654, allocations: 0.9942 MB / 0.7253 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.4654, allocations: 59.97 kB / 0.7254 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003324/0.4658, allocations: 321.7 kB / 0.7257 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.4658, allocations: 33.7 kB / 0.7257 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.4659, allocations: 200.9 kB / 0.7259 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.4661, allocations: 212.9 kB / 0.7261 GB, free: 10.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/0.4661, allocations: 8 kB / 0.7261 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001282/0.4663, allocations: 354.8 kB / 0.7264 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003277/0.4666, allocations: 193 kB / 0.7266 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.4669, allocations: 201 kB / 0.7268 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007122/0.4676, allocations: 452 kB / 0.7272 GB, free: 9.777 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4677, allocations: 3.938 kB / 0.7272 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001007/0.4687, allocations: 0.5978 MB / 0.7278 GB, free: 9.164 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.4687, allocations: 4 kB / 0.7278 GB, free: 9.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4687, allocations: 7.922 kB / 0.7278 GB, free: 9.152 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000272/0.469, allocations: 61.67 kB / 0.7279 GB, free: 9.086 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.4693, allocations: 91.89 kB / 0.728 GB, free: 8.996 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002041/0.4714, allocations: 2.71 MB / 0.7306 GB, free: 6.012 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.4716, allocations: 35.62 kB / 0.7307 GB, free: 5.977 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.712e-05/0.4717, allocations: 28.05 kB / 0.7307 GB, free: 5.949 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002058/0.4719, allocations: 165.7 kB / 0.7308 GB, free: 5.777 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.474e-05/0.472, allocations: 39.53 kB / 0.7309 GB, free: 5.738 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.4735, allocations: 0.7751 MB / 0.7316 GB, free: 4.953 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.4735, allocations: 15.94 kB / 0.7317 GB, free: 4.938 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.4735, allocations: 0 / 0.7317 GB, free: 4.938 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.4735, allocations: 8.172 kB / 0.7317 GB, free: 4.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.4758, allocations: 1.462 MB / 0.7331 GB, free: 3.398 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.4758, allocations: 0 / 0.7331 GB, free: 3.398 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.4762, allocations: 91.89 kB / 0.7332 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/0.4764, allocations: 73.66 kB / 0.7333 GB, free: 3.23 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.395e-05/0.4765, allocations: 19.98 kB / 0.7333 GB, free: 3.211 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/0.4784, allocations: 2.717 MB / 0.7359 GB, free: 228 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.4785, allocations: 4.031 kB / 0.7359 GB, free: 224 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001647/0.4801, allocations: 1.05 MB / 0.737 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.4803, allocations: 132.4 kB / 0.7371 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.041e-05/0.4803, allocations: 12 kB / 0.7371 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002525/0.4806, allocations: 23.84 kB / 0.7371 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.4807, allocations: 48.44 kB / 0.7372 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.4808, allocations: 23.98 kB / 0.7372 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002382/0.481, allocations: 235.2 kB / 0.7374 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.61e-07/0.481, allocations: 0 / 0.7374 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006261/0.4817, allocations: 211.8 kB / 0.7376 GB, free: 14.45 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0004378/0.4821, allocations: 306.8 kB / 0.7379 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001297/0.4834, allocations: 0.8022 MB / 0.7387 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4834, allocations: 0 / 0.7387 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007504/0.4842, allocations: 0.6093 MB / 0.7393 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/0.4851, allocations: 155.9 kB / 0.7394 GB, free: 12.51 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.4868, allocations: 1.299 MB / 0.7407 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.4872, allocations: 0.8518 MB / 0.7415 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0003506/0.4876, allocations: 108 kB / 0.7416 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.4877, allocations: 59.42 kB / 0.7417 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of SimCode: time 1.974e-06/0.4877, allocations: 0 / 0.7417 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of Templates: time 0.01787/0.5056, allocations: 10.88 MB / 0.7523 GB, free: 15.3 MB / 0.5573 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 -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