Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.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.001425/0.001425, allocations: 81.95 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.001118/0.001118, 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.9549/0.9549, 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.7248/0.7248, allocations: 118.6 MB / 378.9 MB, free: 1.344 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.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 3.938 kB / 484 MB, free: 8.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.052e-05/2.245e-05, allocations: 2.312 kB / 484 MB, free: 8.086 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1296/0.1296, allocations: 127.5 MB / 0.5972 GB, free: 0.5078 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.1317, allocations: 1.557 MB / 0.5987 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002861/0.132, allocations: 23.81 kB / 0.5987 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004261/0.1324, allocations: 91.2 kB / 0.5988 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0006498/0.1331, allocations: 329.7 kB / 0.5991 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005582/0.1336, allocations: 235.1 kB / 0.5994 GB, free: 14.28 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0006627/0.1343, allocations: 0.5985 MB / 0.5999 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.1344, allocations: 57.97 kB / 0.6 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007135/0.1352, allocations: 382.8 kB / 0.6004 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002735/0.1354, allocations: 207.4 kB / 0.6006 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/0.1355, allocations: 24 kB / 0.6006 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000397/0.1359, allocations: 235.5 kB / 0.6008 GB, free: 12.79 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.136, allocations: 67.62 kB / 0.6009 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.1361, allocations: 127.6 kB / 0.601 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0005991/0.1367, allocations: 454.4 kB / 0.6014 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1367, allocations: 0 / 0.6014 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1367, allocations: 0 / 0.6014 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.1367, allocations: 4 kB / 0.6014 GB, free: 12.14 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.000975/0.1376, allocations: 0.8127 MB / 0.6022 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.1377, allocations: 12.03 kB / 0.6022 GB, free: 11.28 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.1378, allocations: 72.55 kB / 0.6023 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.1382, allocations: 378 kB / 0.6027 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/0.1382, allocations: 16.86 kB / 0.6027 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.1383, allocations: 24.38 kB / 0.6027 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.1385, allocations: 196.6 kB / 0.6029 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.1385, allocations: 192 / 0.6029 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.1386, allocations: 15.94 kB / 0.6029 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.1386, allocations: 8 kB / 0.6029 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.1387, allocations: 87.34 kB / 0.603 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009698/0.1396, allocations: 0.8708 MB / 0.6039 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.1398, allocations: 151 kB / 0.604 GB, free: 9.379 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.731e-05/0.1399, allocations: 63.58 kB / 0.6041 GB, free: 9.312 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000462/0.1404, allocations: 0.5111 MB / 0.6046 GB, free: 8.785 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001416/0.1405, allocations: 107.2 kB / 0.6047 GB, free: 8.668 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.1405, allocations: 0 / 0.6047 GB, free: 8.668 MB / 0.5261 GB Notification: Performance of matching and sorting (n=23): time 0.000484/0.141, allocations: 285.9 kB / 0.6049 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.141, allocations: 59.41 kB / 0.605 GB, free: 8.309 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.1412, allocations: 386.5 kB / 0.6054 GB, free: 7.914 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.1413, allocations: 29.7 kB / 0.6054 GB, free: 7.879 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.1414, allocations: 263 kB / 0.6056 GB, free: 7.617 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.1414, allocations: 87.23 kB / 0.6057 GB, free: 7.531 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.865e-05/0.1415, allocations: 55.3 kB / 0.6058 GB, free: 7.469 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1416, allocations: 0.5312 MB / 0.6063 GB, free: 6.926 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.913e-05/0.1417, allocations: 61.61 kB / 0.6063 GB, free: 6.859 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.587e-05/0.1417, allocations: 108.4 kB / 0.6065 GB, free: 6.73 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.1419, allocations: 155.9 kB / 0.6066 GB, free: 6.559 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1419, allocations: 0 / 0.6066 GB, free: 6.559 MB / 0.5261 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0002941/0.1422, allocations: 290.9 kB / 0.6069 GB, free: 6.254 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.1422, allocations: 40.52 kB / 0.6069 GB, free: 6.211 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1422, allocations: 0 / 0.6069 GB, free: 6.211 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.1424, allocations: 47.67 kB / 0.607 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.1425, allocations: 51.91 kB / 0.607 GB, free: 6.109 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008174/0.1433, allocations: 1.799 MB / 0.6088 GB, free: 4.191 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1434, allocations: 27.83 kB / 0.6088 GB, free: 4.164 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.1434, allocations: 8 kB / 0.6088 GB, free: 4.156 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 24 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.1435, allocations: 168.6 kB / 0.609 GB, free: 3.98 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.125e-05/0.1436, allocations: 55.64 kB / 0.609 GB, free: 3.926 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003038/0.1439, allocations: 246 kB / 0.6093 GB, free: 3.672 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1439, allocations: 4 kB / 0.6093 GB, free: 3.668 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1439, allocations: 0 / 0.6093 GB, free: 3.668 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1439, allocations: 3.938 kB / 0.6093 GB, free: 3.664 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.1444, allocations: 0.5761 MB / 0.6098 GB, free: 3.047 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1444, allocations: 0 / 0.6098 GB, free: 3.047 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.789e-05/0.1445, allocations: 35.98 kB / 0.6099 GB, free: 3.012 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001234/0.1446, allocations: 47.56 kB / 0.6099 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.1446, allocations: 8 kB / 0.6099 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008159/0.1454, allocations: 1.799 MB / 0.6117 GB, free: 1.043 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1454, allocations: 0 / 0.6117 GB, free: 1.043 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003398/0.1458, allocations: 425.5 kB / 0.6121 GB, free: 0.6016 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.608e-05/0.1458, allocations: 67.56 kB / 0.6121 GB, free: 0.5352 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.301e-05/0.1459, allocations: 8 kB / 0.6121 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.385e-05/0.146, allocations: 15.98 kB / 0.6122 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.146, allocations: 28.02 kB / 0.6122 GB, free: 496 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.146, allocations: 11.98 kB / 0.6122 GB, free: 484 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001172/0.1461, allocations: 251 kB / 0.6124 GB, free: 236 kB / 0.5261 GB Notification: Performance of sort global known variables: time 1e-07/0.1461, allocations: 0 / 0.6124 GB, free: 236 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002881/0.1464, allocations: 119.8 kB / 0.6126 GB, free: 116 kB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000216/0.1466, allocations: 171 kB / 0.6127 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003419/0.147, allocations: 390.1 kB / 0.6131 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.147, allocations: 0 / 0.6131 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.1471, allocations: 258.2 kB / 0.6133 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.1476, allocations: 155.2 kB / 0.6135 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1488, allocations: 0.7007 MB / 0.6142 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.313e-05/0.1489, allocations: 105.3 kB / 0.6143 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001279/0.149, allocations: 58.95 kB / 0.6143 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.1492, allocations: 186.1 kB / 0.6145 GB, free: 14 MB / 0.5417 GB Notification: Performance of SimCode: time 1.352e-06/0.1492, allocations: 0 / 0.6145 GB, free: 14 MB / 0.5417 GB Notification: Performance of Templates: time 0.009763/0.159, allocations: 7.403 MB / 0.6217 GB, free: 6.797 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_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: 3.9051778949797153]