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.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.0009346/0.0009346, allocations: 81.64 kB / 19.87 MB, free: 4.613 MB / 18.57 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.0009343/0.0009343, allocations: 173 kB / 23.28 MB, free: 1.215 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 0.875/0.875, allocations: 177.1 MB / 203.7 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6839/0.6839, allocations: 118.6 MB / 378.9 MB, free: 1.371 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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_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_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 484.1 MB, free: 8.062 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.31e-05/2.469e-05, allocations: 3.844 kB / 484.1 MB, free: 8.059 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1188/0.1188, allocations: 129 MB / 0.5987 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0024/0.1212, allocations: 1.87 MB / 0.6005 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.1216, allocations: 47.62 kB / 0.6006 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004539/0.122, allocations: 166.6 kB / 0.6007 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0008202/0.1228, allocations: 0.5431 MB / 0.6013 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.1233, allocations: 275.2 kB / 0.6015 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0008463/0.1241, allocations: 1.111 MB / 0.6026 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.1243, allocations: 98.62 kB / 0.6027 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007218/0.1251, allocations: 0.6115 MB / 0.6033 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003851/0.1254, allocations: 426.9 kB / 0.6037 GB, free: 9.828 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.1255, allocations: 44 kB / 0.6038 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003438/0.1258, allocations: 223.6 kB / 0.604 GB, free: 9.566 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 8.928e-05/0.1259, allocations: 127.3 kB / 0.6041 GB, free: 9.441 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.1261, allocations: 223.5 kB / 0.6043 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.000585/0.1267, allocations: 0.6343 MB / 0.6049 GB, free: 8.586 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1267, allocations: 0 / 0.6049 GB, free: 8.586 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1267, allocations: 0 / 0.6049 GB, free: 8.586 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.1267, allocations: 0 / 0.6049 GB, free: 8.586 MB / 0.5261 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.0009271/0.1276, allocations: 1.025 MB / 0.6059 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1276, allocations: 12.02 kB / 0.6059 GB, free: 7.512 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.1279, allocations: 152.3 kB / 0.6061 GB, free: 7.363 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/0.1284, allocations: 0.5157 MB / 0.6066 GB, free: 6.824 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.1284, allocations: 29.38 kB / 0.6066 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/0.1285, allocations: 44.38 kB / 0.6066 GB, free: 6.75 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005038/0.129, allocations: 368 kB / 0.607 GB, free: 6.363 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.129, allocations: 4.125 kB / 0.607 GB, free: 6.359 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.129, allocations: 28.06 kB / 0.607 GB, free: 6.332 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.129, allocations: 12 kB / 0.607 GB, free: 6.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.1292, allocations: 186.8 kB / 0.6072 GB, free: 6.137 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.1305, allocations: 1.571 MB / 0.6088 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.1309, allocations: 249.1 kB / 0.609 GB, free: 4.258 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.131, allocations: 103.2 kB / 0.6091 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00102/0.132, allocations: 0.8703 MB / 0.6099 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.132, allocations: 37.89 kB / 0.61 GB, free: 3.238 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=47): time 2.234e-06/0.132, allocations: 0 / 0.61 GB, free: 3.238 MB / 0.5261 GB Notification: Performance of matching and sorting (n=47): time 0.0006621/0.1327, allocations: 467.9 kB / 0.6104 GB, free: 2.77 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.745e-05/0.1327, allocations: 59.84 kB / 0.6105 GB, free: 2.699 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.133, allocations: 454.5 kB / 0.6109 GB, free: 2.238 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.133, allocations: 33.7 kB / 0.6109 GB, free: 2.199 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1331, allocations: 343.3 kB / 0.6113 GB, free: 1.855 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.1332, allocations: 170.5 kB / 0.6114 GB, free: 1.688 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.742e-05/0.1333, allocations: 87.77 kB / 0.6115 GB, free: 1.59 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1335, allocations: 0.5429 MB / 0.612 GB, free: 1.035 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.024e-05/0.1335, allocations: 56.95 kB / 0.6121 GB, free: 0.9805 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.1336, allocations: 123.8 kB / 0.6122 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002096/0.1338, allocations: 224.2 kB / 0.6124 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1338, allocations: 0 / 0.6124 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003953/0.1342, allocations: 372.5 kB / 0.6128 GB, free: 228 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1343, allocations: 8.031 kB / 0.6128 GB, free: 220 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1343, allocations: 3.938 kB / 0.6128 GB, free: 216 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001901/0.1344, allocations: 67.31 kB / 0.6129 GB, free: 140 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.1346, allocations: 83.84 kB / 0.6129 GB, free: 56 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001561/0.1362, allocations: 3.509 MB / 0.6164 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.1363, allocations: 39.72 kB / 0.6164 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.1363, allocations: 12 kB / 0.6164 GB, free: 12.27 MB / 0.5417 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.0001229/0.1365, allocations: 180.6 kB / 0.6166 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.044e-05/0.1365, allocations: 79.56 kB / 0.6167 GB, free: 12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005958/0.1371, allocations: 0.5819 MB / 0.6172 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1371, allocations: 4 kB / 0.6172 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1371, allocations: 7.938 kB / 0.6173 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.1371, allocations: 4.125 kB / 0.6173 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008112/0.1379, allocations: 0.8545 MB / 0.6181 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1379, allocations: 0 / 0.6181 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.1381, allocations: 67.91 kB / 0.6182 GB, free: 10.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001521/0.1382, allocations: 71.42 kB / 0.6182 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.1382, allocations: 16 kB / 0.6182 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.1397, allocations: 3.509 MB / 0.6217 GB, free: 6.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1397, allocations: 4.062 kB / 0.6217 GB, free: 6.566 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005084/0.1402, allocations: 0.5838 MB / 0.6222 GB, free: 5.938 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.1403, allocations: 103.4 kB / 0.6223 GB, free: 5.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.1403, allocations: 15.94 kB / 0.6224 GB, free: 5.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.1404, allocations: 4 kB / 0.6224 GB, free: 5.816 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.231e-05/0.1405, allocations: 39.94 kB / 0.6224 GB, free: 5.777 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.1405, allocations: 15.98 kB / 0.6224 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001553/0.1407, allocations: 306.7 kB / 0.6227 GB, free: 5.465 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6e-08/0.1407, allocations: 0 / 0.6227 GB, free: 5.465 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003876/0.141, allocations: 179.7 kB / 0.6229 GB, free: 5.289 MB / 0.5417 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.0001876/0.1412, allocations: 135.2 kB / 0.623 GB, free: 5.145 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004636/0.1417, allocations: 0.5709 MB / 0.6236 GB, free: 4.535 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1417, allocations: 4 kB / 0.6236 GB, free: 4.531 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.142, allocations: 491 kB / 0.624 GB, free: 4.012 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/0.1426, allocations: 231.4 kB / 0.6243 GB, free: 3.797 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.1441, allocations: 1.086 MB / 0.6253 GB, free: 2.66 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.822e-05/0.1441, allocations: 126 kB / 0.6254 GB, free: 2.512 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002102/0.1444, allocations: 104.1 kB / 0.6255 GB, free: 2.418 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003078/0.1447, allocations: 242.1 kB / 0.6258 GB, free: 2.18 MB / 0.5417 GB Notification: Performance of SimCode: time 9.42e-07/0.1447, allocations: 0 / 0.6258 GB, free: 2.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.01263/0.1573, allocations: 10.43 MB / 0.636 GB, free: 7.988 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.053680481389165]