Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.001115/0.001115, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00147/0.002585, 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.001133/0.001133, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001585/0.002718, 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.9369/0.9369, allocations: 177.2 MB / 189.6 MB, free: 5.297 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.091/1.028, allocations: 53.65 MB / 243.2 MB, free: 15.57 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.7083/0.7083, allocations: 118.7 MB / 362.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05752/0.7658, allocations: 35.85 MB / 398.5 MB, free: 13.34 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.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 7.72e-07/7.72e-07, allocations: 0 / 399.8 MB, free: 12.06 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.977e-05/2.054e-05, allocations: 2.312 kB / 399.8 MB, free: 12.06 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3114/0.3114, allocations: 135.8 MB / 0.5231 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.005631/0.317, allocations: 3.785 MB / 0.5268 GB, free: 8.641 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008797/0.3179, allocations: 71.38 kB / 0.5268 GB, free: 8.57 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006512/0.3186, allocations: 365 kB / 0.5272 GB, free: 8.211 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001854/0.3204, allocations: 1.215 MB / 0.5284 GB, free: 6.988 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.3217, allocations: 0.6895 MB / 0.529 GB, free: 6.297 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.002537/0.3243, allocations: 2.808 MB / 0.5318 GB, free: 3.48 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004584/0.3247, allocations: 310.2 kB / 0.5321 GB, free: 3.137 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.3266, allocations: 1.52 MB / 0.5336 GB, free: 1.613 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001278/0.3278, allocations: 1.239 MB / 0.5348 GB, free: 380 kB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.328, allocations: 140 kB / 0.5349 GB, free: 240 kB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008389/0.3289, allocations: 0.5345 MB / 0.5354 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.3291, allocations: 286.9 kB / 0.5357 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.3295, allocations: 0.5108 MB / 0.5362 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.3308, allocations: 1.522 MB / 0.5377 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.489e-05/0.3308, allocations: 4 kB / 0.5377 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3308, allocations: 0 / 0.5377 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.13e-05/0.3308, allocations: 0 / 0.5377 GB, free: 13.38 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002115/0.3329, allocations: 2.332 MB / 0.54 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.333, allocations: 12.03 kB / 0.54 GB, free: 10.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.3332, allocations: 248.5 kB / 0.5402 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008856/0.3341, allocations: 0.8327 MB / 0.541 GB, free: 9.863 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.82e-05/0.3342, allocations: 94.78 kB / 0.5411 GB, free: 9.77 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.3343, allocations: 124.3 kB / 0.5412 GB, free: 9.648 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008701/0.3352, allocations: 0.9325 MB / 0.5421 GB, free: 8.672 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.3352, allocations: 3.938 kB / 0.5422 GB, free: 8.668 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.3352, allocations: 47.94 kB / 0.5422 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.3352, allocations: 32 kB / 0.5422 GB, free: 8.59 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005929/0.3358, allocations: 499.6 kB / 0.5427 GB, free: 8.09 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/0.3387, allocations: 2.535 MB / 0.5452 GB, free: 5.516 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008124/0.3395, allocations: 0.7455 MB / 0.5459 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/0.3397, allocations: 264.5 kB / 0.5462 GB, free: 4.504 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001722/0.3414, allocations: 1.406 MB / 0.5475 GB, free: 3.082 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.3419, allocations: 433.2 kB / 0.5479 GB, free: 2.645 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=128): time 2.875e-06/0.3419, allocations: 4 kB / 0.5479 GB, free: 2.641 MB / 0.5105 GB Notification: Performance of matching and sorting (n=129): time 0.002242/0.3441, allocations: 1.747 MB / 0.5497 GB, free: 0.8633 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.3442, allocations: 72.7 kB / 0.5497 GB, free: 0.7812 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003519/0.3445, allocations: 0.6247 MB / 0.5503 GB, free: 148 kB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.602e-05/0.3446, allocations: 53.7 kB / 0.5504 GB, free: 88 kB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.3448, allocations: 427.2 kB / 0.5508 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.345, allocations: 471.9 kB / 0.5512 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.3452, allocations: 182.9 kB / 0.5514 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.504e-05/0.3453, allocations: 361.8 kB / 0.5518 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.3455, allocations: 187.1 kB / 0.5519 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.3457, allocations: 297.9 kB / 0.5522 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000566/0.3463, allocations: 0.5772 MB / 0.5528 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3463, allocations: 4 kB / 0.5528 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0008806/0.3472, allocations: 0.7755 MB / 0.5536 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.3472, allocations: 33.89 kB / 0.5536 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3472, allocations: 4 kB / 0.5536 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002861/0.3475, allocations: 115.6 kB / 0.5537 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005346/0.348, allocations: 279.6 kB / 0.554 GB, free: 12.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.3497, allocations: 1.902 MB / 0.5558 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.3499, allocations: 35.98 kB / 0.5559 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.35, allocations: 39.91 kB / 0.5559 GB, free: 10.23 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001945/0.3502, allocations: 172.5 kB / 0.5561 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.3503, allocations: 143.7 kB / 0.5562 GB, free: 9.91 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.3517, allocations: 1.369 MB / 0.5575 GB, free: 8.555 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.3517, allocations: 12 kB / 0.5575 GB, free: 8.543 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3517, allocations: 4 kB / 0.5575 GB, free: 8.539 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.3518, allocations: 11.91 kB / 0.5576 GB, free: 8.527 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001875/0.3536, allocations: 1.629 MB / 0.5591 GB, free: 6.855 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3536, allocations: 0 / 0.5591 GB, free: 6.855 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004823/0.3541, allocations: 259.7 kB / 0.5594 GB, free: 6.602 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.3543, allocations: 195.1 kB / 0.5596 GB, free: 6.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002364/0.3546, allocations: 121.2 kB / 0.5597 GB, free: 6.289 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.87e-05/0.3546, allocations: 39.97 kB / 0.5597 GB, free: 6.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.3557, allocations: 1.778 MB / 0.5615 GB, free: 4.379 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3557, allocations: 4.562 kB / 0.5615 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.3569, allocations: 1.18 MB / 0.5626 GB, free: 3.156 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.885e-05/0.357, allocations: 24 kB / 0.5627 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.3572, allocations: 35.98 kB / 0.5627 GB, free: 3.098 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.3573, allocations: 97.11 kB / 0.5628 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.926e-05/0.3574, allocations: 35.97 kB / 0.5628 GB, free: 2.969 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002035/0.3576, allocations: 328.7 kB / 0.5631 GB, free: 2.633 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.3576, allocations: 0 / 0.5631 GB, free: 2.633 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006799/0.3583, allocations: 455.5 kB / 0.5636 GB, free: 2.188 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.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 (129): * Single equations (assignments): 126 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003116/0.3586, allocations: 243.8 kB / 0.5638 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0008703/0.3594, allocations: 0.8943 MB / 0.5647 GB, free: 1.012 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.11e-05/0.3595, allocations: 17.03 kB / 0.5647 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000521/0.36, allocations: 0.5791 MB / 0.5652 GB, free: 408 kB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.3613, allocations: 0.6246 MB / 0.5659 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01696/0.3782, allocations: 2.44 MB / 0.5682 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002057/0.3784, allocations: 265.8 kB / 0.5685 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0008379/0.3793, allocations: 280.3 kB / 0.5688 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007124/0.38, allocations: 415 kB / 0.5692 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of SimCode: time 1.964e-06/0.38, allocations: 0 / 0.5692 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of Templates: time 0.02997/0.41, allocations: 27.59 MB / 0.5961 GB, free: 1.199 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_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.208191496320069]