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.00156/0.00156, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001703/0.001703, allocations: 220.1 kB / 22.99 MB, free: 4.914 MB / 14.72 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 1.43/1.43, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7838/0.7838, allocations: 100.9 MB / 414.1 MB, free: 2.902 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 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="Time|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="Time|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: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00254/0.00254, allocations: 86.3 kB / 0.5653 GB, free: 35.49 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1241, allocations: 74.62 MB / 0.6382 GB, free: 6.121 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4961/0.6201, allocations: 150.9 MB / 0.7855 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01144/0.6316, allocations: 10.06 MB / 0.7954 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.6333, allocations: 68.95 kB / 0.7954 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002144/0.6354, allocations: 0.7142 MB / 0.7961 GB, free: 2.848 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004485/0.6399, allocations: 1.686 MB / 0.7978 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002912/0.6428, allocations: 1.13 MB / 0.7989 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002878/0.6457, allocations: 2.549 MB / 0.8014 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004774/0.6462, allocations: 283.7 kB / 0.8016 GB, free: 2.668 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001888/0.6481, allocations: 1.08 MB / 0.8027 GB, free: 2.641 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001843/0.6499, allocations: 1.307 MB / 0.804 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001831/0.6501, allocations: 143.9 kB / 0.8041 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003598/0.6537, allocations: 1.677 MB / 0.8058 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003769/0.6541, allocations: 367.5 kB / 0.8061 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008428/0.6549, allocations: 0.6678 MB / 0.8068 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003875/0.6588, allocations: 2.59 MB / 0.8093 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.6588, allocations: 1 kB / 0.8093 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6588, allocations: 0 / 0.8093 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.068e-05/0.6588, allocations: 1.031 kB / 0.8093 GB, free: 1.293 MB / 0.5762 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.003441/0.6623, allocations: 1.999 MB / 0.8112 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.6623, allocations: 10.62 kB / 0.8112 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003549/0.6627, allocations: 191.2 kB / 0.8114 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.6641, allocations: 0.9014 MB / 0.8123 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.635e-05/0.6642, allocations: 90.78 kB / 0.8124 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.6644, allocations: 125.9 kB / 0.8125 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.6667, allocations: 1.554 MB / 0.814 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.6667, allocations: 0.9688 kB / 0.814 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.6668, allocations: 49.23 kB / 0.8141 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.6668, allocations: 32.69 kB / 0.8141 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002525/0.6694, allocations: 1.701 MB / 0.8158 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005588/0.6749, allocations: 3.518 MB / 0.8192 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002176/0.6771, allocations: 1.191 MB / 0.8204 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009914/0.6781, allocations: 0.6365 MB / 0.821 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00397/0.6821, allocations: 2.06 MB / 0.823 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.6833, allocations: 0.7409 MB / 0.8237 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.326e-06/0.6833, allocations: 0.9688 kB / 0.8237 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.007455/0.6908, allocations: 3.78 MB / 0.8274 GB, free: 8.371 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.6908, allocations: 69.78 kB / 0.8275 GB, free: 8.305 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007577/0.6916, allocations: 0.6582 MB / 0.8281 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 8.401e-05/0.6917, allocations: 51.95 kB / 0.8282 GB, free: 7.879 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.6922, allocations: 0.547 MB / 0.8287 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003706/0.6925, allocations: 461.4 kB / 0.8292 GB, free: 7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003272/0.6929, allocations: 207.9 kB / 0.8294 GB, free: 6.883 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001701/0.693, allocations: 354.2 kB / 0.8297 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009/0.6939, allocations: 0.5399 MB / 0.8302 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.695, allocations: 0.6569 MB / 0.8309 GB, free: 5.859 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00204/0.697, allocations: 1.257 MB / 0.8321 GB, free: 5.16 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.697, allocations: 0.9062 kB / 0.8321 GB, free: 5.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002951/0.7, allocations: 1.633 MB / 0.8337 GB, free: 4.305 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.993e-05/0.7, allocations: 35.3 kB / 0.8337 GB, free: 4.273 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.7, allocations: 0 / 0.8337 GB, free: 4.273 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004838/0.7005, allocations: 161.8 kB / 0.8339 GB, free: 4.199 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009053/0.7014, allocations: 245 kB / 0.8341 GB, free: 4.148 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003908/0.7053, allocations: 2.562 MB / 0.8366 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006026/0.7059, allocations: 47.25 kB / 0.8367 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.706, allocations: 57.75 kB / 0.8367 GB, free: 2.039 MB / 0.5919 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.000484/0.7065, allocations: 294.2 kB / 0.837 GB, free: 1.82 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002805/0.7068, allocations: 118.9 kB / 0.8371 GB, free: 1.762 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/0.7108, allocations: 2.314 MB / 0.8394 GB, free: 468 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.7108, allocations: 14.88 kB / 0.8394 GB, free: 468 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.7108, allocations: 6.641 kB / 0.8394 GB, free: 464 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/0.7108, allocations: 4.766 kB / 0.8394 GB, free: 460 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005358/0.7161, allocations: 3.063 MB / 0.8424 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.7162, allocations: 2.219 kB / 0.8424 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009506/0.7171, allocations: 265.5 kB / 0.8426 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004047/0.7175, allocations: 142.4 kB / 0.8428 GB, free: 14.34 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.68e-05/0.7176, allocations: 51.97 kB / 0.8428 GB, free: 14.29 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002735/0.7203, allocations: 2.289 MB / 0.8451 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/0.7203, allocations: 4.719 kB / 0.8451 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00463/0.725, allocations: 2.61 MB / 0.8476 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002327/0.7252, allocations: 103.2 kB / 0.8477 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001522/0.7254, allocations: 44.73 kB / 0.8477 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005462/0.7259, allocations: 44.94 kB / 0.8478 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.7261, allocations: 117.1 kB / 0.8479 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001148/0.7262, allocations: 55.97 kB / 0.848 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006113/0.7269, allocations: 483.9 kB / 0.8484 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7269, allocations: 3.938 kB / 0.8484 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00142/0.7283, allocations: 0.5119 MB / 0.8489 GB, free: 7.941 MB / 0.6075 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 (141): * Single equations (assignments): 138 * 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.0009148/0.7292, allocations: 0.5692 MB / 0.8495 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002884/0.7321, allocations: 1.588 MB / 0.851 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.7321, allocations: 2.625 kB / 0.851 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.7337, allocations: 0.9322 MB / 0.8519 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/0.7352, allocations: 344.7 kB / 0.8523 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004872/0.7401, allocations: 2.693 MB / 0.8549 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006901/0.7408, allocations: 0.596 MB / 0.8555 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/0.7412, allocations: 163.3 kB / 0.8556 GB, free: 1.102 MB / 0.6075 GB Notification: Performance of SimCode: time 6.12e-07/0.7412, allocations: 0 / 0.8556 GB, free: 1.102 MB / 0.6075 GB Notification: Performance of Templates: time 0.04388/0.7851, allocations: 30.32 MB / 0.8852 GB, free: 2.883 MB / 0.6387 GB " [Timeout remaining time 659] 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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.264521590899676]