Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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.001035/0.001035, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00152/0.002556, allocations: 440 kB / 10.41 MB, free: 284 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.001043/0.001043, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001379/0.002422, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.9324/0.9324, allocations: 177.2 MB / 189.7 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08981/1.022, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo): time 0.6954/0.6954, allocations: 118.7 MB / 362.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05456/0.7499, allocations: 35.84 MB / 398.7 MB, free: 13.11 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/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.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 400 MB, free: 11.81 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.995e-05/2.165e-05, allocations: 4.984 kB / 400 MB, free: 11.81 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.2922/0.2922, allocations: 130.6 MB / 0.5182 GB, free: 1.305 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.2948, allocations: 1.803 MB / 0.5199 GB, free: 15.51 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002799/0.295, allocations: 23.75 kB / 0.5199 GB, free: 15.48 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.2954, allocations: 127 kB / 0.5201 GB, free: 15.36 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.0009453/0.2963, allocations: 422 kB / 0.5205 GB, free: 14.95 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.2969, allocations: 267 kB / 0.5207 GB, free: 14.69 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.0007326/0.2976, allocations: 0.8174 MB / 0.5215 GB, free: 13.87 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.2978, allocations: 86.52 kB / 0.5216 GB, free: 13.77 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006927/0.2984, allocations: 0.4954 MB / 0.5221 GB, free: 13.28 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003926/0.2988, allocations: 307.2 kB / 0.5224 GB, free: 12.98 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.2989, allocations: 36 kB / 0.5224 GB, free: 12.95 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004412/0.2993, allocations: 267.6 kB / 0.5227 GB, free: 12.68 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.2994, allocations: 79.55 kB / 0.5227 GB, free: 12.61 MB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.2996, allocations: 147.7 kB / 0.5229 GB, free: 12.46 MB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.0006185/0.3002, allocations: 0.4904 MB / 0.5234 GB, free: 11.97 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 1.122e-05/0.3002, allocations: 0 / 0.5234 GB, free: 11.97 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3002, allocations: 0 / 0.5234 GB, free: 11.97 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 1.236e-05/0.3002, allocations: 0 / 0.5234 GB, free: 11.97 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001191/0.3014, allocations: 0.9455 MB / 0.5243 GB, free: 10.98 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.3014, allocations: 16.03 kB / 0.5243 GB, free: 10.96 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.3016, allocations: 72.81 kB / 0.5244 GB, free: 10.89 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004644/0.302, allocations: 347.7 kB / 0.5247 GB, free: 10.52 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.3021, allocations: 25.38 kB / 0.5247 GB, free: 10.5 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.3021, allocations: 32.38 kB / 0.5248 GB, free: 10.47 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.3025, allocations: 316 kB / 0.5251 GB, free: 10.13 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.3025, allocations: 192 / 0.5251 GB, free: 10.13 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.527e-05/0.3025, allocations: 16.38 kB / 0.5251 GB, free: 10.11 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.3026, allocations: 11.94 kB / 0.5251 GB, free: 10.1 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.3027, allocations: 131.2 kB / 0.5252 GB, free: 9.973 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.3039, allocations: 0.9839 MB / 0.5262 GB, free: 8.957 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000338/0.3043, allocations: 203.4 kB / 0.5264 GB, free: 8.754 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.645e-05/0.3043, allocations: 80.81 kB / 0.5264 GB, free: 8.672 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00087/0.3052, allocations: 0.5286 MB / 0.527 GB, free: 8.133 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.3054, allocations: 142.1 kB / 0.5271 GB, free: 7.984 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=37): time 1.803e-06/0.3054, allocations: 0 / 0.5271 GB, free: 7.984 MB / 0.4949 GB Notification: Performance of matching and sorting (n=37): time 0.0007632/0.3062, allocations: 294.6 kB / 0.5274 GB, free: 7.688 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.3062, allocations: 55.41 kB / 0.5274 GB, free: 7.621 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/0.3064, allocations: 323.3 kB / 0.5277 GB, free: 7.297 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.3065, allocations: 29.7 kB / 0.5278 GB, free: 7.262 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.3066, allocations: 193.4 kB / 0.5279 GB, free: 7.066 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 8.11e-05/0.3066, allocations: 134.8 kB / 0.5281 GB, free: 6.934 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.623e-05/0.3067, allocations: 74.03 kB / 0.5281 GB, free: 6.852 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 9.719e-05/0.3068, allocations: 358.7 kB / 0.5285 GB, free: 6.492 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.704e-05/0.3069, allocations: 66.42 kB / 0.5286 GB, free: 6.422 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.307, allocations: 128.6 kB / 0.5287 GB, free: 6.273 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.3072, allocations: 203.3 kB / 0.5289 GB, free: 6.051 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3072, allocations: 0 / 0.5289 GB, free: 6.051 MB / 0.4949 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003732/0.3076, allocations: 294.5 kB / 0.5292 GB, free: 5.742 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.3077, allocations: 41.69 kB / 0.5292 GB, free: 5.695 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3077, allocations: 0 / 0.5292 GB, free: 5.695 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.3078, allocations: 32.83 kB / 0.5292 GB, free: 5.66 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.308, allocations: 84.05 kB / 0.5293 GB, free: 5.578 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007506/0.3088, allocations: 1.25 MB / 0.5305 GB, free: 4.242 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001501/0.3089, allocations: 39.7 kB / 0.5306 GB, free: 4.203 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/0.309, allocations: 12 kB / 0.5306 GB, free: 4.191 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.3091, allocations: 132.6 kB / 0.5307 GB, free: 4.051 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.037e-05/0.3092, allocations: 51.92 kB / 0.5307 GB, free: 4 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004691/0.3096, allocations: 341.4 kB / 0.5311 GB, free: 3.664 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3096, allocations: 4 kB / 0.5311 GB, free: 3.66 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.3096, allocations: 4 kB / 0.5311 GB, free: 3.656 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.3096, allocations: 3.984 kB / 0.5311 GB, free: 3.652 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006704/0.3103, allocations: 0.5468 MB / 0.5316 GB, free: 3.074 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3103, allocations: 0 / 0.5316 GB, free: 3.074 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.3105, allocations: 67.91 kB / 0.5317 GB, free: 3.008 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 8.938e-05/0.3106, allocations: 60.31 kB / 0.5317 GB, free: 2.949 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/0.3107, allocations: 48.86 kB / 0.5318 GB, free: 2.898 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.3107, allocations: 12 kB / 0.5318 GB, free: 2.887 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006607/0.3114, allocations: 1.23 MB / 0.533 GB, free: 1.566 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.3114, allocations: 5.188 kB / 0.533 GB, free: 1.562 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.3118, allocations: 383.7 kB / 0.5334 GB, free: 1.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.3119, allocations: 15.92 kB / 0.5334 GB, free: 1.145 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.312, allocations: 12 kB / 0.5334 GB, free: 1.133 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.87e-05/0.3121, allocations: 39.94 kB / 0.5334 GB, free: 1.094 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.005e-05/0.3121, allocations: 15.98 kB / 0.5335 GB, free: 1.078 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0001137/0.3122, allocations: 132.7 kB / 0.5336 GB, free: 0.9531 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.1e-08/0.3122, allocations: 0 / 0.5336 GB, free: 0.9531 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0004001/0.3126, allocations: 163.6 kB / 0.5337 GB, free: 0.793 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002273/0.3128, allocations: 156.3 kB / 0.5339 GB, free: 0.6328 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.0005577/0.3134, allocations: 387 kB / 0.5343 GB, free: 228 kB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.652e-05/0.3134, allocations: 11.94 kB / 0.5343 GB, free: 216 kB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0002596/0.3137, allocations: 252 kB / 0.5345 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008843/0.3145, allocations: 1.025 MB / 0.5355 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007628/0.3222, allocations: 0.8066 MB / 0.5363 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.637e-05/0.3223, allocations: 114.4 kB / 0.5364 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002432/0.3225, allocations: 87.56 kB / 0.5365 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.3228, allocations: 169.3 kB / 0.5366 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of SimCode: time 9.32e-07/0.3228, allocations: 0 / 0.5366 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of Templates: time 0.01323/0.336, allocations: 9.272 MB / 0.5457 GB, free: 4.52 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6812401162460446]