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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00228/0.00228, allocations: 191.5 kB / 22.23 MB, free: 5.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7636/0.7636, allocations: 94.59 MB / 400.9 MB, free: 15.18 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002541/0.002541, allocations: 83.25 kB / 0.5472 GB, free: 42.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1039, allocations: 71.88 MB / 0.6174 GB, free: 8.086 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.07661/0.1805, allocations: 66.32 MB / 0.6821 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02389/0.2044, allocations: 17.71 MB / 0.6994 GB, free: 3.758 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002354/0.2068, allocations: 111 kB / 0.6995 GB, free: 3.648 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0033/0.2101, allocations: 1.195 MB / 0.7007 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007861/0.2179, allocations: 2.886 MB / 0.7035 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004596/0.2225, allocations: 1.589 MB / 0.7051 GB, free: 13.95 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006293/0.2288, allocations: 3.922 MB / 0.7089 GB, free: 10 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001148/0.23, allocations: 399 kB / 0.7093 GB, free: 9.582 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00338/0.2333, allocations: 1.657 MB / 0.7109 GB, free: 7.918 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002723/0.2361, allocations: 1.559 MB / 0.7124 GB, free: 6.352 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0005403/0.2366, allocations: 199.9 kB / 0.7126 GB, free: 6.156 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005073/0.2417, allocations: 1.771 MB / 0.7144 GB, free: 4.383 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0007097/0.2424, allocations: 497.8 kB / 0.7148 GB, free: 3.895 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001604/0.244, allocations: 1.259 MB / 0.7161 GB, free: 2.629 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.006673/0.2507, allocations: 3.841 MB / 0.7198 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2507, allocations: 0 / 0.7198 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2507, allocations: 4 kB / 0.7198 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.188e-05/0.2507, allocations: 4 kB / 0.7198 GB, free: 14.77 MB / 0.5606 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.00602/0.2567, allocations: 2.991 MB / 0.7227 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.2568, allocations: 8.031 kB / 0.7227 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005417/0.2573, allocations: 295.1 kB / 0.723 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002667/0.26, allocations: 1.39 MB / 0.7244 GB, free: 9.992 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.2601, allocations: 140.1 kB / 0.7245 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003019/0.2604, allocations: 192.3 kB / 0.7247 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003982/0.2644, allocations: 2.21 MB / 0.7269 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.557e-05/0.2644, allocations: 0 / 0.7269 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/0.2646, allocations: 76 kB / 0.7269 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.653e-05/0.2646, allocations: 51.94 kB / 0.727 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004154/0.2688, allocations: 2.349 MB / 0.7293 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.2804, allocations: 8.919 MB / 0.738 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003311/0.2837, allocations: 1.781 MB / 0.7397 GB, free: 9.375 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.2853, allocations: 0.8891 MB / 0.7406 GB, free: 8.477 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006659/0.292, allocations: 3.181 MB / 0.7437 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001945/0.2939, allocations: 0.964 MB / 0.7446 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 3.667e-06/0.2939, allocations: 0 / 0.7446 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.006506/0.3004, allocations: 2.804 MB / 0.7474 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.3005, allocations: 73.41 kB / 0.7474 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/0.3022, allocations: 1.237 MB / 0.7487 GB, free: 160 kB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001368/0.3023, allocations: 57.7 kB / 0.7487 GB, free: 96 kB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.243/0.5454, allocations: 0.8652 MB / 0.7496 GB, free: 125.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006844/0.5461, allocations: 0.6994 MB / 0.7502 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004918/0.5466, allocations: 331.2 kB / 0.7506 GB, free: 125.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.488e-05/0.5466, allocations: 304.1 kB / 0.7508 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.5479, allocations: 0.6542 MB / 0.7515 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.5494, allocations: 0.8967 MB / 0.7524 GB, free: 124.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/0.5522, allocations: 1.676 MB / 0.754 GB, free: 124 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.5522, allocations: 5.719 kB / 0.754 GB, free: 124 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003877/0.5561, allocations: 2.165 MB / 0.7561 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.5561, allocations: 38.45 kB / 0.7562 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.5561, allocations: 7.531 kB / 0.7562 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000588/0.5567, allocations: 162.8 kB / 0.7563 GB, free: 123 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.558, allocations: 404.1 kB / 0.7567 GB, free: 123 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003171/0.5612, allocations: 4.535 MB / 0.7611 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.5624, allocations: 164.4 kB / 0.7613 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002026/0.5626, allocations: 88.27 kB / 0.7614 GB, free: 118.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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.0007089/0.5633, allocations: 360.8 kB / 0.7617 GB, free: 118.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004009/0.5637, allocations: 208.5 kB / 0.7619 GB, free: 118.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006753/0.5704, allocations: 3.417 MB / 0.7652 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.283e-05/0.5705, allocations: 23.5 kB / 0.7653 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5705, allocations: 2.281 kB / 0.7653 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-05/0.5705, allocations: 16.19 kB / 0.7653 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008163/0.5787, allocations: 4.76 MB / 0.7699 GB, free: 114.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.5787, allocations: 0 / 0.7699 GB, free: 114.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.5799, allocations: 400.8 kB / 0.7703 GB, free: 114.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000501/0.5804, allocations: 169.6 kB / 0.7705 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.5805, allocations: 70.56 kB / 0.7705 GB, free: 114.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002819/0.5833, allocations: 4.544 MB / 0.775 GB, free: 110.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5834, allocations: 0 / 0.775 GB, free: 110.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005195/0.5885, allocations: 3.345 MB / 0.7783 GB, free: 109 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.5896, allocations: 471.7 kB / 0.7787 GB, free: 108.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000338/0.5899, allocations: 46.12 kB / 0.7787 GB, free: 108.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009048/0.5909, allocations: 58.72 kB / 0.7788 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.5912, allocations: 189.8 kB / 0.779 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/0.5913, allocations: 93.62 kB / 0.7791 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009676/0.5923, allocations: 0.8608 MB / 0.7799 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5923, allocations: 0 / 0.7799 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001967/0.5942, allocations: 0.8631 MB / 0.7808 GB, free: 108.1 MB / 0.5762 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 (225): * Single equations (assignments): 220 * 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.0009817/0.5952, allocations: 0.8373 MB / 0.7816 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003354/0.5986, allocations: 2.161 MB / 0.7837 GB, free: 106.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.5986, allocations: 4 kB / 0.7837 GB, free: 106.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001827/0.6004, allocations: 1.376 MB / 0.785 GB, free: 104.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002498/0.6029, allocations: 0.6451 MB / 0.7857 GB, free: 104.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005561/0.6085, allocations: 3.934 MB / 0.7895 GB, free: 100.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006835/0.6091, allocations: 1.473 MB / 0.7909 GB, free: 98.79 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001458/0.6106, allocations: 0.5039 MB / 0.7914 GB, free: 98.31 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005334/0.6111, allocations: 243.3 kB / 0.7917 GB, free: 98.07 MB / 0.5762 GB Notification: Performance of SimCode: time 8.51e-07/0.6111, allocations: 3.938 kB / 0.7917 GB, free: 98.07 MB / 0.5762 GB Notification: Performance of Templates: time 0.05579/0.6669, allocations: 42.99 MB / 0.8337 GB, free: 55.39 MB / 0.5762 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=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.406506693921983]