Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.0009146/0.0009146, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.001395/0.001395, allocations: 173.4 kB / 23.36 MB, free: 1.133 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.8942/0.8942, allocations: 177.1 MB / 203.8 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6312/0.6312, allocations: 118.7 MB / 378.9 MB, free: 1.363 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 430.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.012e-05/1.163e-05, allocations: 2.312 kB / 430.8 MB, free: 13.36 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.1735/0.1735, allocations: 17.15 MB / 448 MB, free: 15.71 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.006251/0.1797, allocations: 5.079 MB / 453 MB, free: 15.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009552/0.1807, allocations: 115.6 kB / 453.1 MB, free: 15.34 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007726/0.1815, allocations: 0.5411 MB / 453.7 MB, free: 15.09 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.1837, allocations: 1.942 MB / 455.6 MB, free: 14.19 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.1851, allocations: 0.9686 MB / 456.6 MB, free: 13.84 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002737/0.1879, allocations: 4.379 MB / 461 MB, free: 11.49 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004569/0.1883, allocations: 401.8 kB / 461.4 MB, free: 11.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.19, allocations: 2.208 MB / 463.6 MB, free: 9.941 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008688/0.1909, allocations: 1.25 MB / 464.8 MB, free: 9.289 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.1911, allocations: 192.5 kB / 465 MB, free: 9.289 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005241/0.1916, allocations: 383.5 kB / 465.4 MB, free: 9.203 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.1918, allocations: 0.5099 MB / 465.9 MB, free: 8.758 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005187/0.1923, allocations: 0.9157 MB / 466.8 MB, free: 7.84 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001237/0.1936, allocations: 2.304 MB / 469.1 MB, free: 5.527 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1936, allocations: 0 / 469.1 MB, free: 5.527 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.1936, allocations: 0 / 469.1 MB, free: 5.527 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.1936, allocations: 3.984 kB / 469.1 MB, free: 5.523 MB / 410.7 MB 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.002265/0.1959, allocations: 2.879 MB / 472 MB, free: 2.602 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.639e-05/0.1959, allocations: 8.031 kB / 472 MB, free: 2.594 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005217/0.1964, allocations: 475.9 kB / 472.5 MB, free: 2.129 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.1976, allocations: 1.286 MB / 473.8 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.95e-05/0.1976, allocations: 144.1 kB / 473.9 MB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001252/0.1978, allocations: 208.3 kB / 474.1 MB, free: 464 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.1989, allocations: 1.445 MB / 475.6 MB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.097e-05/0.199, allocations: 8.125 kB / 475.6 MB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.192e-05/0.1991, allocations: 80.36 kB / 475.6 MB, free: 14.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.501e-05/0.1991, allocations: 47.94 kB / 475.7 MB, free: 14.82 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008574/0.1999, allocations: 0.7525 MB / 476.4 MB, free: 14.06 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004322/0.2043, allocations: 3.774 MB / 480.2 MB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.2053, allocations: 1.217 MB / 481.4 MB, free: 9.039 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/0.2057, allocations: 414.8 kB / 481.8 MB, free: 8.629 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002613/0.2083, allocations: 2.006 MB / 483.8 MB, free: 6.605 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006153/0.209, allocations: 0.7615 MB / 484.6 MB, free: 5.805 MB / 426.7 MB Notification: Performance of pre-optimization done (n=200): time 3.216e-06/0.209, allocations: 0 / 484.6 MB, free: 5.805 MB / 426.7 MB Notification: Performance of matching and sorting (n=200): time 0.00192/0.2109, allocations: 1.352 MB / 486 MB, free: 4.441 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.2109, allocations: 162.5 kB / 486.1 MB, free: 4.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006397/0.2116, allocations: 1.088 MB / 487.2 MB, free: 3.156 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.404e-05/0.2116, allocations: 61.7 kB / 487.3 MB, free: 3.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.2119, allocations: 0.6682 MB / 487.9 MB, free: 2.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003112/0.2123, allocations: 0.693 MB / 488.6 MB, free: 1.711 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000273/0.2125, allocations: 323.3 kB / 488.9 MB, free: 1.391 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.676e-05/0.2126, allocations: 305.1 kB / 489.2 MB, free: 1.09 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002922/0.2129, allocations: 260.3 kB / 489.5 MB, free: 0.8281 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004675/0.2133, allocations: 0.7707 MB / 490.3 MB, free: 15.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007785/0.2141, allocations: 0.9008 MB / 491.2 MB, free: 14.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.2141, allocations: 0 / 491.2 MB, free: 14.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.001089/0.2152, allocations: 1.107 MB / 492.3 MB, free: 13.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.2152, allocations: 33.7 kB / 492.3 MB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.2153, allocations: 4 kB / 492.3 MB, free: 13.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003017/0.2156, allocations: 138.4 kB / 492.4 MB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008927/0.2164, allocations: 371.5 kB / 492.8 MB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.2182, allocations: 3.821 MB / 496.6 MB, free: 9.172 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004575/0.2186, allocations: 163.5 kB / 496.8 MB, free: 9.012 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-05/0.2187, allocations: 63.97 kB / 496.8 MB, free: 8.949 MB / 442.7 MB 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.0002853/0.219, allocations: 212.8 kB / 497.1 MB, free: 8.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001816/0.2192, allocations: 195.7 kB / 497.2 MB, free: 8.539 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/0.2211, allocations: 1.995 MB / 499.2 MB, free: 6.605 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.2211, allocations: 20 kB / 499.3 MB, free: 6.586 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2211, allocations: 1.5 kB / 499.3 MB, free: 6.586 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.2211, allocations: 7.969 kB / 499.3 MB, free: 6.578 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.2238, allocations: 2.281 MB / 0.4898 GB, free: 4.238 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.2238, allocations: 8.188 kB / 0.4898 GB, free: 4.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/0.2244, allocations: 319.5 kB / 0.4901 GB, free: 3.918 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000271/0.2247, allocations: 146.4 kB / 0.4902 GB, free: 3.766 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/0.2247, allocations: 51.97 kB / 0.4903 GB, free: 3.715 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.2264, allocations: 3.83 MB / 0.494 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2264, allocations: 0 / 0.494 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001668/0.228, allocations: 1.529 MB / 0.4955 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003629/0.2284, allocations: 302 kB / 0.4958 GB, free: 13.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001195/0.2285, allocations: 47.97 kB / 0.4959 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.2289, allocations: 51.97 kB / 0.4959 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.229, allocations: 153.6 kB / 0.4961 GB, free: 13.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.383e-05/0.2291, allocations: 48.16 kB / 0.4961 GB, free: 13.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003593/0.2295, allocations: 0.5744 MB / 0.4967 GB, free: 12.89 MB / 458.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2295, allocations: 0 / 0.4967 GB, free: 12.89 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008066/0.2303, allocations: 0.6863 MB / 0.4973 GB, free: 12.2 MB / 458.7 MB 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 (195): * Single equations (assignments): 190 * 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.0002292/0.2305, allocations: 196 kB / 0.4975 GB, free: 12.01 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.2316, allocations: 1.354 MB / 0.4988 GB, free: 10.59 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/0.2316, allocations: 17.31 kB / 0.4989 GB, free: 10.58 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006688/0.2323, allocations: 0.9179 MB / 0.4998 GB, free: 9.617 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.234, allocations: 0.8589 MB / 0.5006 GB, free: 8.793 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004391/0.2384, allocations: 3.723 MB / 0.5042 GB, free: 5.008 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.2386, allocations: 369.6 kB / 0.5046 GB, free: 4.617 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0007955/0.2394, allocations: 447.8 kB / 0.505 GB, free: 4.219 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/0.2405, allocations: 0.6552 MB / 0.5057 GB, free: 3.543 MB / 458.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2405, allocations: 0 / 0.5057 GB, free: 3.543 MB / 458.7 MB Notification: Performance of Templates: time 0.03979/0.2802, allocations: 38.74 MB / 0.5435 GB, free: 13.55 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_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.044862130191177]