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.0009963/0.0009963, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.001654/0.001654, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.9348/0.9348, allocations: 177.1 MB / 204.5 MB, free: 5.488 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.6732/0.6732, allocations: 118.6 MB / 379.7 MB, free: 1.348 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.402e-06/1.402e-06, allocations: 0 / 484.8 MB, free: 8.113 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.434e-05/1.574e-05, allocations: 6.312 kB / 484.8 MB, free: 8.105 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1204/0.1205, allocations: 133.4 MB / 0.6038 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.004743/0.1252, allocations: 3.639 MB / 0.6074 GB, free: 6.863 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005535/0.1258, allocations: 71.38 kB / 0.6074 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0008818/0.1266, allocations: 353.1 kB / 0.6078 GB, free: 6.445 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001632/0.1283, allocations: 1.242 MB / 0.609 GB, free: 5.195 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.1294, allocations: 0.7091 MB / 0.6097 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00175/0.1311, allocations: 2.8 MB / 0.6124 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003406/0.1315, allocations: 286.3 kB / 0.6127 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.1326, allocations: 1.442 MB / 0.6141 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001284/0.1339, allocations: 1.27 MB / 0.6153 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.134, allocations: 144 kB / 0.6155 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005624/0.1346, allocations: 0.4915 MB / 0.6159 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.1348, allocations: 386.5 kB / 0.6163 GB, free: 13.63 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0004063/0.1352, allocations: 0.6041 MB / 0.6169 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.1364, allocations: 1.658 MB / 0.6185 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.1364, allocations: 0 / 0.6185 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of FrontEnd: time 8.31e-07/0.1364, allocations: 0 / 0.6185 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.678e-06/0.1364, allocations: 0 / 0.6185 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.001962/0.1384, allocations: 2.033 MB / 0.6205 GB, free: 9.281 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.1384, allocations: 12.03 kB / 0.6205 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003291/0.1387, allocations: 315.5 kB / 0.6208 GB, free: 8.961 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001148/0.1399, allocations: 0.9524 MB / 0.6217 GB, free: 7.969 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.895e-05/0.1399, allocations: 90.78 kB / 0.6218 GB, free: 7.879 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1401, allocations: 124.4 kB / 0.6219 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009143/0.141, allocations: 0.9238 MB / 0.6228 GB, free: 6.785 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.141, allocations: 3.938 kB / 0.6229 GB, free: 6.781 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.34e-05/0.1411, allocations: 52 kB / 0.6229 GB, free: 6.73 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.1411, allocations: 32 kB / 0.6229 GB, free: 6.699 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006317/0.1417, allocations: 0.5391 MB / 0.6235 GB, free: 6.148 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.1448, allocations: 3.219 MB / 0.6266 GB, free: 2.875 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/0.1456, allocations: 0.7683 MB / 0.6274 GB, free: 2.094 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.1459, allocations: 299.4 kB / 0.6276 GB, free: 1.801 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00211/0.148, allocations: 1.75 MB / 0.6293 GB, free: 32 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004521/0.1485, allocations: 430.8 kB / 0.6298 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 2.535e-06/0.1485, allocations: 0 / 0.6298 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.002845/0.1513, allocations: 2.083 MB / 0.6318 GB, free: 13.47 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.1513, allocations: 68.66 kB / 0.6319 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006214/0.152, allocations: 0.6903 MB / 0.6325 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.116e-05/0.152, allocations: 45.7 kB / 0.6326 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003974/0.1524, allocations: 0.6015 MB / 0.6332 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.1528, allocations: 467.9 kB / 0.6336 GB, free: 11.57 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003313/0.1531, allocations: 216.5 kB / 0.6338 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1533, allocations: 0.5315 MB / 0.6343 GB, free: 10.8 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003932/0.1537, allocations: 216.2 kB / 0.6345 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004962/0.1542, allocations: 353.7 kB / 0.6349 GB, free: 10.21 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009773/0.1551, allocations: 0.6302 MB / 0.6355 GB, free: 9.547 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.1551, allocations: 3.984 kB / 0.6355 GB, free: 9.543 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00165/0.1568, allocations: 1.018 MB / 0.6365 GB, free: 8.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.1568, allocations: 40.52 kB / 0.6365 GB, free: 8.457 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1568, allocations: 4 kB / 0.6365 GB, free: 8.453 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.1571, allocations: 127.8 kB / 0.6367 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.1576, allocations: 235.7 kB / 0.6369 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001893/0.1595, allocations: 2.601 MB / 0.6394 GB, free: 5.383 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.1597, allocations: 31.98 kB / 0.6394 GB, free: 5.352 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.1598, allocations: 43.98 kB / 0.6395 GB, free: 5.309 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.0002209/0.16, allocations: 212.4 kB / 0.6397 GB, free: 5.09 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.1602, allocations: 194.9 kB / 0.6399 GB, free: 4.898 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.1619, allocations: 1.641 MB / 0.6415 GB, free: 3.254 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.1619, allocations: 16 kB / 0.6415 GB, free: 3.238 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.162, allocations: 3.938 kB / 0.6415 GB, free: 3.234 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.162, allocations: 11.97 kB / 0.6415 GB, free: 3.223 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/0.1642, allocations: 2.052 MB / 0.6435 GB, free: 1.113 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1642, allocations: 0 / 0.6435 GB, free: 1.113 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/0.1647, allocations: 231.7 kB / 0.6437 GB, free: 0.8867 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002467/0.1649, allocations: 126.5 kB / 0.6439 GB, free: 0.7617 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.355e-05/0.165, allocations: 43.97 kB / 0.6439 GB, free: 0.7188 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2389/0.4038, allocations: 2.463 MB / 0.6463 GB, free: 42.82 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4038, allocations: 3.688 kB / 0.6463 GB, free: 42.82 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.4064, allocations: 1.44 MB / 0.6477 GB, free: 42.54 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004323/0.4068, allocations: 254.4 kB / 0.648 GB, free: 42.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/0.4069, allocations: 29.3 kB / 0.648 GB, free: 42.54 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003908/0.4073, allocations: 33.83 kB / 0.648 GB, free: 42.54 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.4075, allocations: 107 kB / 0.6481 GB, free: 42.54 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.073e-05/0.4076, allocations: 45.7 kB / 0.6482 GB, free: 42.54 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003985/0.408, allocations: 450.1 kB / 0.6486 GB, free: 42.38 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9e-08/0.408, allocations: 0 / 0.6486 GB, free: 42.38 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001152/0.4092, allocations: 453.2 kB / 0.649 GB, free: 42.38 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.0003872/0.4095, allocations: 262.9 kB / 0.6493 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001411/0.411, allocations: 1.026 MB / 0.6503 GB, free: 41.98 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.411, allocations: 4.844 kB / 0.6503 GB, free: 41.98 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007761/0.4117, allocations: 0.6743 MB / 0.6509 GB, free: 41.78 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.4133, allocations: 0.5249 MB / 0.6515 GB, free: 41.75 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003594/0.4169, allocations: 2.389 MB / 0.6538 GB, free: 40.76 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.4171, allocations: 273.1 kB / 0.654 GB, free: 40.67 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000745/0.4178, allocations: 290.5 kB / 0.6543 GB, free: 40.61 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008448/0.4187, allocations: 490.2 kB / 0.6548 GB, free: 40.54 MB / 0.5573 GB Notification: Performance of SimCode: time 1.092e-06/0.4187, allocations: 0.8125 kB / 0.6548 GB, free: 40.54 MB / 0.5573 GB Notification: Performance of Templates: time 0.03241/0.4511, allocations: 27.31 MB / 0.6815 GB, free: 36.22 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.588318411726505]