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.001187/0.001187, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001842/0.003029, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001125/0.001125, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001382/0.002507, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9928/0.9928, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09834/1.091, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1-main/package.mo): time 0.6561/0.6561, allocations: 118.7 MB / 362.7 MB, free: 1.293 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06918/0.7253, allocations: 35.84 MB / 398.5 MB, free: 13.35 MB / 394.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1-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="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="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.423e-06/1.423e-06, allocations: 0 / 399.8 MB, free: 12.07 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.246e-05/1.389e-05, allocations: 2.312 kB / 399.8 MB, free: 12.07 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.009638/0.009652, allocations: 12.8 MB / 412.6 MB, free: 15.21 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005842/0.01549, allocations: 4.041 MB / 416.6 MB, free: 11.16 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009463/0.01644, allocations: 114.9 kB / 416.7 MB, free: 11.05 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005643/0.017, allocations: 384.3 kB / 417.1 MB, free: 10.67 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001785/0.01879, allocations: 1.221 MB / 418.3 MB, free: 9.438 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.02026, allocations: 0.8023 MB / 419.1 MB, free: 8.633 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002174/0.02244, allocations: 3.016 MB / 422.2 MB, free: 5.602 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.02286, allocations: 335.2 kB / 422.5 MB, free: 5.23 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001698/0.02455, allocations: 1.804 MB / 424.3 MB, free: 3.402 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007102/0.02526, allocations: 0.7631 MB / 425.1 MB, free: 2.637 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.0254, allocations: 128 kB / 425.2 MB, free: 2.512 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005231/0.02592, allocations: 307.7 kB / 425.5 MB, free: 2.211 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.02612, allocations: 270.6 kB / 425.7 MB, free: 1.945 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004403/0.02656, allocations: 0.5494 MB / 426.3 MB, free: 1.395 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.21/0.2366, allocations: 1.672 MB / 428 MB, free: 8.098 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.333e-05/0.2366, allocations: 0 / 428 MB, free: 8.098 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2366, allocations: 1.281 kB / 428 MB, free: 8.098 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001139/0.2367, allocations: 0.7969 kB / 428 MB, free: 8.098 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: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.00372/0.2405, allocations: 2.904 MB / 430.9 MB, free: 6.875 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.2405, allocations: 9.812 kB / 430.9 MB, free: 6.875 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006557/0.2411, allocations: 303.5 kB / 431.2 MB, free: 6.855 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001849/0.243, allocations: 1.29 MB / 432.5 MB, free: 6.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.059e-05/0.2431, allocations: 94.19 kB / 432.6 MB, free: 6.336 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.2432, allocations: 125.7 kB / 432.7 MB, free: 6.332 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.2442, allocations: 0.9172 MB / 433.6 MB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.2442, allocations: 4.125 kB / 433.6 MB, free: 6.066 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.067e-05/0.2443, allocations: 55.12 kB / 433.7 MB, free: 6.062 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/0.2443, allocations: 29.97 kB / 433.7 MB, free: 6.062 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000623/0.2449, allocations: 418 kB / 434.1 MB, free: 6.031 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003111/0.248, allocations: 2.663 MB / 436.8 MB, free: 4.871 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.2487, allocations: 0.6422 MB / 437.4 MB, free: 4.844 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.249, allocations: 219.8 kB / 437.6 MB, free: 4.828 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/0.2503, allocations: 1.036 MB / 438.7 MB, free: 4.559 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.2503, allocations: 43.05 kB / 438.7 MB, free: 4.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 2.215e-06/0.2503, allocations: 3.297 kB / 438.7 MB, free: 4.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=97): time 0.001003/0.2513, allocations: 0.7968 MB / 439.5 MB, free: 4.434 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.249e-05/0.2513, allocations: 63.81 kB / 439.6 MB, free: 4.371 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006535/0.252, allocations: 1.21 MB / 440.8 MB, free: 4.207 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.252, allocations: 47.48 kB / 440.8 MB, free: 4.176 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.2522, allocations: 0.5616 MB / 441.4 MB, free: 3.902 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.2524, allocations: 353 kB / 441.7 MB, free: 3.672 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.2525, allocations: 176.9 kB / 441.9 MB, free: 3.648 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.079e-05/0.2526, allocations: 350 kB / 442.2 MB, free: 3.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.2527, allocations: 100.4 kB / 442.3 MB, free: 3.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.2529, allocations: 0.5483 MB / 442.9 MB, free: 2.832 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/0.2533, allocations: 476.9 kB / 443.3 MB, free: 2.664 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.2533, allocations: 2.188 kB / 443.3 MB, free: 2.664 MB / 410.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.0006559/0.2539, allocations: 0.6333 MB / 444 MB, free: 2.582 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.2539, allocations: 4.188 kB / 444 MB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.254, allocations: 7.5 kB / 444 MB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000379/0.2543, allocations: 180.8 kB / 444.2 MB, free: 2.559 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003718/0.2547, allocations: 217.2 kB / 444.4 MB, free: 2.559 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.2564, allocations: 3.823 MB / 448.2 MB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003607/0.2568, allocations: 91.14 kB / 448.3 MB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.2568, allocations: 30.33 kB / 448.3 MB, free: 15.12 MB / 426.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.0002054/0.257, allocations: 177 kB / 448.5 MB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.2571, allocations: 135.9 kB / 448.6 MB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000894/0.258, allocations: 1.112 MB / 449.7 MB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.258, allocations: 9.469 kB / 449.7 MB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.258, allocations: 3.531 kB / 449.8 MB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.258, allocations: 5.953 kB / 449.8 MB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001406/0.2594, allocations: 1.34 MB / 451.1 MB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2594, allocations: 0 / 451.1 MB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.2597, allocations: 168.6 kB / 451.3 MB, free: 14.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/0.2599, allocations: 203.3 kB / 451.5 MB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000343/0.2603, allocations: 184.8 kB / 451.6 MB, free: 13.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.2603, allocations: 29.17 kB / 451.7 MB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.2621, allocations: 3.811 MB / 455.5 MB, free: 9.852 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.2621, allocations: 4 kB / 455.5 MB, free: 9.848 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008106/0.2629, allocations: 0.842 MB / 456.3 MB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.263, allocations: 26.33 kB / 456.4 MB, free: 9.023 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.2632, allocations: 24.3 kB / 456.4 MB, free: 9.012 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.2634, allocations: 70.73 kB / 456.4 MB, free: 8.953 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.2634, allocations: 24.83 kB / 456.5 MB, free: 8.938 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004832/0.2639, allocations: 0.6689 MB / 457.1 MB, free: 8.355 MB / 426.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2639, allocations: 0 / 457.1 MB, free: 8.355 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006858/0.2646, allocations: 451.4 kB / 457.6 MB, free: 7.945 MB / 426.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.0002109/0.2648, allocations: 145.5 kB / 457.7 MB, free: 7.816 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007381/0.2655, allocations: 0.8179 MB / 458.5 MB, free: 7.035 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-05/0.2655, allocations: 31.64 kB / 458.6 MB, free: 7.008 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000424/0.266, allocations: 0.625 MB / 459.2 MB, free: 6.402 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.2675, allocations: 0.8412 MB / 460 MB, free: 5.727 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01816/0.2856, allocations: 2.964 MB / 463 MB, free: 2.863 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.2859, allocations: 307.1 kB / 463.3 MB, free: 2.543 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007804/0.2866, allocations: 281.6 kB / 463.6 MB, free: 2.277 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007916/0.2874, allocations: 0.4903 MB / 464.1 MB, free: 1.809 MB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/0.2874, allocations: 0 / 464.1 MB, free: 1.809 MB / 426.7 MB Notification: Performance of Templates: time 0.03441/0.3218, allocations: 29.02 MB / 493.1 MB, free: 5.965 MB / 458.7 MB " [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 -ignoreHideResult -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.052167200483382]