Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00217/0.00217, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002826/0.002826, allocations: 173.2 kB / 22.76 MB, free: 1.664 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.588/1.588, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 1.066/1.066, allocations: 118.6 MB / 378.2 MB, free: 1.473 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 482.9 MB, free: 8.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.508e-05, allocations: 2.312 kB / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.2103/0.2103, allocations: 143.5 MB / 0.6117 GB, free: 1.082 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.007336/0.2177, allocations: 4.869 MB / 0.6164 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004319/0.2181, allocations: 39.62 kB / 0.6165 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0008736/0.219, allocations: 285.9 kB / 0.6168 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.001896/0.2209, allocations: 0.7451 MB / 0.6175 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.2221, allocations: 0.5253 MB / 0.618 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.00133/0.2235, allocations: 1.111 MB / 0.6191 GB, free: 9.484 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002594/0.2237, allocations: 98.61 kB / 0.6192 GB, free: 9.379 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.2251, allocations: 0.7163 MB / 0.6199 GB, free: 8.66 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000729/0.2258, allocations: 430.9 kB / 0.6203 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 8.23e-05/0.2259, allocations: 44 kB / 0.6203 GB, free: 8.195 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001406/0.2273, allocations: 0.6548 MB / 0.621 GB, free: 7.539 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.2275, allocations: 131.4 kB / 0.6211 GB, free: 7.41 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0003027/0.2278, allocations: 223.4 kB / 0.6213 GB, free: 7.191 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001527/0.2293, allocations: 0.9928 MB / 0.6223 GB, free: 6.195 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2293, allocations: 3.984 kB / 0.6223 GB, free: 6.191 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.382e-06/0.2293, allocations: 0 / 0.6223 GB, free: 6.191 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.2293, allocations: 3.938 kB / 0.6223 GB, free: 6.188 MB / 0.5417 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.001864/0.2312, allocations: 1.067 MB / 0.6233 GB, free: 5.082 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.2312, allocations: 8.031 kB / 0.6233 GB, free: 5.074 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005789/0.2318, allocations: 160.2 kB / 0.6235 GB, free: 4.918 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.2329, allocations: 0.5235 MB / 0.624 GB, free: 4.363 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.684e-05/0.2329, allocations: 33.38 kB / 0.624 GB, free: 4.332 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.116e-05/0.233, allocations: 52.31 kB / 0.6241 GB, free: 4.281 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008694/0.2339, allocations: 475.4 kB / 0.6245 GB, free: 3.793 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.2339, allocations: 4.125 kB / 0.6245 GB, free: 3.789 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.866e-05/0.2339, allocations: 20.12 kB / 0.6246 GB, free: 3.77 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.234, allocations: 12 kB / 0.6246 GB, free: 3.758 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007189/0.2347, allocations: 347.8 kB / 0.6249 GB, free: 3.418 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002799/0.2375, allocations: 1.788 MB / 0.6266 GB, free: 1.574 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008424/0.2383, allocations: 345.2 kB / 0.627 GB, free: 1.227 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003774/0.2387, allocations: 189.1 kB / 0.6272 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002219/0.2409, allocations: 0.9247 MB / 0.6281 GB, free: 92 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.2409, allocations: 33.89 kB / 0.6281 GB, free: 48 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=47): time 1.793e-06/0.2409, allocations: 0 / 0.6281 GB, free: 48 kB / 0.5417 GB Notification: Performance of matching and sorting (n=47): time 0.00176/0.2427, allocations: 0.6522 MB / 0.6287 GB, free: 15.38 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.2428, allocations: 59.91 kB / 0.6288 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006801/0.2434, allocations: 0.5378 MB / 0.6293 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.278e-05/0.2435, allocations: 33.7 kB / 0.6293 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003069/0.2438, allocations: 355.3 kB / 0.6297 GB, free: 14.37 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.244, allocations: 182.5 kB / 0.6298 GB, free: 14.19 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.2441, allocations: 99.84 kB / 0.6299 GB, free: 14.08 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003585/0.2445, allocations: 0.5586 MB / 0.6305 GB, free: 13.51 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002732/0.2448, allocations: 121 kB / 0.6306 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00037/0.2451, allocations: 203.8 kB / 0.6308 GB, free: 13.18 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008242/0.246, allocations: 356.3 kB / 0.6311 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.246, allocations: 4 kB / 0.6311 GB, free: 12.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001065/0.247, allocations: 0.5121 MB / 0.6316 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.2471, allocations: 4 kB / 0.6316 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.2471, allocations: 4 kB / 0.6317 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003956/0.2475, allocations: 75.44 kB / 0.6317 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000355/0.2478, allocations: 87.84 kB / 0.6318 GB, free: 12.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003356/0.2512, allocations: 3.727 MB / 0.6354 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.2514, allocations: 35.78 kB / 0.6355 GB, free: 8.082 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-05/0.2515, allocations: 19.98 kB / 0.6355 GB, free: 8.062 MB / 0.5573 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.0002846/0.2518, allocations: 216.5 kB / 0.6357 GB, free: 7.84 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.2519, allocations: 75.62 kB / 0.6358 GB, free: 7.766 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.2534, allocations: 0.7533 MB / 0.6365 GB, free: 6.996 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.2535, allocations: 4 kB / 0.6365 GB, free: 6.992 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.2535, allocations: 0 / 0.6365 GB, free: 6.992 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.2535, allocations: 3.984 kB / 0.6365 GB, free: 6.988 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.2555, allocations: 1.135 MB / 0.6376 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.2555, allocations: 12.05 kB / 0.6376 GB, free: 5.773 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.2558, allocations: 67.91 kB / 0.6377 GB, free: 5.707 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004305/0.2563, allocations: 79.23 kB / 0.6378 GB, free: 5.621 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.2563, allocations: 16 kB / 0.6378 GB, free: 5.605 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003243/0.2595, allocations: 3.723 MB / 0.6414 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2595, allocations: 0 / 0.6414 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.261, allocations: 0.8027 MB / 0.6422 GB, free: 0.7891 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.2612, allocations: 99.44 kB / 0.6423 GB, free: 0.6914 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.204e-05/0.2613, allocations: 12 kB / 0.6423 GB, free: 0.6797 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/0.2615, allocations: 8 kB / 0.6423 GB, free: 0.6719 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-05/0.2616, allocations: 39.88 kB / 0.6424 GB, free: 0.6328 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.2616, allocations: 19.98 kB / 0.6424 GB, free: 0.6133 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004599/0.2621, allocations: 378.8 kB / 0.6427 GB, free: 252 kB / 0.5573 GB Notification: Performance of sort global known variables: time 7.1e-08/0.2621, allocations: 0 / 0.6427 GB, free: 252 kB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0006794/0.2628, allocations: 203.6 kB / 0.6429 GB, free: 48 kB / 0.5573 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 (39): * Single equations (assignments): 37 * 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.2232/0.486, allocations: 254.8 kB / 0.6432 GB, free: 170.1 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00165/0.4876, allocations: 0.6939 MB / 0.6439 GB, free: 169.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4876, allocations: 0.7812 kB / 0.6439 GB, free: 169.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00083/0.4885, allocations: 0.5367 MB / 0.6444 GB, free: 169.4 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001946/0.4904, allocations: 232.9 kB / 0.6446 GB, free: 169.4 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/0.4935, allocations: 1.134 MB / 0.6457 GB, free: 168.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.4939, allocations: 276.4 kB / 0.646 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0005527/0.4945, allocations: 104.9 kB / 0.6461 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002162/0.4947, allocations: 59.52 kB / 0.6461 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.332e-06/0.4947, allocations: 3.75 kB / 0.6461 GB, free: 168.8 MB / 0.5573 GB Notification: Performance of Templates: time 0.02682/0.5215, allocations: 11.23 MB / 0.6571 GB, free: 167.3 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.73856689594686]