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.001566/0.001566, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001689/0.001689, allocations: 216.1 kB / 23.01 MB, free: 4.609 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.377/1.377, allocations: 230.6 MB / 256.8 MB, free: 8.043 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.7426/0.7426, allocations: 100.3 MB / 413.5 MB, free: 3.742 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.002409/0.002409, allocations: 85.91 kB / 0.5645 GB, free: 35.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1139, allocations: 74.47 MB / 0.6372 GB, free: 7.168 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4585/0.5724, allocations: 174.4 MB / 0.8075 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01134/0.5837, allocations: 11.06 MB / 0.8183 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.5854, allocations: 65.94 kB / 0.8184 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002364/0.5878, allocations: 0.8013 MB / 0.8191 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004769/0.5925, allocations: 1.706 MB / 0.8208 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003261/0.5958, allocations: 1.144 MB / 0.8219 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003546/0.5993, allocations: 2.559 MB / 0.8244 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007218/0.6001, allocations: 289.7 kB / 0.8247 GB, free: 8.938 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.6021, allocations: 1.083 MB / 0.8258 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002172/0.6043, allocations: 1.378 MB / 0.8271 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0003693/0.6047, allocations: 144.6 kB / 0.8272 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004436/0.6091, allocations: 1.995 MB / 0.8292 GB, free: 7.023 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000523/0.6096, allocations: 367.4 kB / 0.8295 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001396/0.611, allocations: 0.808 MB / 0.8303 GB, free: 6.215 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005176/0.6162, allocations: 2.616 MB / 0.8329 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.6162, allocations: 4 kB / 0.8329 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.142e-06/0.6162, allocations: 0 / 0.8329 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.691e-05/0.6163, allocations: 0 / 0.8329 GB, free: 4.664 MB / 0.5919 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.004508/0.6208, allocations: 2.01 MB / 0.8348 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.6208, allocations: 9.844 kB / 0.8349 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003433/0.6212, allocations: 175.8 kB / 0.835 GB, free: 3.16 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/0.6228, allocations: 0.8966 MB / 0.8359 GB, free: 2.488 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.499e-05/0.6228, allocations: 95.14 kB / 0.836 GB, free: 2.441 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.623, allocations: 123.1 kB / 0.8361 GB, free: 2.398 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002336/0.6253, allocations: 1.552 MB / 0.8376 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.6254, allocations: 0 / 0.8376 GB, free: 1.477 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.679e-05/0.6255, allocations: 46.38 kB / 0.8377 GB, free: 1.441 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.6255, allocations: 34.83 kB / 0.8377 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002529/0.628, allocations: 1.71 MB / 0.8394 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007892/0.6359, allocations: 6.204 MB / 0.8454 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.6382, allocations: 1.185 MB / 0.8466 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.6392, allocations: 0.6427 MB / 0.8472 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004236/0.6434, allocations: 2.27 MB / 0.8494 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001243/0.6447, allocations: 0.7387 MB / 0.8501 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=128): time 2.936e-06/0.6447, allocations: 0 / 0.8501 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=129): time 0.007523/0.6522, allocations: 3.789 MB / 0.8538 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.6522, allocations: 68.72 kB / 0.8539 GB, free: 4.941 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009855/0.6532, allocations: 0.7166 MB / 0.8546 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.725e-05/0.6533, allocations: 45.7 kB / 0.8547 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004726/0.6538, allocations: 0.5358 MB / 0.8552 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004187/0.6542, allocations: 457.5 kB / 0.8556 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003428/0.6545, allocations: 198.9 kB / 0.8558 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6547, allocations: 353.9 kB / 0.8561 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009808/0.6557, allocations: 0.514 MB / 0.8566 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.6568, allocations: 0.6329 MB / 0.8573 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002219/0.659, allocations: 1.251 MB / 0.8585 GB, free: 192 kB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.659, allocations: 0 / 0.8585 GB, free: 192 kB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003157/0.6622, allocations: 1.605 MB / 0.8601 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.498e-05/0.6622, allocations: 40.03 kB / 0.8601 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.6622, allocations: 3.938 kB / 0.8601 GB, free: 14.52 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005134/0.6628, allocations: 156.8 kB / 0.8602 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009106/0.6637, allocations: 247.7 kB / 0.8605 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004159/0.6678, allocations: 2.613 MB / 0.863 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007726/0.6686, allocations: 51.94 kB / 0.8631 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001748/0.6688, allocations: 60.84 kB / 0.8631 GB, free: 11.29 MB / 0.6231 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.000593/0.6694, allocations: 289.6 kB / 0.8634 GB, free: 11 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003123/0.6697, allocations: 123.2 kB / 0.8635 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004455/0.6741, allocations: 2.317 MB / 0.8658 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/0.6741, allocations: 19.94 kB / 0.8658 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.6742, allocations: 0 / 0.8658 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.6742, allocations: 15.84 kB / 0.8658 GB, free: 8.547 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006087/0.6803, allocations: 3.394 MB / 0.8691 GB, free: 5.117 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.6803, allocations: 0 / 0.8691 GB, free: 5.117 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009506/0.6812, allocations: 263.7 kB / 0.8694 GB, free: 4.859 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004284/0.6816, allocations: 148.8 kB / 0.8695 GB, free: 4.711 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.6817, allocations: 43.98 kB / 0.8696 GB, free: 4.668 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00288/0.6846, allocations: 2.341 MB / 0.8719 GB, free: 2.219 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.6846, allocations: 4 kB / 0.8719 GB, free: 2.215 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004733/0.6894, allocations: 2.61 MB / 0.8744 GB, free: 15.57 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003194/0.6897, allocations: 115.1 kB / 0.8745 GB, free: 15.46 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.6899, allocations: 31.98 kB / 0.8746 GB, free: 15.43 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006435/0.6905, allocations: 47.97 kB / 0.8746 GB, free: 15.38 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.6908, allocations: 121.1 kB / 0.8747 GB, free: 15.26 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.6909, allocations: 47.98 kB / 0.8748 GB, free: 15.21 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.0007717/0.6917, allocations: 0.5273 MB / 0.8753 GB, free: 14.67 MB / 0.6388 GB Notification: Performance of sort global known variables: time 8e-08/0.6917, allocations: 0 / 0.8753 GB, free: 14.67 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.001619/0.6933, allocations: 0.5149 MB / 0.8758 GB, free: 14.16 MB / 0.6388 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.00106/0.6943, allocations: 0.5721 MB / 0.8763 GB, free: 13.62 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.003126/0.6975, allocations: 1.559 MB / 0.8779 GB, free: 12.04 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6975, allocations: 0 / 0.8779 GB, free: 12.04 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.6992, allocations: 0.9357 MB / 0.8788 GB, free: 11.09 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.7011, allocations: 391.1 kB / 0.8792 GB, free: 10.72 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/0.7063, allocations: 2.695 MB / 0.8818 GB, free: 7.977 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009693/0.7073, allocations: 1.187 MB / 0.8829 GB, free: 6.762 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000596/0.7079, allocations: 167.4 kB / 0.8831 GB, free: 6.602 MB / 0.6388 GB Notification: Performance of SimCode: time 8.81e-07/0.7079, allocations: 0 / 0.8831 GB, free: 6.602 MB / 0.6388 GB Notification: Performance of Templates: time 0.04298/0.7508, allocations: 30.27 MB / 0.9127 GB, free: 8.41 MB / 0.67 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.230876701883972]