Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001459/0.001459, allocations: 77.78 kB / 19.76 MB, free: 2.031 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.001627/0.001627, allocations: 161.8 kB / 23.02 MB, free: 4.945 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.448/1.448, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7373/0.7373, allocations: 74.91 MB / 334.7 MB, free: 15.53 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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.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_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_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.002642/0.002642, allocations: 85.28 kB / 496.4 MB, free: 29.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1201, allocations: 73.03 MB / 0.5561 GB, free: 15.57 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4989/0.619, allocations: 150.9 MB / 0.7034 GB, free: 3.578 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01226/0.6313, allocations: 10.05 MB / 0.7133 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001607/0.6329, allocations: 68.44 kB / 0.7133 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002177/0.6351, allocations: 0.718 MB / 0.714 GB, free: 3.516 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004767/0.6398, allocations: 1.686 MB / 0.7157 GB, free: 3.461 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003426/0.6432, allocations: 1.129 MB / 0.7168 GB, free: 3.438 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004403/0.6476, allocations: 2.555 MB / 0.7193 GB, free: 3.43 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008739/0.6485, allocations: 282.6 kB / 0.7195 GB, free: 3.34 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002987/0.6515, allocations: 1.083 MB / 0.7206 GB, free: 3.336 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002431/0.6539, allocations: 1.312 MB / 0.7219 GB, free: 3.336 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004757/0.6544, allocations: 143.4 kB / 0.722 GB, free: 3.336 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004503/0.6589, allocations: 1.677 MB / 0.7237 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005675/0.6595, allocations: 367 kB / 0.724 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001406/0.6609, allocations: 0.673 MB / 0.7247 GB, free: 3.254 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004823/0.6657, allocations: 2.584 MB / 0.7272 GB, free: 2.883 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.6657, allocations: 3.625 kB / 0.7272 GB, free: 2.883 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6657, allocations: 1 kB / 0.7272 GB, free: 2.883 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.439e-05/0.6658, allocations: 0 / 0.7272 GB, free: 2.883 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.004638/0.6704, allocations: 2.003 MB / 0.7291 GB, free: 17.95 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.6704, allocations: 8.656 kB / 0.7292 GB, free: 17.95 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005084/0.671, allocations: 186 kB / 0.7293 GB, free: 17.86 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001585/0.6725, allocations: 0.9075 MB / 0.7302 GB, free: 17.55 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.05e-05/0.6726, allocations: 92.25 kB / 0.7303 GB, free: 17.55 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/0.6728, allocations: 119.2 kB / 0.7304 GB, free: 17.55 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002439/0.6752, allocations: 1.557 MB / 0.7319 GB, free: 17.42 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/0.6752, allocations: 0.875 kB / 0.7319 GB, free: 17.42 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.73e-05/0.6753, allocations: 48.34 kB / 0.732 GB, free: 17.42 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.6754, allocations: 28.19 kB / 0.732 GB, free: 17.42 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.6778, allocations: 1.704 MB / 0.7337 GB, free: 17.4 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005872/0.6837, allocations: 3.514 MB / 0.7371 GB, free: 16.7 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.6859, allocations: 1.191 MB / 0.7383 GB, free: 16.64 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.687, allocations: 0.6381 MB / 0.7389 GB, free: 16.63 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00395/0.691, allocations: 2.07 MB / 0.7409 GB, free: 16.32 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001258/0.6922, allocations: 0.7364 MB / 0.7416 GB, free: 16.25 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=128): time 3.847e-06/0.6922, allocations: 0 / 0.7416 GB, free: 16.25 MB / 0.6075 GB Notification: Performance of matching and sorting (n=129): time 0.00734/0.6996, allocations: 3.779 MB / 0.7453 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.6996, allocations: 65.31 kB / 0.7454 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000742/0.7004, allocations: 0.6613 MB / 0.746 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.7005, allocations: 50.73 kB / 0.7461 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000366/0.7009, allocations: 0.5502 MB / 0.7466 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.7011, allocations: 449.9 kB / 0.747 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000295/0.7014, allocations: 207.6 kB / 0.7472 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000183/0.7016, allocations: 347.8 kB / 0.7476 GB, free: 14.64 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009469/0.7026, allocations: 0.5444 MB / 0.7481 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.7036, allocations: 0.6591 MB / 0.7488 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002129/0.7057, allocations: 1.256 MB / 0.75 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.7057, allocations: 1 kB / 0.75 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003272/0.709, allocations: 1.641 MB / 0.7516 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.357e-05/0.7091, allocations: 33.2 kB / 0.7516 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.7091, allocations: 0.7188 kB / 0.7516 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005354/0.7096, allocations: 155.5 kB / 0.7518 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/0.7106, allocations: 248.5 kB / 0.752 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.7149, allocations: 2.562 MB / 0.7545 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009298/0.7158, allocations: 51.11 kB / 0.7546 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001862/0.716, allocations: 51.83 kB / 0.7546 GB, free: 11.27 MB / 0.6075 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.0006819/0.7167, allocations: 291.8 kB / 0.7549 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004015/0.7171, allocations: 124.7 kB / 0.755 GB, free: 11 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004454/0.7215, allocations: 2.328 MB / 0.7573 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.7215, allocations: 14.09 kB / 0.7573 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.7215, allocations: 2.219 kB / 0.7573 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.153e-05/0.7216, allocations: 8.828 kB / 0.7573 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006247/0.7278, allocations: 3.046 MB / 0.7603 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.7278, allocations: 0 / 0.7603 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009944/0.7288, allocations: 267.1 kB / 0.7605 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004448/0.7293, allocations: 142.9 kB / 0.7607 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/0.7294, allocations: 40.81 kB / 0.7607 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.7323, allocations: 2.291 MB / 0.7629 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.7323, allocations: 8.953 kB / 0.7629 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005315/0.7376, allocations: 2.605 MB / 0.7655 GB, free: 5.609 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003467/0.738, allocations: 108.5 kB / 0.7656 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.7383, allocations: 45.25 kB / 0.7656 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008013/0.7391, allocations: 51.39 kB / 0.7657 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/0.7394, allocations: 118.3 kB / 0.7658 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001964/0.7396, allocations: 54.25 kB / 0.7659 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008247/0.7404, allocations: 480.6 kB / 0.7663 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.7404, allocations: 0 / 0.7663 GB, free: 5.258 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002197/0.7426, allocations: 0.5126 MB / 0.7668 GB, free: 5.148 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.001187/0.7438, allocations: 0.5776 MB / 0.7674 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003576/0.7474, allocations: 1.584 MB / 0.7689 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.7474, allocations: 0 / 0.7689 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.7494, allocations: 0.9321 MB / 0.7698 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/0.7516, allocations: 341.4 kB / 0.7702 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005913/0.7575, allocations: 2.661 MB / 0.7728 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008318/0.7583, allocations: 0.6018 MB / 0.7733 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001467/0.7598, allocations: 352.9 kB / 0.7737 GB, free: 2.223 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005181/0.7603, allocations: 145.7 kB / 0.7738 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of SimCode: time 1.423e-06/0.7603, allocations: 0 / 0.7738 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of Templates: time 0.04846/0.8087, allocations: 25.63 MB / 0.7989 GB, free: 10.75 MB / 0.6387 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -s ida -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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: 6.886473614023998]