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.001639/0.001639, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001822/0.001822, allocations: 211.9 kB / 22.24 MB, free: 5.262 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.781 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.7747/0.7747, allocations: 94.61 MB / 407 MB, free: 8.852 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.00265/0.00265, allocations: 92.44 kB / 0.5554 GB, free: 38.14 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1214, allocations: 73.05 MB / 0.6268 GB, free: 15.67 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5068/0.6282, allocations: 150.9 MB / 0.7742 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01531/0.6435, allocations: 10.04 MB / 0.784 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.645, allocations: 68.97 kB / 0.784 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.6469, allocations: 0.7191 MB / 0.7847 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004124/0.651, allocations: 1.687 MB / 0.7864 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002868/0.6538, allocations: 1.133 MB / 0.7875 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002534/0.6564, allocations: 2.551 MB / 0.79 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005008/0.6569, allocations: 282.1 kB / 0.7902 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001581/0.6585, allocations: 1.083 MB / 0.7913 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001539/0.66, allocations: 1.311 MB / 0.7926 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000195/0.6602, allocations: 142.9 kB / 0.7927 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003253/0.6635, allocations: 1.678 MB / 0.7944 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.6637, allocations: 361.6 kB / 0.7947 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000635/0.6643, allocations: 0.6725 MB / 0.7954 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003161/0.6675, allocations: 2.58 MB / 0.7979 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.6675, allocations: 0 / 0.7979 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6675, allocations: 0.7812 kB / 0.7979 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.297e-05/0.6675, allocations: 0 / 0.7979 GB, free: 2.281 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.003518/0.671, allocations: 2.005 MB / 0.7998 GB, free: 17.35 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.6711, allocations: 9.719 kB / 0.7999 GB, free: 17.35 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003683/0.6714, allocations: 187.8 kB / 0.8 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.673, allocations: 0.899 MB / 0.8009 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.05e-05/0.673, allocations: 88.34 kB / 0.801 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001787/0.6732, allocations: 126.5 kB / 0.8011 GB, free: 16.94 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.6754, allocations: 1.56 MB / 0.8026 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.6754, allocations: 0 / 0.8026 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.772e-05/0.6755, allocations: 51.69 kB / 0.8027 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.784e-05/0.6755, allocations: 29.03 kB / 0.8027 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002341/0.6779, allocations: 1.699 MB / 0.8044 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005164/0.683, allocations: 3.524 MB / 0.8078 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.6851, allocations: 1.186 MB / 0.809 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.6861, allocations: 0.6382 MB / 0.8096 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004134/0.6902, allocations: 2.062 MB / 0.8116 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001336/0.6916, allocations: 0.7445 MB / 0.8123 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.256e-06/0.6916, allocations: 0 / 0.8123 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.007617/0.6992, allocations: 3.778 MB / 0.816 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.6993, allocations: 71.98 kB / 0.8161 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007419/0.7, allocations: 0.6529 MB / 0.8167 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.45e-05/0.7001, allocations: 53.08 kB / 0.8168 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004921/0.7006, allocations: 0.544 MB / 0.8173 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003909/0.701, allocations: 469.3 kB / 0.8178 GB, free: 10.55 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003271/0.7013, allocations: 209.4 kB / 0.818 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001813/0.7015, allocations: 345.6 kB / 0.8183 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009356/0.7024, allocations: 0.5491 MB / 0.8188 GB, free: 9.906 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/0.7035, allocations: 0.6543 MB / 0.8195 GB, free: 9.59 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002124/0.7056, allocations: 1.25 MB / 0.8207 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.7056, allocations: 0 / 0.8207 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003045/0.7086, allocations: 1.638 MB / 0.8223 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/0.7087, allocations: 37.95 kB / 0.8223 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.7087, allocations: 3.906 kB / 0.8223 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004853/0.7092, allocations: 152.2 kB / 0.8225 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008786/0.7101, allocations: 251 kB / 0.8227 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003996/0.7141, allocations: 2.562 MB / 0.8252 GB, free: 6.309 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006513/0.7147, allocations: 46.78 kB / 0.8253 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.7148, allocations: 54.53 kB / 0.8253 GB, free: 6.281 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.0005437/0.7154, allocations: 289 kB / 0.8256 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002965/0.7157, allocations: 124.5 kB / 0.8257 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004165/0.7198, allocations: 2.311 MB / 0.828 GB, free: 4.793 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.497e-06/0.7198, allocations: 13.91 kB / 0.828 GB, free: 4.793 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.7198, allocations: 7.922 kB / 0.828 GB, free: 4.789 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.7199, allocations: 3.984 kB / 0.828 GB, free: 4.785 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005758/0.7256, allocations: 3.05 MB / 0.831 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.7256, allocations: 4.781 kB / 0.831 GB, free: 2.957 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000927/0.7265, allocations: 269.1 kB / 0.8312 GB, free: 2.902 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004209/0.727, allocations: 148.5 kB / 0.8314 GB, free: 2.836 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.875e-05/0.7271, allocations: 48.44 kB / 0.8314 GB, free: 2.805 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/0.7299, allocations: 2.278 MB / 0.8336 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.7299, allocations: 0.5938 kB / 0.8336 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004698/0.7346, allocations: 2.626 MB / 0.8362 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002605/0.7348, allocations: 107.7 kB / 0.8363 GB, free: 15.39 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.735, allocations: 39.77 kB / 0.8363 GB, free: 15.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005756/0.7356, allocations: 48.38 kB / 0.8364 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.7358, allocations: 118.3 kB / 0.8365 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.736, allocations: 55.19 kB / 0.8366 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006567/0.7366, allocations: 482.7 kB / 0.837 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.7366, allocations: 0 / 0.837 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001514/0.7381, allocations: 0.508 MB / 0.8375 GB, free: 14.27 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.0009599/0.7391, allocations: 0.5801 MB / 0.8381 GB, free: 13.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003121/0.7422, allocations: 1.589 MB / 0.8396 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.7422, allocations: 0.9688 kB / 0.8396 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.744, allocations: 0.93 MB / 0.8405 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/0.7455, allocations: 347.2 kB / 0.8409 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005019/0.7506, allocations: 2.655 MB / 0.8435 GB, free: 8.297 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006929/0.7513, allocations: 0.6014 MB / 0.844 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001118/0.7524, allocations: 340 kB / 0.8444 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000399/0.7528, allocations: 151.4 kB / 0.8445 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of SimCode: time 9.41e-07/0.7528, allocations: 4 kB / 0.8445 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of Templates: time 0.04756/0.8003, allocations: 27.75 MB / 0.8716 GB, free: 11.93 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 -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/jenkins/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: 7.0729464795440435]