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.001882/0.001882, allocations: 85.48 kB / 19.44 MB, free: 344 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.002015/0.002015, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.568/1.568, allocations: 177.1 MB / 203.1 MB, free: 5.262 MB / 186.7 MB " [Timeout remaining time 178] 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 1.021/1.021, allocations: 118.6 MB / 378.2 MB, free: 1.406 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.613e-06/1.613e-06, allocations: 0 / 482.9 MB, free: 8.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/2.721e-05, allocations: 2.312 kB / 482.9 MB, free: 8.258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.08401/0.08404, allocations: 68.87 MB / 0.5388 GB, free: 11.98 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.02901/0.1131, allocations: 18.48 MB / 0.5569 GB, free: 9.445 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002622/0.1157, allocations: 111 kB / 0.557 GB, free: 9.336 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003548/0.1192, allocations: 1.109 MB / 0.5581 GB, free: 8.219 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009309/0.1285, allocations: 3.119 MB / 0.5611 GB, free: 5.078 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00501/0.1335, allocations: 1.654 MB / 0.5627 GB, free: 3.418 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.00682/0.1404, allocations: 4.382 MB / 0.567 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.1414, allocations: 391.2 kB / 0.5674 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005212/0.1466, allocations: 2.388 MB / 0.5697 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002499/0.1491, allocations: 1.297 MB / 0.571 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0004224/0.1496, allocations: 192 kB / 0.5712 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004471/0.154, allocations: 1.516 MB / 0.5726 GB, free: 9.203 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0007504/0.1548, allocations: 0.5093 MB / 0.5731 GB, free: 8.691 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.1563, allocations: 0.9274 MB / 0.574 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.007312/0.1637, allocations: 3.971 MB / 0.5779 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1637, allocations: 0 / 0.5779 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.353e-06/0.1637, allocations: 0 / 0.5779 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.272e-05/0.1637, allocations: 0 / 0.5779 GB, free: 3.777 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.006918/0.1706, allocations: 3.316 MB / 0.5812 GB, free: 408 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.1707, allocations: 12.03 kB / 0.5812 GB, free: 396 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001487/0.1722, allocations: 0.5571 MB / 0.5817 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003008/0.1752, allocations: 1.499 MB / 0.5832 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.1753, allocations: 144.1 kB / 0.5833 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003081/0.1756, allocations: 200.3 kB / 0.5835 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003785/0.1794, allocations: 1.952 MB / 0.5854 GB, free: 11.94 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.436e-05/0.1794, allocations: 4.188 kB / 0.5854 GB, free: 11.93 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001603/0.1796, allocations: 80.12 kB / 0.5855 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-05/0.1797, allocations: 44 kB / 0.5855 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00343/0.1831, allocations: 1.541 MB / 0.587 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01092/0.194, allocations: 5.712 MB / 0.5926 GB, free: 4.461 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003452/0.1975, allocations: 1.712 MB / 0.5943 GB, free: 2.746 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.199, allocations: 0.8062 MB / 0.5951 GB, free: 1.938 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006854/0.2058, allocations: 2.886 MB / 0.5979 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002055/0.2079, allocations: 1.11 MB / 0.599 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=200): time 4.358e-06/0.2079, allocations: 4 kB / 0.599 GB, free: 13.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=200): time 0.006522/0.2144, allocations: 2.61 MB / 0.6015 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.2145, allocations: 158.5 kB / 0.6017 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/0.2168, allocations: 1.452 MB / 0.6031 GB, free: 9.582 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001824/0.2169, allocations: 65.69 kB / 0.6032 GB, free: 9.512 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.218, allocations: 1.009 MB / 0.6041 GB, free: 8.488 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008648/0.2189, allocations: 0.7361 MB / 0.6049 GB, free: 7.746 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006169/0.2195, allocations: 381.2 kB / 0.6052 GB, free: 7.367 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002465/0.2197, allocations: 476.8 kB / 0.6057 GB, free: 6.898 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.221, allocations: 0.5835 MB / 0.6062 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/0.2229, allocations: 1.231 MB / 0.6075 GB, free: 4.887 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003252/0.2262, allocations: 1.643 MB / 0.6091 GB, free: 3.148 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.666e-06/0.2262, allocations: 0 / 0.6091 GB, free: 3.148 MB / 0.5261 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004648/0.2308, allocations: 2.115 MB / 0.6111 GB, free: 1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.902e-05/0.2309, allocations: 44.34 kB / 0.6112 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.2309, allocations: 4 kB / 0.6112 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007993/0.2317, allocations: 202.8 kB / 0.6114 GB, free: 0.7383 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.2332, allocations: 379.5 kB / 0.6117 GB, free: 376 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005964/0.2391, allocations: 6.042 MB / 0.6176 GB, free: 9.953 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.2405, allocations: 158.6 kB / 0.6178 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/0.2407, allocations: 91.95 kB / 0.6179 GB, free: 9.711 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.0008569/0.2416, allocations: 400.2 kB / 0.6182 GB, free: 9.309 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005947/0.2422, allocations: 282.6 kB / 0.6185 GB, free: 9.031 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006498/0.2487, allocations: 3.218 MB / 0.6217 GB, free: 5.883 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.11e-05/0.2487, allocations: 20 kB / 0.6217 GB, free: 5.863 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.2487, allocations: 4 kB / 0.6217 GB, free: 5.859 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.67e-05/0.2488, allocations: 15.89 kB / 0.6217 GB, free: 5.844 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008783/0.2575, allocations: 4.273 MB / 0.6259 GB, free: 1.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.2575, allocations: 0 / 0.6259 GB, free: 1.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001383/0.2589, allocations: 371.5 kB / 0.6262 GB, free: 1.117 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007503/0.2597, allocations: 195 kB / 0.6264 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.2598, allocations: 75.89 kB / 0.6265 GB, free: 0.8398 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00599/0.2658, allocations: 6.05 MB / 0.6324 GB, free: 10.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.2658, allocations: 3.984 kB / 0.6324 GB, free: 10.42 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006466/0.2723, allocations: 3.109 MB / 0.6354 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.2735, allocations: 441.7 kB / 0.6358 GB, free: 6.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002689/0.2738, allocations: 55.88 kB / 0.6359 GB, free: 6.766 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008042/0.2746, allocations: 47.98 kB / 0.6359 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003748/0.2749, allocations: 173.7 kB / 0.6361 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001867/0.2751, allocations: 80.16 kB / 0.6362 GB, free: 6.469 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001385/0.2765, allocations: 0.9167 MB / 0.6371 GB, free: 5.559 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1e-07/0.2765, allocations: 0 / 0.6371 GB, free: 5.559 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.002301/0.2788, allocations: 0.8655 MB / 0.6379 GB, free: 4.691 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.001299/0.2801, allocations: 0.7838 MB / 0.6387 GB, free: 3.918 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004235/0.2844, allocations: 2.277 MB / 0.6409 GB, free: 1.566 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.2844, allocations: 4 kB / 0.6409 GB, free: 1.562 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0024/0.2868, allocations: 1.477 MB / 0.6424 GB, free: 28 kB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1946/0.4814, allocations: 0.8811 MB / 0.6432 GB, free: 159.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009257/0.4907, allocations: 4.126 MB / 0.6473 GB, free: 158.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008483/0.4915, allocations: 0.9209 MB / 0.6482 GB, free: 158.1 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00192/0.4934, allocations: 485.6 kB / 0.6486 GB, free: 158 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005327/0.494, allocations: 242.8 kB / 0.6488 GB, free: 158 MB / 0.5573 GB Notification: Performance of SimCode: time 1.633e-06/0.494, allocations: 0 / 0.6488 GB, free: 158 MB / 0.5573 GB Notification: Performance of Templates: time 0.06528/0.5592, allocations: 44.55 MB / 0.6924 GB, free: 135.2 MB / 0.5573 GB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.950099262990989]