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.0009547/0.0009547, allocations: 93.06 kB / 19.65 MB, free: 280 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.001005/0.001005, allocations: 173.3 kB / 23.03 MB, free: 1.543 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.922/0.922, allocations: 177.1 MB / 203.4 MB, free: 5.578 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.6546/0.6546, allocations: 118.6 MB / 378.6 MB, free: 1.496 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.733e-06/1.733e-06, allocations: 0 / 483.6 MB, free: 8.312 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.404e-05/1.577e-05, allocations: 6.312 kB / 483.6 MB, free: 8.305 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1299/0.1299, allocations: 136.4 MB / 0.6055 GB, free: 7.809 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.006102/0.136, allocations: 3.67 MB / 0.6091 GB, free: 4.129 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009269/0.1369, allocations: 75.38 kB / 0.6092 GB, free: 4.055 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0008424/0.1378, allocations: 353.1 kB / 0.6095 GB, free: 3.707 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002147/0.1399, allocations: 1.238 MB / 0.6107 GB, free: 2.461 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001433/0.1413, allocations: 0.7052 MB / 0.6114 GB, free: 1.754 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002805/0.1441, allocations: 2.804 MB / 0.6141 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004842/0.1446, allocations: 290.3 kB / 0.6144 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001812/0.1464, allocations: 1.43 MB / 0.6158 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001487/0.1479, allocations: 1.274 MB / 0.6171 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.1481, allocations: 140 kB / 0.6172 GB, free: 11.78 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008662/0.149, allocations: 0.4955 MB / 0.6177 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002866/0.1493, allocations: 386.5 kB / 0.6181 GB, free: 10.9 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0008495/0.1501, allocations: 0.608 MB / 0.6186 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.1519, allocations: 1.658 MB / 0.6203 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1519, allocations: 0 / 0.6203 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.253e-06/0.1519, allocations: 0 / 0.6203 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.454e-05/0.152, allocations: 0 / 0.6203 GB, free: 8.629 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.002771/0.1547, allocations: 2.049 MB / 0.6223 GB, free: 6.531 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1548, allocations: 8.031 kB / 0.6223 GB, free: 6.523 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004823/0.1552, allocations: 319.5 kB / 0.6226 GB, free: 6.211 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/0.1566, allocations: 0.9719 MB / 0.6235 GB, free: 5.199 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.56e-05/0.1566, allocations: 94.78 kB / 0.6236 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/0.1568, allocations: 116.4 kB / 0.6237 GB, free: 4.992 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.1584, allocations: 1.025 MB / 0.6247 GB, free: 3.918 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.1584, allocations: 3.938 kB / 0.6247 GB, free: 3.914 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.433e-05/0.1585, allocations: 47.98 kB / 0.6248 GB, free: 3.867 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.668e-05/0.1585, allocations: 32 kB / 0.6248 GB, free: 3.836 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.1601, allocations: 0.7203 MB / 0.6255 GB, free: 3.105 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004485/0.1646, allocations: 3.386 MB / 0.6288 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001375/0.1659, allocations: 0.8527 MB / 0.6297 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005686/0.1665, allocations: 355.5 kB / 0.63 GB, free: 14.44 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002576/0.1691, allocations: 1.766 MB / 0.6317 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007563/0.1698, allocations: 475 kB / 0.6322 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 3.317e-06/0.1698, allocations: 0 / 0.6322 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.004608/0.1744, allocations: 2.538 MB / 0.6346 GB, free: 9.602 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.1745, allocations: 72.59 kB / 0.6347 GB, free: 9.52 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006366/0.1751, allocations: 0.6986 MB / 0.6354 GB, free: 8.805 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.39e-05/0.1752, allocations: 45.7 kB / 0.6354 GB, free: 8.754 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003507/0.1755, allocations: 0.6017 MB / 0.636 GB, free: 8.145 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002955/0.1758, allocations: 460 kB / 0.6365 GB, free: 7.691 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.1761, allocations: 212.6 kB / 0.6367 GB, free: 7.473 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.1762, allocations: 0.5238 MB / 0.6372 GB, free: 6.941 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000364/0.1766, allocations: 276.2 kB / 0.6374 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004234/0.177, allocations: 413.8 kB / 0.6378 GB, free: 6.23 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008526/0.1779, allocations: 0.7319 MB / 0.6386 GB, free: 5.465 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1779, allocations: 0 / 0.6386 GB, free: 5.465 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001698/0.1796, allocations: 1.143 MB / 0.6397 GB, free: 4.297 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.1796, allocations: 37.7 kB / 0.6397 GB, free: 4.254 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1796, allocations: 0 / 0.6397 GB, free: 4.254 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003344/0.18, allocations: 134.8 kB / 0.6398 GB, free: 4.121 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004868/0.1804, allocations: 243.7 kB / 0.6401 GB, free: 3.883 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.1825, allocations: 2.649 MB / 0.6427 GB, free: 1.109 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.1827, allocations: 47.97 kB / 0.6427 GB, free: 1.062 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.043e-05/0.1828, allocations: 43.98 kB / 0.6427 GB, free: 1.02 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.0002337/0.183, allocations: 223.6 kB / 0.643 GB, free: 0.793 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.1832, allocations: 191 kB / 0.6431 GB, free: 0.6055 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2298/0.4131, allocations: 1.734 MB / 0.6448 GB, free: 50.77 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.4131, allocations: 13.22 kB / 0.6448 GB, free: 50.77 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4131, allocations: 3.547 kB / 0.6448 GB, free: 50.77 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.4131, allocations: 6.844 kB / 0.6449 GB, free: 50.77 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003128/0.4162, allocations: 2.313 MB / 0.6471 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.4162, allocations: 2.219 kB / 0.6471 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000524/0.4168, allocations: 240.1 kB / 0.6473 GB, free: 50.38 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003188/0.4171, allocations: 136.5 kB / 0.6475 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-05/0.4172, allocations: 41.83 kB / 0.6475 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.4185, allocations: 2.532 MB / 0.65 GB, free: 48.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4185, allocations: 6.125 kB / 0.65 GB, free: 48.42 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.4204, allocations: 1.617 MB / 0.6516 GB, free: 48.11 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002975/0.4207, allocations: 260.7 kB / 0.6518 GB, free: 48.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.705e-05/0.4208, allocations: 33.62 kB / 0.6519 GB, free: 48.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.4211, allocations: 42.45 kB / 0.6519 GB, free: 48.11 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.4212, allocations: 107.3 kB / 0.652 GB, free: 48.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.4213, allocations: 53.14 kB / 0.652 GB, free: 48.1 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003193/0.4216, allocations: 469.3 kB / 0.6525 GB, free: 47.95 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.4216, allocations: 2.25 kB / 0.6525 GB, free: 47.95 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.000775/0.4224, allocations: 453.5 kB / 0.6529 GB, free: 47.95 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.0003281/0.4227, allocations: 260 kB / 0.6532 GB, free: 47.86 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001211/0.4239, allocations: 1.135 MB / 0.6543 GB, free: 47.55 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4239, allocations: 1.062 kB / 0.6543 GB, free: 47.55 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006595/0.4246, allocations: 0.7352 MB / 0.655 GB, free: 47.35 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001187/0.4258, allocations: 0.5192 MB / 0.6555 GB, free: 47.33 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.4288, allocations: 2.412 MB / 0.6579 GB, free: 46.34 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001867/0.429, allocations: 270.9 kB / 0.6581 GB, free: 46.25 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006177/0.4296, allocations: 316.5 kB / 0.6584 GB, free: 46.17 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.4299, allocations: 147.1 kB / 0.6586 GB, free: 46.16 MB / 0.5573 GB Notification: Performance of SimCode: time 7.01e-07/0.4299, allocations: 1.062 kB / 0.6586 GB, free: 46.16 MB / 0.5573 GB Notification: Performance of Templates: time 0.0299/0.4598, allocations: 26.41 MB / 0.6844 GB, free: 40.81 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.454491489101201]