Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.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.001246/0.001246, allocations: 81.95 kB / 19.87 MB, free: 4.621 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.0009795/0.0009795, allocations: 169.7 kB / 23.28 MB, free: 1.223 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.9586/0.9586, allocations: 177.1 MB / 203.7 MB, free: 5.492 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.6441/0.6441, allocations: 118.6 MB / 378.9 MB, free: 1.355 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.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 484.1 MB, free: 8.137 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.382e-05/2.578e-05, allocations: 3.719 kB / 484.1 MB, free: 8.133 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.009794/0.00982, allocations: 12.67 MB / 496.7 MB, free: 15.48 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.007793/0.01761, allocations: 3.905 MB / 0.4889 GB, free: 12.75 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00231/0.01992, allocations: 114.7 kB / 0.489 GB, free: 12.68 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009663/0.02089, allocations: 368.4 kB / 0.4894 GB, free: 12.45 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003345/0.02423, allocations: 1.254 MB / 0.4906 GB, free: 11.58 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.02642, allocations: 0.8 MB / 0.4914 GB, free: 11.14 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004487/0.03091, allocations: 3.018 MB / 0.4943 GB, free: 9.453 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006708/0.03158, allocations: 316.4 kB / 0.4946 GB, free: 9.145 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.03517, allocations: 1.604 MB / 0.4962 GB, free: 7.867 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.03639, allocations: 0.7745 MB / 0.4969 GB, free: 7.242 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000214/0.0366, allocations: 132 kB / 0.4971 GB, free: 7.113 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008628/0.03747, allocations: 301 kB / 0.4973 GB, free: 6.844 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002901/0.03776, allocations: 371.1 kB / 0.4977 GB, free: 6.531 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008035/0.03856, allocations: 0.642 MB / 0.4983 GB, free: 5.938 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003127/0.04169, allocations: 1.771 MB / 0.5001 GB, free: 4.34 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.04169, allocations: 0 / 0.5001 GB, free: 4.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.04169, allocations: 0 / 0.5001 GB, free: 4.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.014e-05/0.04172, allocations: 3.938 kB / 0.5001 GB, free: 4.336 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.003546/0.04527, allocations: 2.527 MB / 0.5025 GB, free: 1.758 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.04532, allocations: 16.03 kB / 0.5025 GB, free: 1.742 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006018/0.04592, allocations: 395 kB / 0.5029 GB, free: 1.355 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.04775, allocations: 1.413 MB / 0.5043 GB, free: 15.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.392e-05/0.04781, allocations: 90.7 kB / 0.5044 GB, free: 15.79 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.04792, allocations: 132.3 kB / 0.5045 GB, free: 15.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.04894, allocations: 0.9285 MB / 0.5054 GB, free: 14.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.04896, allocations: 192 / 0.5054 GB, free: 14.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.062e-05/0.04903, allocations: 51.94 kB / 0.5055 GB, free: 14.59 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/0.04905, allocations: 28 kB / 0.5055 GB, free: 14.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004912/0.04954, allocations: 455.2 kB / 0.5059 GB, free: 14.11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003999/0.05354, allocations: 3.644 MB / 0.5095 GB, free: 10.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000759/0.0543, allocations: 0.724 MB / 0.5102 GB, free: 9.641 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.05452, allocations: 246.9 kB / 0.5104 GB, free: 9.395 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002008/0.05653, allocations: 1.374 MB / 0.5118 GB, free: 8.031 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.05656, allocations: 46.39 kB / 0.5118 GB, free: 7.977 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 3.577e-06/0.05656, allocations: 0 / 0.5118 GB, free: 7.977 MB / 442.7 MB Notification: Performance of matching and sorting (n=97): time 0.001343/0.05791, allocations: 1.021 MB / 0.5128 GB, free: 6.934 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.875e-05/0.05794, allocations: 68.34 kB / 0.5129 GB, free: 6.855 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009246/0.05886, allocations: 1.293 MB / 0.5141 GB, free: 5.555 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.0589, allocations: 49.7 kB / 0.5142 GB, free: 5.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004693/0.05937, allocations: 0.9353 MB / 0.5151 GB, free: 4.555 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.05954, allocations: 348.9 kB / 0.5154 GB, free: 4.211 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.05969, allocations: 184.2 kB / 0.5156 GB, free: 4.023 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.05983, allocations: 0.5081 MB / 0.5161 GB, free: 3.508 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.05997, allocations: 121.9 kB / 0.5162 GB, free: 3.387 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006183/0.06059, allocations: 0.6504 MB / 0.5169 GB, free: 2.566 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004452/0.06103, allocations: 0.5289 MB / 0.5174 GB, free: 1.957 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.06104, allocations: 0 / 0.5174 GB, free: 1.957 MB / 442.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.000891/0.06193, allocations: 0.8697 MB / 0.5182 GB, free: 1.066 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.06195, allocations: 6.812 kB / 0.5182 GB, free: 1.062 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.06196, allocations: 4 kB / 0.5182 GB, free: 1.059 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006012/0.06256, allocations: 191.3 kB / 0.5184 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005298/0.06309, allocations: 191.7 kB / 0.5186 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/0.06625, allocations: 5.512 MB / 0.524 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006312/0.06688, allocations: 99.47 kB / 0.5241 GB, free: 10.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.428e-05/0.06693, allocations: 31.98 kB / 0.5241 GB, free: 10.69 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * 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.0003981/0.06733, allocations: 220.3 kB / 0.5243 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.06753, allocations: 214.8 kB / 0.5245 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001342/0.06888, allocations: 1.286 MB / 0.5258 GB, free: 8.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.06888, allocations: 8 kB / 0.5258 GB, free: 8.902 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.06889, allocations: 4 kB / 0.5258 GB, free: 8.898 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.06889, allocations: 3.984 kB / 0.5258 GB, free: 8.895 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/0.07092, allocations: 1.696 MB / 0.5274 GB, free: 7.113 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.07092, allocations: 7.984 kB / 0.5275 GB, free: 7.105 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000255/0.07118, allocations: 139.8 kB / 0.5276 GB, free: 6.969 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/0.07158, allocations: 203 kB / 0.5278 GB, free: 6.758 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.07162, allocations: 23.98 kB / 0.5278 GB, free: 6.734 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.07418, allocations: 5.525 MB / 0.5332 GB, free: 0.8672 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.07419, allocations: 8.094 kB / 0.5332 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.07531, allocations: 1.119 MB / 0.5343 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003415/0.07565, allocations: 254.4 kB / 0.5345 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.82e-05/0.07574, allocations: 24 kB / 0.5346 GB, free: 15.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.076, allocations: 24 kB / 0.5346 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.872e-05/0.0761, allocations: 80.73 kB / 0.5347 GB, free: 15.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.07614, allocations: 31.97 kB / 0.5347 GB, free: 15.27 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005837/0.07672, allocations: 0.7801 MB / 0.5355 GB, free: 14.46 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.07672, allocations: 0 / 0.5355 GB, free: 14.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008587/0.07758, allocations: 455.1 kB / 0.5359 GB, free: 14.02 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002197/0.0778, allocations: 163 kB / 0.536 GB, free: 13.85 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0008483/0.07865, allocations: 1.025 MB / 0.5371 GB, free: 12.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.07865, allocations: 4 kB / 0.5371 GB, free: 12.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007548/0.0794, allocations: 0.8091 MB / 0.5378 GB, free: 11.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.0809, allocations: 0.7232 MB / 0.5386 GB, free: 11.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/0.08432, allocations: 2.866 MB / 0.5413 GB, free: 8.258 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.08452, allocations: 278.1 kB / 0.5416 GB, free: 7.965 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007013/0.08523, allocations: 275.9 kB / 0.5419 GB, free: 7.688 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008037/0.08603, allocations: 0.5915 MB / 0.5425 GB, free: 7.094 MB / 474.7 MB Notification: Performance of SimCode: time 1.674e-06/0.08603, allocations: 0 / 0.5425 GB, free: 7.094 MB / 474.7 MB Notification: Performance of Templates: time 0.03905/0.1251, allocations: 27.94 MB / 0.5697 GB, free: 11.82 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.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.046508654020727]