Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.0009139/0.0009139, allocations: 82.05 kB / 19.87 MB, free: 4.621 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.0009471/0.0009471, allocations: 169.7 kB / 23.28 MB, free: 1.223 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.9372/0.9372, allocations: 177.1 MB / 203.7 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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 0.6602/0.6602, allocations: 118.6 MB / 378.9 MB, free: 1.355 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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 484.1 MB, free: 8.137 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.944e-05, allocations: 5.266 kB / 484.1 MB, free: 8.133 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1113/0.1114, allocations: 133.4 MB / 0.603 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.004627/0.116, allocations: 3.643 MB / 0.6066 GB, free: 6.863 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005673/0.1165, allocations: 71.38 kB / 0.6066 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0006158/0.1172, allocations: 353.1 kB / 0.607 GB, free: 6.445 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001529/0.1187, allocations: 1.242 MB / 0.6082 GB, free: 5.195 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.1198, allocations: 0.7169 MB / 0.6089 GB, free: 4.477 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001871/0.1217, allocations: 2.788 MB / 0.6116 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005941/0.1222, allocations: 298.3 kB / 0.6119 GB, free: 1.355 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.1236, allocations: 1.438 MB / 0.6133 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.1246, allocations: 1.274 MB / 0.6146 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.1247, allocations: 144 kB / 0.6147 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006837/0.1254, allocations: 499.4 kB / 0.6152 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002123/0.1256, allocations: 386.5 kB / 0.6155 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0004084/0.126, allocations: 0.6002 MB / 0.6161 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001289/0.1273, allocations: 1.658 MB / 0.6177 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1273, allocations: 7.938 kB / 0.6177 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1273, allocations: 0 / 0.6177 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.108e-06/0.1273, allocations: 0 / 0.6177 GB, free: 11.36 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: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002098/0.1294, allocations: 2.029 MB / 0.6197 GB, free: 9.277 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.1295, allocations: 12.03 kB / 0.6197 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002964/0.1297, allocations: 315.5 kB / 0.62 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008927/0.1306, allocations: 0.9601 MB / 0.621 GB, free: 7.957 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.79e-05/0.1307, allocations: 90.78 kB / 0.6211 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.1308, allocations: 120.4 kB / 0.6212 GB, free: 7.75 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008738/0.1317, allocations: 0.9198 MB / 0.6221 GB, free: 6.781 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1317, allocations: 7.938 kB / 0.6221 GB, free: 6.773 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.824e-05/0.1317, allocations: 52 kB / 0.6221 GB, free: 6.723 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.663e-05/0.1318, allocations: 28 kB / 0.6222 GB, free: 6.695 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006118/0.1324, allocations: 0.543 MB / 0.6227 GB, free: 6.141 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.1356, allocations: 3.207 MB / 0.6258 GB, free: 2.879 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008203/0.1365, allocations: 0.7821 MB / 0.6266 GB, free: 2.086 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.1367, allocations: 299.4 kB / 0.6269 GB, free: 1.793 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001921/0.1387, allocations: 1.799 MB / 0.6286 GB, free: 24 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004725/0.1391, allocations: 438.8 kB / 0.629 GB, free: 15.58 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 2.865e-06/0.1391, allocations: 0 / 0.629 GB, free: 15.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.002608/0.1417, allocations: 2.083 MB / 0.6311 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.1418, allocations: 68.66 kB / 0.6311 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004074/0.1422, allocations: 0.6864 MB / 0.6318 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.1422, allocations: 45.7 kB / 0.6319 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.1425, allocations: 0.6015 MB / 0.6325 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004639/0.143, allocations: 471.9 kB / 0.6329 GB, free: 11.55 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002078/0.1432, allocations: 224.5 kB / 0.6331 GB, free: 11.32 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.1433, allocations: 0.5198 MB / 0.6336 GB, free: 10.79 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.1435, allocations: 216.2 kB / 0.6338 GB, free: 10.58 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.1438, allocations: 361.6 kB / 0.6342 GB, free: 10.19 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.1444, allocations: 0.6302 MB / 0.6348 GB, free: 9.527 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1444, allocations: 4 kB / 0.6348 GB, free: 9.523 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001091/0.1455, allocations: 1.022 MB / 0.6358 GB, free: 8.477 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.1456, allocations: 37.89 kB / 0.6358 GB, free: 8.434 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1456, allocations: 4 kB / 0.6358 GB, free: 8.43 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002873/0.1459, allocations: 127.5 kB / 0.636 GB, free: 8.301 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004467/0.1463, allocations: 235.7 kB / 0.6362 GB, free: 8.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001837/0.1481, allocations: 2.595 MB / 0.6387 GB, free: 5.363 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002398/0.1484, allocations: 31.98 kB / 0.6387 GB, free: 5.332 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/0.1484, allocations: 43.98 kB / 0.6388 GB, free: 5.289 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002152/0.1487, allocations: 212.4 kB / 0.639 GB, free: 5.07 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002099/0.1489, allocations: 194.9 kB / 0.6392 GB, free: 4.879 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.1508, allocations: 1.641 MB / 0.6408 GB, free: 3.199 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.1508, allocations: 20.03 kB / 0.6408 GB, free: 3.18 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1508, allocations: 3.938 kB / 0.6408 GB, free: 3.176 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.1508, allocations: 7.969 kB / 0.6408 GB, free: 3.168 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.1529, allocations: 2.048 MB / 0.6428 GB, free: 1.062 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.153, allocations: 0 / 0.6428 GB, free: 1.062 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004306/0.1534, allocations: 231.7 kB / 0.643 GB, free: 0.8359 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002532/0.1536, allocations: 133.4 kB / 0.6432 GB, free: 0.7031 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/0.1537, allocations: 43.97 kB / 0.6432 GB, free: 0.6602 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2277/0.3814, allocations: 2.47 MB / 0.6456 GB, free: 51.43 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.3814, allocations: 2.031 kB / 0.6456 GB, free: 51.43 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.3836, allocations: 1.438 MB / 0.647 GB, free: 51.15 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003813/0.384, allocations: 254.4 kB / 0.6473 GB, free: 51.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.26e-05/0.3841, allocations: 30.39 kB / 0.6473 GB, free: 51.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002808/0.3844, allocations: 32.61 kB / 0.6473 GB, free: 51.15 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.3845, allocations: 110.7 kB / 0.6474 GB, free: 51.15 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.273e-05/0.3846, allocations: 43.56 kB / 0.6475 GB, free: 51.14 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003286/0.3849, allocations: 443.4 kB / 0.6479 GB, free: 50.99 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3849, allocations: 3.344 kB / 0.6479 GB, free: 50.99 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0009342/0.3859, allocations: 450.7 kB / 0.6483 GB, free: 50.99 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003574/0.3862, allocations: 264 kB / 0.6486 GB, free: 50.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001165/0.3874, allocations: 1.025 MB / 0.6496 GB, free: 50.59 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3874, allocations: 0.875 kB / 0.6496 GB, free: 50.59 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006723/0.3881, allocations: 0.6877 MB / 0.6502 GB, free: 50.39 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.3892, allocations: 0.5224 MB / 0.6508 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.392, allocations: 2.391 MB / 0.6531 GB, free: 49.36 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.3922, allocations: 269.2 kB / 0.6533 GB, free: 49.27 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0005869/0.3928, allocations: 290 kB / 0.6536 GB, free: 49.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00067/0.3934, allocations: 489.5 kB / 0.6541 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of SimCode: time 1.222e-06/0.3934, allocations: 0.7812 kB / 0.6541 GB, free: 49.13 MB / 0.5573 GB Notification: Performance of Templates: time 0.0298/0.4232, allocations: 26.81 MB / 0.6803 GB, free: 44.48 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_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.3405583798885345]