Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.001368/0.001368, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001476/0.001476, allocations: 173 kB / 23.49 MB, free: 1.059 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 1.006/1.006, allocations: 177.1 MB / 203.8 MB, free: 5.621 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.7024/0.7024, allocations: 118.6 MB / 378.9 MB, free: 1.445 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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 483.6 MB, free: 8.324 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.255e-05/2.405e-05, allocations: 2.312 kB / 483.6 MB, free: 8.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.05145/0.05148, allocations: 69.08 MB / 0.5397 GB, free: 11.77 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01838/0.06985, allocations: 18.47 MB / 0.5578 GB, free: 9.242 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002502/0.07236, allocations: 122.9 kB / 0.5579 GB, free: 9.121 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002819/0.07517, allocations: 1.105 MB / 0.559 GB, free: 8.008 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007587/0.08276, allocations: 3.12 MB / 0.562 GB, free: 4.867 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00406/0.08682, allocations: 1.646 MB / 0.5636 GB, free: 3.215 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.005569/0.09239, allocations: 4.389 MB / 0.5679 GB, free: 14.81 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008162/0.09321, allocations: 391.3 kB / 0.5683 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003835/0.09704, allocations: 2.384 MB / 0.5706 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001931/0.09897, allocations: 1.297 MB / 0.5719 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0002876/0.09926, allocations: 192 kB / 0.5721 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003364/0.1026, allocations: 1.528 MB / 0.5736 GB, free: 8.988 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0003426/0.103, allocations: 0.5015 MB / 0.574 GB, free: 8.484 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0009247/0.1039, allocations: 0.9274 MB / 0.575 GB, free: 7.555 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.005216/0.1091, allocations: 3.211 MB / 0.5781 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1091, allocations: 0 / 0.5781 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1091, allocations: 0 / 0.5781 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.422e-05/0.1092, allocations: 0 / 0.5781 GB, free: 4.332 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.003914/0.1131, allocations: 3.187 MB / 0.5812 GB, free: 1.082 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1131, allocations: 8.031 kB / 0.5812 GB, free: 1.074 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009638/0.1141, allocations: 0.5531 MB / 0.5818 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.1159, allocations: 1.491 MB / 0.5832 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.04e-05/0.116, allocations: 144.1 kB / 0.5833 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.1161, allocations: 196.3 kB / 0.5835 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.1186, allocations: 1.593 MB / 0.5851 GB, free: 13 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.1186, allocations: 4.188 kB / 0.5851 GB, free: 13 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.1187, allocations: 76.12 kB / 0.5852 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.017e-05/0.1188, allocations: 44 kB / 0.5852 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.1204, allocations: 1.072 MB / 0.5863 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005674/0.126, allocations: 5.105 MB / 0.5912 GB, free: 6.602 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.128, allocations: 1.408 MB / 0.5926 GB, free: 5.184 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006965/0.1287, allocations: 0.5601 MB / 0.5932 GB, free: 4.621 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00353/0.1322, allocations: 2.597 MB / 0.5957 GB, free: 1.996 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009887/0.1332, allocations: 0.8368 MB / 0.5965 GB, free: 1.113 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=200): time 4.789e-06/0.1332, allocations: 0 / 0.5965 GB, free: 1.113 MB / 0.5105 GB Notification: Performance of matching and sorting (n=200): time 0.003093/0.1363, allocations: 1.989 MB / 0.5985 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.1364, allocations: 166.5 kB / 0.5986 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.1375, allocations: 1.175 MB / 0.5998 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.127e-05/0.1376, allocations: 61.7 kB / 0.5998 GB, free: 13.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004987/0.1381, allocations: 0.9509 MB / 0.6007 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000377/0.1384, allocations: 0.7009 MB / 0.6014 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003144/0.1388, allocations: 341.1 kB / 0.6018 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.1389, allocations: 488.7 kB / 0.6022 GB, free: 11.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005457/0.1394, allocations: 373.5 kB / 0.6026 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000817/0.1402, allocations: 0.9775 MB / 0.6035 GB, free: 9.625 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.1416, allocations: 1.151 MB / 0.6047 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.1416, allocations: 0 / 0.6047 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.002334/0.1439, allocations: 1.662 MB / 0.6063 GB, free: 6.684 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.144, allocations: 37.7 kB / 0.6063 GB, free: 6.641 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.144, allocations: 4 kB / 0.6063 GB, free: 6.637 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004534/0.1444, allocations: 162.9 kB / 0.6065 GB, free: 6.465 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007615/0.1452, allocations: 387.4 kB / 0.6068 GB, free: 6.086 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002678/0.1479, allocations: 5.635 MB / 0.6124 GB, free: 84 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007377/0.1486, allocations: 149.1 kB / 0.6125 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.1487, allocations: 83.97 kB / 0.6126 GB, free: 15.85 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004349/0.1492, allocations: 264.1 kB / 0.6128 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004713/0.1496, allocations: 274.6 kB / 0.6131 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003196/0.1528, allocations: 2.612 MB / 0.6156 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.1529, allocations: 20 kB / 0.6157 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1529, allocations: 7.984 kB / 0.6157 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/0.1529, allocations: 11.91 kB / 0.6157 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004268/0.1571, allocations: 3.464 MB / 0.6191 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.1572, allocations: 0 / 0.6191 GB, free: 9.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007241/0.1579, allocations: 371.5 kB / 0.6194 GB, free: 8.816 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003751/0.1583, allocations: 175 kB / 0.6196 GB, free: 8.633 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.1584, allocations: 67.95 kB / 0.6196 GB, free: 8.566 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002723/0.1611, allocations: 5.605 MB / 0.6251 GB, free: 2.598 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.1611, allocations: 4 kB / 0.6251 GB, free: 2.594 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003153/0.1642, allocations: 2.292 MB / 0.6274 GB, free: 252 kB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006474/0.1649, allocations: 445.8 kB / 0.6278 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.165, allocations: 51.89 kB / 0.6278 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004188/0.1655, allocations: 52.11 kB / 0.6279 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.1657, allocations: 181.6 kB / 0.6281 GB, free: 15.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.982e-05/0.1658, allocations: 83.95 kB / 0.6281 GB, free: 15.45 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006436/0.1664, allocations: 0.737 MB / 0.6289 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.1664, allocations: 0 / 0.6289 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001705/0.1681, allocations: 0.8616 MB / 0.6297 GB, free: 13.85 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008887/0.169, allocations: 0.7896 MB / 0.6305 GB, free: 13.07 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002337/0.1714, allocations: 1.815 MB / 0.6322 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.1714, allocations: 0 / 0.6322 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001124/0.1725, allocations: 1.244 MB / 0.6335 GB, free: 9.879 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/0.1749, allocations: 0.8874 MB / 0.6343 GB, free: 9.016 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005543/0.1804, allocations: 3.87 MB / 0.6381 GB, free: 5.062 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.1807, allocations: 370 kB / 0.6385 GB, free: 4.672 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001264/0.1819, allocations: 492.7 kB / 0.6389 GB, free: 4.297 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/0.1824, allocations: 240.4 kB / 0.6392 GB, free: 4.062 MB / 0.5573 GB Notification: Performance of SimCode: time 1.964e-06/0.1824, allocations: 0 / 0.6392 GB, free: 4.062 MB / 0.5573 GB Notification: Performance of Templates: time 0.2355/0.4179, allocations: 44.57 MB / 0.6827 GB, free: 146.1 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_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.901895474176854]