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.001717/0.001717, 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.002101/0.002101, allocations: 219.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.385/1.385, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.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.688/0.688, allocations: 94.56 MB / 407.7 MB, free: 9.18 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.002359/0.002359, allocations: 89.16 kB / 0.5562 GB, free: 38.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1152, allocations: 73.05 MB / 0.6275 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.482/0.5972, allocations: 174.4 MB / 0.7978 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01127/0.6085, allocations: 11.05 MB / 0.8086 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.6099, allocations: 71.19 kB / 0.8087 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.612, allocations: 0.8029 MB / 0.8095 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004115/0.6161, allocations: 1.704 MB / 0.8111 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002898/0.619, allocations: 1.148 MB / 0.8122 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003137/0.6221, allocations: 2.56 MB / 0.8147 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006417/0.6228, allocations: 286 kB / 0.815 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002297/0.6251, allocations: 1.093 MB / 0.8161 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002213/0.6273, allocations: 1.386 MB / 0.8174 GB, free: 440 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004276/0.6277, allocations: 143 kB / 0.8176 GB, free: 440 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004455/0.6322, allocations: 1.99 MB / 0.8195 GB, free: 15.99 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005511/0.6327, allocations: 370.8 kB / 0.8199 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00153/0.6343, allocations: 0.8041 MB / 0.8207 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005304/0.6396, allocations: 2.614 MB / 0.8232 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6396, allocations: 0 / 0.8232 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6396, allocations: 0 / 0.8232 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.316e-05/0.6396, allocations: 2.75 kB / 0.8232 GB, free: 13.9 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.004643/0.6443, allocations: 2.002 MB / 0.8252 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.6443, allocations: 9.781 kB / 0.8252 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003916/0.6447, allocations: 180.5 kB / 0.8253 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.6465, allocations: 0.9053 MB / 0.8262 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.963e-05/0.6466, allocations: 91 kB / 0.8263 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001839/0.6468, allocations: 123.7 kB / 0.8264 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002535/0.6493, allocations: 1.556 MB / 0.828 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.6493, allocations: 0 / 0.828 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.93e-05/0.6494, allocations: 50.08 kB / 0.828 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.6495, allocations: 32.09 kB / 0.828 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002684/0.6521, allocations: 1.718 MB / 0.8297 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007713/0.6599, allocations: 6.188 MB / 0.8358 GB, free: 4.242 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002257/0.6621, allocations: 1.194 MB / 0.8369 GB, free: 3.598 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.6632, allocations: 0.6383 MB / 0.8375 GB, free: 3.266 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004177/0.6673, allocations: 2.284 MB / 0.8398 GB, free: 1.656 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001246/0.6686, allocations: 0.7358 MB / 0.8405 GB, free: 1.211 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.266e-06/0.6686, allocations: 2.062 kB / 0.8405 GB, free: 1.211 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.007427/0.676, allocations: 3.778 MB / 0.8442 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.6761, allocations: 68.66 kB / 0.8442 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009283/0.677, allocations: 0.7127 MB / 0.8449 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.367e-05/0.6771, allocations: 49.7 kB / 0.845 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.6775, allocations: 0.5326 MB / 0.8455 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003909/0.6779, allocations: 454.3 kB / 0.8459 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000343/0.6783, allocations: 202.9 kB / 0.8461 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.6784, allocations: 349.9 kB / 0.8465 GB, free: 12.67 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009818/0.6794, allocations: 0.5218 MB / 0.847 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.6805, allocations: 0.6212 MB / 0.8476 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/0.6827, allocations: 1.255 MB / 0.8488 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.6827, allocations: 4 kB / 0.8488 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003072/0.6858, allocations: 1.604 MB / 0.8504 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.6858, allocations: 33.7 kB / 0.8504 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.6858, allocations: 0 / 0.8504 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005204/0.6864, allocations: 160.7 kB / 0.8506 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008994/0.6873, allocations: 247.7 kB / 0.8508 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004048/0.6913, allocations: 2.613 MB / 0.8534 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006844/0.692, allocations: 61.06 kB / 0.8534 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.6921, allocations: 51.98 kB / 0.8535 GB, free: 5.328 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.0005446/0.6927, allocations: 285.6 kB / 0.8537 GB, free: 5.039 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/0.6929, allocations: 123.2 kB / 0.8539 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004351/0.6973, allocations: 2.319 MB / 0.8561 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.6973, allocations: 16 kB / 0.8561 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.6973, allocations: 8 kB / 0.8561 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.758e-05/0.6973, allocations: 7.969 kB / 0.8561 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005929/0.7032, allocations: 3.387 MB / 0.8595 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.7033, allocations: 4 kB / 0.8595 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009492/0.7042, allocations: 259.7 kB / 0.8597 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000414/0.7046, allocations: 148.9 kB / 0.8599 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.7047, allocations: 47.97 kB / 0.8599 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002776/0.7075, allocations: 2.34 MB / 0.8622 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.7075, allocations: 0 / 0.8622 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00453/0.712, allocations: 2.615 MB / 0.8647 GB, free: 9.621 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003225/0.7124, allocations: 119.1 kB / 0.8648 GB, free: 9.504 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002671/0.7126, allocations: 28 kB / 0.8649 GB, free: 9.477 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007408/0.7134, allocations: 51.95 kB / 0.8649 GB, free: 9.426 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.7136, allocations: 121.1 kB / 0.865 GB, free: 9.305 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/0.7138, allocations: 55.97 kB / 0.8651 GB, free: 9.25 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008493/0.7146, allocations: 0.5194 MB / 0.8656 GB, free: 8.719 MB / 0.6231 GB Notification: Performance of sort global known variables: time 9e-08/0.7146, allocations: 0 / 0.8656 GB, free: 8.719 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001621/0.7162, allocations: 0.5149 MB / 0.8661 GB, free: 8.203 MB / 0.6231 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.001014/0.7172, allocations: 0.5757 MB / 0.8667 GB, free: 7.656 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003034/0.7203, allocations: 1.563 MB / 0.8682 GB, free: 6.066 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.7203, allocations: 0 / 0.8682 GB, free: 6.066 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.722, allocations: 0.9279 MB / 0.8691 GB, free: 5.129 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001715/0.7237, allocations: 394 kB / 0.8695 GB, free: 4.758 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004907/0.7286, allocations: 2.702 MB / 0.8721 GB, free: 2.016 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000877/0.7295, allocations: 1.187 MB / 0.8733 GB, free: 0.7969 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004782/0.73, allocations: 163.4 kB / 0.8734 GB, free: 0.6367 MB / 0.6231 GB Notification: Performance of SimCode: time 8.52e-07/0.73, allocations: 4 kB / 0.8734 GB, free: 0.6328 MB / 0.6231 GB Notification: Performance of Templates: time 0.04216/0.7721, allocations: 30.25 MB / 0.903 GB, free: 2.453 MB / 0.6544 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 -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: 10.094019959913567]