Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.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.00106/0.00106, allocations: 85.17 kB / 19.87 MB, free: 4.617 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.00185/0.00185, allocations: 169 kB / 23.27 MB, free: 1.227 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.9645/0.9645, allocations: 177.1 MB / 203.7 MB, free: 5.504 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.7037/0.7037, allocations: 118.6 MB / 378.9 MB, free: 1.402 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.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 484.1 MB, free: 8.098 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.554e-05/3.773e-05, allocations: 3.578 kB / 484.1 MB, free: 8.094 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType): time 0.01308/0.01311, allocations: 13.31 MB / 497.4 MB, free: 15 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.007288/0.0204, allocations: 4.278 MB / 0.4899 GB, free: 12.06 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002023/0.02243, allocations: 77.22 kB / 0.49 GB, free: 12.02 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.02395, allocations: 0.7118 MB / 0.4907 GB, free: 11.77 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00382/0.02777, allocations: 1.587 MB / 0.4922 GB, free: 10.77 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002158/0.02993, allocations: 0.7928 MB / 0.493 GB, free: 10.34 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004301/0.03423, allocations: 3.185 MB / 0.4961 GB, free: 7.941 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005609/0.03479, allocations: 276.3 kB / 0.4964 GB, free: 7.668 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004283/0.03907, allocations: 1.969 MB / 0.4983 GB, free: 6.133 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001304/0.04038, allocations: 0.9442 MB / 0.4992 GB, free: 5.293 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002933/0.04067, allocations: 136 kB / 0.4993 GB, free: 5.16 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008519/0.04152, allocations: 323.6 kB / 0.4996 GB, free: 4.844 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003217/0.04184, allocations: 458 kB / 0.5001 GB, free: 4.395 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008491/0.04269, allocations: 0.6701 MB / 0.5007 GB, free: 3.723 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002525/0.04522, allocations: 1.805 MB / 0.5025 GB, free: 1.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.04523, allocations: 3.984 kB / 0.5025 GB, free: 1.906 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.04523, allocations: 0 / 0.5025 GB, free: 1.906 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.315e-05/0.04528, allocations: 0 / 0.5025 GB, free: 1.906 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: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.003469/0.04875, allocations: 2.574 MB / 0.505 GB, free: 15.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.04879, allocations: 12.03 kB / 0.505 GB, free: 15.26 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007338/0.04952, allocations: 419 kB / 0.5054 GB, free: 14.85 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001717/0.05124, allocations: 1.296 MB / 0.5067 GB, free: 13.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.115e-05/0.05131, allocations: 103 kB / 0.5068 GB, free: 13.41 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.05146, allocations: 136.3 kB / 0.5069 GB, free: 13.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.05278, allocations: 1.008 MB / 0.5079 GB, free: 12.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.529e-05/0.05281, allocations: 4 kB / 0.5079 GB, free: 12.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.536e-05/0.05288, allocations: 48 kB / 0.508 GB, free: 12.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.05291, allocations: 32 kB / 0.508 GB, free: 12.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008919/0.0538, allocations: 0.5676 MB / 0.5085 GB, free: 11.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004622/0.05842, allocations: 3.481 MB / 0.5119 GB, free: 8.004 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.05954, allocations: 0.8409 MB / 0.5128 GB, free: 7.156 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004063/0.05995, allocations: 333.2 kB / 0.5131 GB, free: 6.828 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002899/0.06284, allocations: 1.854 MB / 0.5149 GB, free: 5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006867/0.06353, allocations: 0.5546 MB / 0.5154 GB, free: 4.406 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 3.176e-06/0.06353, allocations: 0 / 0.5154 GB, free: 4.406 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.00204/0.06557, allocations: 1.258 MB / 0.5167 GB, free: 3.137 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.06563, allocations: 120.1 kB / 0.5168 GB, free: 2.996 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.06679, allocations: 1.223 MB / 0.518 GB, free: 1.75 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.745e-05/0.06686, allocations: 49.7 kB / 0.518 GB, free: 1.695 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005731/0.06743, allocations: 0.8045 MB / 0.5188 GB, free: 0.875 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003404/0.06777, allocations: 0.4956 MB / 0.5193 GB, free: 384 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003036/0.06807, allocations: 264.3 kB / 0.5195 GB, free: 108 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.06825, allocations: 0.5315 MB / 0.5201 GB, free: 15.57 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.06856, allocations: 212.2 kB / 0.5203 GB, free: 15.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006906/0.06926, allocations: 0.6167 MB / 0.5209 GB, free: 14.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000852/0.07011, allocations: 0.6941 MB / 0.5215 GB, free: 13.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.07011, allocations: 0 / 0.5215 GB, free: 13.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.001446/0.07156, allocations: 1.077 MB / 0.5226 GB, free: 12.74 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.0716, allocations: 40.5 kB / 0.5226 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.07161, allocations: 7.938 kB / 0.5226 GB, free: 12.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000328/0.07194, allocations: 107.3 kB / 0.5227 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006545/0.0726, allocations: 271.6 kB / 0.523 GB, free: 12.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.07475, allocations: 3.689 MB / 0.5266 GB, free: 8.387 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006288/0.07538, allocations: 122.5 kB / 0.5267 GB, free: 8.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.349e-05/0.07547, allocations: 47.97 kB / 0.5268 GB, free: 8.223 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.00036/0.07583, allocations: 232.3 kB / 0.527 GB, free: 7.984 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002457/0.07607, allocations: 226.8 kB / 0.5272 GB, free: 7.762 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002268/0.07834, allocations: 1.56 MB / 0.5287 GB, free: 6.184 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.07835, allocations: 16 kB / 0.5287 GB, free: 6.168 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.07836, allocations: 0 / 0.5287 GB, free: 6.168 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.07837, allocations: 7.969 kB / 0.5287 GB, free: 6.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003023/0.08139, allocations: 2.138 MB / 0.5308 GB, free: 3.957 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.0814, allocations: 0 / 0.5308 GB, free: 3.957 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005781/0.08198, allocations: 235.7 kB / 0.5311 GB, free: 3.727 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002812/0.08226, allocations: 111.4 kB / 0.5312 GB, free: 3.609 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.492e-05/0.08233, allocations: 47.97 kB / 0.5312 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002044/0.08438, allocations: 3.685 MB / 0.5348 GB, free: 15.65 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.08438, allocations: 7.938 kB / 0.5348 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.08616, allocations: 1.411 MB / 0.5362 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005284/0.08669, allocations: 360.2 kB / 0.5365 GB, free: 13.83 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.08681, allocations: 35.88 kB / 0.5366 GB, free: 13.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000388/0.0872, allocations: 35.98 kB / 0.5366 GB, free: 13.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.08737, allocations: 117 kB / 0.5367 GB, free: 13.65 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.558e-05/0.08743, allocations: 44.02 kB / 0.5368 GB, free: 13.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006036/0.08803, allocations: 0.7001 MB / 0.5374 GB, free: 12.91 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08803, allocations: 0 / 0.5374 GB, free: 12.91 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001031/0.08907, allocations: 495.2 kB / 0.5379 GB, free: 12.43 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.rear.m_flow,flowResistance2.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 (137): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0009562/0.09002, allocations: 412.5 kB / 0.5383 GB, free: 12.13 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.09134, allocations: 1.143 MB / 0.5394 GB, free: 10.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.09134, allocations: 0 / 0.5394 GB, free: 10.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007254/0.09207, allocations: 0.7705 MB / 0.5402 GB, free: 10.12 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.09426, allocations: 0.6403 MB / 0.5408 GB, free: 9.496 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004956/0.09922, allocations: 3.042 MB / 0.5438 GB, free: 6.391 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000263/0.09948, allocations: 304.1 kB / 0.5441 GB, free: 6.066 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009084/0.1004, allocations: 345.4 kB / 0.5444 GB, free: 5.742 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/0.1014, allocations: 0.5877 MB / 0.545 GB, free: 5.152 MB / 474.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1014, allocations: 3.938 kB / 0.545 GB, free: 5.148 MB / 474.7 MB Notification: Performance of Templates: time 0.03434/0.1358, allocations: 28.41 MB / 0.5727 GB, free: 9.27 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.SpecificValveType_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.287276030052453]