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.001317/0.001317, 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.001462/0.001462, allocations: 221.8 kB / 23 MB, free: 4.91 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.428/1.428, 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 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.7252/0.7252, allocations: 94.62 MB / 407.8 MB, free: 8.922 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.002595/0.002595, allocations: 93.83 kB / 0.5562 GB, free: 38.21 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1216, allocations: 73.05 MB / 0.6275 GB, free: 15.69 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.5121/0.6337, allocations: 150.9 MB / 0.7749 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01216/0.6459, allocations: 10.04 MB / 0.7847 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.6473, allocations: 69 kB / 0.7848 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002013/0.6493, allocations: 0.7199 MB / 0.7855 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004202/0.6535, allocations: 1.686 MB / 0.7871 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002792/0.6563, allocations: 1.134 MB / 0.7882 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.00258/0.6589, allocations: 2.551 MB / 0.7907 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004368/0.6593, allocations: 283 kB / 0.791 GB, free: 2.965 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001472/0.6608, allocations: 1.08 MB / 0.792 GB, free: 2.961 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.6623, allocations: 1.317 MB / 0.7933 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001881/0.6625, allocations: 143.5 kB / 0.7935 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004271/0.6667, allocations: 1.673 MB / 0.7951 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004102/0.6671, allocations: 365.1 kB / 0.7954 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009996/0.6681, allocations: 0.671 MB / 0.7961 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003868/0.672, allocations: 2.578 MB / 0.7986 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.672, allocations: 4 kB / 0.7986 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.004e-06/0.672, allocations: 0 / 0.7986 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.698e-05/0.672, allocations: 0.9062 kB / 0.7986 GB, free: 2.266 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.003665/0.6757, allocations: 2.008 MB / 0.8006 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.6757, allocations: 8.969 kB / 0.8006 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003707/0.6761, allocations: 187.1 kB / 0.8008 GB, free: 17.24 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001553/0.6777, allocations: 0.9003 MB / 0.8017 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.39e-05/0.6777, allocations: 88.88 kB / 0.8017 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.6779, allocations: 127.4 kB / 0.8019 GB, free: 16.92 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002165/0.6801, allocations: 1.553 MB / 0.8034 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.89e-05/0.6801, allocations: 0 / 0.8034 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.562e-05/0.6802, allocations: 50.44 kB / 0.8034 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.189e-05/0.6802, allocations: 31.91 kB / 0.8035 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002284/0.6825, allocations: 1.7 MB / 0.8051 GB, free: 16.78 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005063/0.6876, allocations: 3.521 MB / 0.8086 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.6896, allocations: 1.188 MB / 0.8097 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.6906, allocations: 0.6388 MB / 0.8103 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0039/0.6945, allocations: 2.066 MB / 0.8124 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.6957, allocations: 0.7421 MB / 0.8131 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.868e-06/0.6957, allocations: 0 / 0.8131 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.00728/0.703, allocations: 3.78 MB / 0.8168 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.7031, allocations: 67.47 kB / 0.8168 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007461/0.7038, allocations: 0.6589 MB / 0.8175 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.024e-05/0.7039, allocations: 47.17 kB / 0.8175 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004797/0.7044, allocations: 0.5465 MB / 0.8181 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003797/0.7048, allocations: 458 kB / 0.8185 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003309/0.7051, allocations: 210.2 kB / 0.8187 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001736/0.7053, allocations: 346.6 kB / 0.819 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009128/0.7062, allocations: 0.5477 MB / 0.8196 GB, free: 9.91 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.7072, allocations: 0.6539 MB / 0.8202 GB, free: 9.594 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002081/0.7093, allocations: 1.257 MB / 0.8214 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.7093, allocations: 3.938 kB / 0.8214 GB, free: 8.977 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00301/0.7123, allocations: 1.628 MB / 0.823 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.748e-05/0.7123, allocations: 38.72 kB / 0.8231 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.7124, allocations: 2.5 kB / 0.8231 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004931/0.7128, allocations: 159.4 kB / 0.8232 GB, free: 8.199 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008967/0.7137, allocations: 243.8 kB / 0.8234 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/0.7177, allocations: 2.568 MB / 0.826 GB, free: 6.312 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000665/0.7184, allocations: 45.62 kB / 0.826 GB, free: 6.297 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.7185, allocations: 52.58 kB / 0.826 GB, free: 6.285 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.0005458/0.719, allocations: 292.3 kB / 0.8263 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000292/0.7193, allocations: 123.6 kB / 0.8264 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004053/0.7234, allocations: 2.32 MB / 0.8287 GB, free: 4.781 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.7234, allocations: 14.97 kB / 0.8287 GB, free: 4.781 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.7234, allocations: 2.75 kB / 0.8287 GB, free: 4.781 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.7234, allocations: 7.969 kB / 0.8287 GB, free: 4.773 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00551/0.7289, allocations: 3.046 MB / 0.8317 GB, free: 2.949 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.7289, allocations: 0 / 0.8317 GB, free: 2.949 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009227/0.7298, allocations: 267.8 kB / 0.832 GB, free: 2.898 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004098/0.7302, allocations: 142.5 kB / 0.8321 GB, free: 2.832 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-05/0.7303, allocations: 52.72 kB / 0.8321 GB, free: 2.797 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002742/0.7331, allocations: 2.285 MB / 0.8344 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.7331, allocations: 7.312 kB / 0.8344 GB, free: 0.8711 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004458/0.7375, allocations: 2.613 MB / 0.8369 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.7378, allocations: 103.5 kB / 0.837 GB, free: 15.38 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001567/0.738, allocations: 44.67 kB / 0.8371 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005725/0.7385, allocations: 48.61 kB / 0.8371 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.7388, allocations: 117.3 kB / 0.8372 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.7389, allocations: 58.33 kB / 0.8373 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006493/0.7395, allocations: 478.7 kB / 0.8377 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7395, allocations: 3.938 kB / 0.8378 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00152/0.741, allocations: 0.512 MB / 0.8383 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.000957/0.742, allocations: 0.5851 MB / 0.8388 GB, free: 13.79 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003058/0.7451, allocations: 1.587 MB / 0.8404 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7451, allocations: 0.9062 kB / 0.8404 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001715/0.7468, allocations: 0.9266 MB / 0.8413 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.001535/0.7483, allocations: 350.9 kB / 0.8416 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005012/0.7533, allocations: 2.689 MB / 0.8442 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006784/0.754, allocations: 0.5975 MB / 0.8448 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004804/0.7545, allocations: 159.4 kB / 0.845 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of SimCode: time 6.22e-07/0.7545, allocations: 0 / 0.845 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of Templates: time 0.04407/0.7986, allocations: 30.32 MB / 0.8746 GB, free: 9.238 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/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.287395568564534]