Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.001306/0.001306, allocations: 85.17 kB / 19.87 MB, free: 4.617 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.002507/0.002507, allocations: 169 kB / 23.27 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.941/0.941, allocations: 177.1 MB / 203.7 MB, free: 5.516 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.6463/0.6463, allocations: 118.6 MB / 378.9 MB, free: 1.367 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.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 1.344 kB / 484 MB, free: 8.109 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.856e-05/2.082e-05, allocations: 6.031 kB / 484.1 MB, free: 8.105 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1344/0.1344, allocations: 126.6 MB / 0.5964 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0008073/0.1352, allocations: 0.728 MB / 0.5971 GB, free: 0.6367 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.1354, allocations: 19.81 kB / 0.5971 GB, free: 0.6172 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0003516/0.1357, allocations: 75.42 kB / 0.5972 GB, free: 0.543 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.136, allocations: 158.9 kB / 0.5973 GB, free: 396 kB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.1362, allocations: 111.5 kB / 0.5974 GB, free: 284 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0003094/0.1365, allocations: 366.4 kB / 0.5978 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1367, allocations: 49.09 kB / 0.5978 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003802/0.137, allocations: 251.2 kB / 0.5981 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.1372, allocations: 107.7 kB / 0.5982 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.1372, allocations: 12 kB / 0.5982 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.1373, allocations: 107.7 kB / 0.5983 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 5.142e-05/0.1374, allocations: 43.77 kB / 0.5983 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 5.487e-05/0.1375, allocations: 67.78 kB / 0.5984 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.1378, allocations: 251 kB / 0.5986 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1378, allocations: 4 kB / 0.5986 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.072e-06/0.1378, allocations: 0 / 0.5986 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.1378, allocations: 0 / 0.5986 GB, free: 15.04 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006358/0.1384, allocations: 0.6254 MB / 0.5992 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.1384, allocations: 8.031 kB / 0.5993 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.245e-05/0.1385, allocations: 44.75 kB / 0.5993 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002733/0.1388, allocations: 283.2 kB / 0.5996 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.1388, allocations: 12.38 kB / 0.5996 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.1388, allocations: 16.33 kB / 0.5996 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001933/0.139, allocations: 166 kB / 0.5998 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.139, allocations: 3.938 kB / 0.5998 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.139, allocations: 4 kB / 0.5998 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.139, allocations: 7.938 kB / 0.5998 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.25e-05/0.1391, allocations: 35.91 kB / 0.5998 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009272/0.14, allocations: 0.8858 MB / 0.6007 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001113/0.1401, allocations: 50.98 kB / 0.6007 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.542e-05/0.1401, allocations: 27.8 kB / 0.6007 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 5.74e-05/0.1402, allocations: 7.984 kB / 0.6008 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001284/0.1403, allocations: 77.02 kB / 0.6008 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.1403, allocations: 0 / 0.6008 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0001613/0.1405, allocations: 101.4 kB / 0.6009 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.1405, allocations: 51.41 kB / 0.601 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.1407, allocations: 322.1 kB / 0.6013 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.1407, allocations: 25.7 kB / 0.6013 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.222e-05/0.1408, allocations: 226.4 kB / 0.6015 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.1408, allocations: 31.78 kB / 0.6015 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.355e-05/0.1408, allocations: 39.36 kB / 0.6016 GB, free: 11.78 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.141, allocations: 0.5117 MB / 0.6021 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.549e-05/0.141, allocations: 41.69 kB / 0.6021 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.59e-05/0.1411, allocations: 95.72 kB / 0.6022 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.422e-05/0.1412, allocations: 119.7 kB / 0.6023 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1412, allocations: 0 / 0.6023 GB, free: 10.94 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001774/0.1414, allocations: 200.7 kB / 0.6025 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.1414, allocations: 33.7 kB / 0.6026 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1414, allocations: 0 / 0.6026 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.1414, allocations: 4 kB / 0.6026 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.1415, allocations: 27.98 kB / 0.6026 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1415, allocations: 3.938 kB / 0.6026 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.944e-05/0.1416, allocations: 31.81 kB / 0.6026 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.1416, allocations: 8.156 kB / 0.6026 GB, free: 10.61 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.1417, allocations: 160.6 kB / 0.6028 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.775e-05/0.1417, allocations: 27.84 kB / 0.6028 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001765/0.1419, allocations: 100.2 kB / 0.6029 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.1419, allocations: 4 kB / 0.6029 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.545e-06/0.1419, allocations: 0 / 0.6029 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1419, allocations: 0 / 0.6029 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.1421, allocations: 157.1 kB / 0.6031 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1421, allocations: 0 / 0.6031 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.1e-05/0.1421, allocations: 15.98 kB / 0.6031 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1421, allocations: 4 kB / 0.6031 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.1421, allocations: 0 / 0.6031 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.1422, allocations: 4 kB / 0.6031 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1422, allocations: 0 / 0.6031 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001799/0.1423, allocations: 132.2 kB / 0.6032 GB, free: 9.953 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.1424, allocations: 35.73 kB / 0.6032 GB, free: 9.918 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.1424, allocations: 4 kB / 0.6032 GB, free: 9.914 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.15e-05/0.1425, allocations: 11.98 kB / 0.6033 GB, free: 9.902 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.1425, allocations: 7.984 kB / 0.6033 GB, free: 9.895 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1425, allocations: 0 / 0.6033 GB, free: 9.895 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 9.932e-05/0.1426, allocations: 222.9 kB / 0.6035 GB, free: 9.676 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5e-08/0.1426, allocations: 0 / 0.6035 GB, free: 9.676 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001668/0.1428, allocations: 47.89 kB / 0.6035 GB, free: 9.629 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * 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 (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001712/0.1429, allocations: 103.2 kB / 0.6036 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001625/0.1431, allocations: 147.6 kB / 0.6038 GB, free: 9.352 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1431, allocations: 0 / 0.6038 GB, free: 9.352 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.801e-05/0.1431, allocations: 31.92 kB / 0.6038 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.1434, allocations: 76.67 kB / 0.6039 GB, free: 9.246 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008802/0.1443, allocations: 454.9 kB / 0.6043 GB, free: 8.781 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.94e-05/0.1444, allocations: 76.33 kB / 0.6044 GB, free: 8.688 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.72e-05/0.1444, allocations: 25.94 kB / 0.6044 GB, free: 8.66 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.1445, allocations: 122.2 kB / 0.6045 GB, free: 8.539 MB / 0.5261 GB Notification: Performance of SimCode: time 6.41e-07/0.1445, allocations: 0 / 0.6045 GB, free: 8.539 MB / 0.5261 GB Notification: Performance of Templates: time 0.004926/0.1495, allocations: 2.843 MB / 0.6073 GB, free: 5.789 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_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.548083678819239]