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.0007005/0.0007005, allocations: 72.55 kB / 19.93 MB, free: 4.633 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.0007646/0.0007646, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.9012/0.9012, allocations: 177.1 MB / 203.5 MB, free: 5.723 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.6566/0.6566, allocations: 116 MB / 376 MB, free: 4.184 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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.453e-06/1.453e-06, allocations: 0 / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.544e-05/2.689e-05, allocations: 2.281 kB / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.04297/0.04299, allocations: 60.71 MB / 0.6138 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.01337/0.05637, allocations: 16.21 MB / 0.6296 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001673/0.05804, allocations: 114.9 kB / 0.6297 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001869/0.05991, allocations: 1.105 MB / 0.6308 GB, free: 14.43 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.004499/0.06441, allocations: 3.1 MB / 0.6338 GB, free: 11.31 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.06687, allocations: 1.619 MB / 0.6354 GB, free: 9.684 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.002783/0.06966, allocations: 4.324 MB / 0.6396 GB, free: 5.34 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004544/0.07011, allocations: 375.2 kB / 0.64 GB, free: 4.945 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001938/0.07205, allocations: 2.337 MB / 0.6423 GB, free: 2.602 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.07305, allocations: 1.289 MB / 0.6435 GB, free: 1.309 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001785/0.07323, allocations: 192 kB / 0.6437 GB, free: 1.121 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2429/0.3161, allocations: 1.513 MB / 0.6452 GB, free: 19.01 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0006567/0.3168, allocations: 0.501 MB / 0.6457 GB, free: 19.01 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001476/0.3182, allocations: 0.9123 MB / 0.6466 GB, free: 19.01 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.005809/0.324, allocations: 3.893 MB / 0.6504 GB, free: 18.87 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.3241, allocations: 2.625 kB / 0.6504 GB, free: 18.87 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3241, allocations: 3.281 kB / 0.6504 GB, free: 18.87 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.516e-05/0.3241, allocations: 0 / 0.6504 GB, free: 18.87 MB / 0.5573 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.003964/0.3281, allocations: 2.993 MB / 0.6533 GB, free: 17.51 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3281, allocations: 8.625 kB / 0.6533 GB, free: 17.51 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000654/0.3288, allocations: 355.4 kB / 0.6536 GB, free: 17.36 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001808/0.3306, allocations: 1.362 MB / 0.655 GB, free: 16.93 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.894e-05/0.3306, allocations: 143.2 kB / 0.6551 GB, free: 16.93 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001574/0.3308, allocations: 191.9 kB / 0.6553 GB, free: 16.92 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002269/0.333, allocations: 2.24 MB / 0.6575 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.3331, allocations: 192 / 0.6575 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.062e-05/0.3332, allocations: 74.75 kB / 0.6575 GB, free: 16.68 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.3332, allocations: 55.16 kB / 0.6576 GB, free: 16.67 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/0.3355, allocations: 2.295 MB / 0.6598 GB, free: 16.66 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006841/0.3424, allocations: 5.049 MB / 0.6648 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.3444, allocations: 1.789 MB / 0.6665 GB, free: 15.47 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009106/0.3453, allocations: 0.8833 MB / 0.6674 GB, free: 15.45 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003992/0.3493, allocations: 2.781 MB / 0.6701 GB, free: 15.1 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.3504, allocations: 1.113 MB / 0.6712 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=200): time 3.978e-06/0.3505, allocations: 1.062 kB / 0.6712 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of matching and sorting (n=200): time 0.003595/0.354, allocations: 2.74 MB / 0.6739 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.3541, allocations: 151.7 kB / 0.674 GB, free: 14.5 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009457/0.355, allocations: 1.143 MB / 0.6751 GB, free: 14.32 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.413e-05/0.3551, allocations: 64.48 kB / 0.6752 GB, free: 14.29 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004251/0.3555, allocations: 0.8805 MB / 0.676 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.3558, allocations: 0.6897 MB / 0.6767 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/0.3561, allocations: 327.2 kB / 0.677 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 2.945e-05/0.3561, allocations: 308.3 kB / 0.6773 GB, free: 13.16 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007132/0.3569, allocations: 0.6608 MB / 0.678 GB, free: 13.12 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008537/0.3577, allocations: 1.005 MB / 0.679 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.3593, allocations: 1.658 MB / 0.6806 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.3593, allocations: 0 / 0.6806 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.002309/0.3616, allocations: 2.163 MB / 0.6827 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.3616, allocations: 37.52 kB / 0.6827 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.3617, allocations: 7.188 kB / 0.6827 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003307/0.362, allocations: 154.8 kB / 0.6829 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006777/0.3627, allocations: 400 kB / 0.6833 GB, free: 11.69 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/0.3645, allocations: 4.429 MB / 0.6876 GB, free: 7.629 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008152/0.3653, allocations: 153.1 kB / 0.6877 GB, free: 7.523 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/0.3654, allocations: 85.92 kB / 0.6878 GB, free: 7.504 MB / 0.5573 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.0006032/0.366, allocations: 361.1 kB / 0.6882 GB, free: 7.254 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.3662, allocations: 200.8 kB / 0.6883 GB, free: 7.148 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00305/0.3693, allocations: 3.107 MB / 0.6914 GB, free: 5.879 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.3693, allocations: 22.66 kB / 0.6914 GB, free: 5.879 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.3693, allocations: 2.938 kB / 0.6914 GB, free: 5.879 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.3693, allocations: 10.59 kB / 0.6914 GB, free: 5.879 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004214/0.3735, allocations: 4.041 MB / 0.6954 GB, free: 4.047 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.3735, allocations: 5.625 kB / 0.6954 GB, free: 4.043 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006295/0.3742, allocations: 380.7 kB / 0.6957 GB, free: 4.023 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002653/0.3744, allocations: 160.4 kB / 0.6959 GB, free: 3.965 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.63e-05/0.3745, allocations: 71.86 kB / 0.6959 GB, free: 3.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002052/0.3766, allocations: 4.427 MB / 0.7003 GB, free: 15.87 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3766, allocations: 5.75 kB / 0.7003 GB, free: 15.87 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003305/0.3799, allocations: 3.213 MB / 0.7034 GB, free: 14.4 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00071/0.3806, allocations: 445.6 kB / 0.7038 GB, free: 14.13 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.3807, allocations: 46.95 kB / 0.7039 GB, free: 14.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004484/0.3812, allocations: 56.22 kB / 0.7039 GB, free: 14.07 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001895/0.3814, allocations: 172.8 kB / 0.7041 GB, free: 14.05 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.99e-05/0.3815, allocations: 78.05 kB / 0.7042 GB, free: 14.03 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006913/0.3822, allocations: 0.7874 MB / 0.7049 GB, free: 13.73 MB / 0.573 GB Notification: Performance of sort global known variables: time 4e-08/0.3822, allocations: 0 / 0.7049 GB, free: 13.73 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001755/0.3839, allocations: 0.86 MB / 0.7058 GB, free: 13.5 MB / 0.573 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.0009194/0.3848, allocations: 0.7861 MB / 0.7066 GB, free: 13.2 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00245/0.3873, allocations: 2.137 MB / 0.7086 GB, free: 12.21 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3873, allocations: 0 / 0.7086 GB, free: 12.21 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.3885, allocations: 1.306 MB / 0.7099 GB, free: 11.57 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002073/0.3906, allocations: 0.8447 MB / 0.7107 GB, free: 11.27 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005641/0.3962, allocations: 4.244 MB / 0.7149 GB, free: 9.328 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005845/0.3968, allocations: 0.897 MB / 0.7158 GB, free: 9.121 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005153/0.3973, allocations: 254.8 kB / 0.716 GB, free: 9.07 MB / 0.573 GB Notification: Performance of SimCode: time 1.383e-06/0.3973, allocations: 2.844 kB / 0.716 GB, free: 9.07 MB / 0.573 GB Notification: Performance of Templates: time 0.05186/0.4492, allocations: 64.63 MB / 0.7791 GB, free: 9.977 MB / 0.6355 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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] 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.965752458199859]