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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01032/0.01032, allocations: 100.2 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002305/0.002305, allocations: 190.6 kB / 16.67 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6792/0.6792, allocations: 91.18 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 79.88 kB / 0.5168 GB, free: 8.98 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1256, allocations: 67.69 MB / 0.583 GB, free: 5.211 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4665/0.5922, allocations: 173.1 MB / 0.752 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01491/0.6071, allocations: 10.99 MB / 0.7628 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.6086, allocations: 47.69 kB / 0.7628 GB, free: 15.78 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002216/0.6108, allocations: 0.8038 MB / 0.7636 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004297/0.6152, allocations: 1.666 MB / 0.7652 GB, free: 13.3 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002998/0.6182, allocations: 1.121 MB / 0.7663 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00321/0.6214, allocations: 2.53 MB / 0.7688 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007291/0.6222, allocations: 485.4 kB / 0.7693 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001733/0.6239, allocations: 1.059 MB / 0.7703 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001963/0.6259, allocations: 1.351 MB / 0.7716 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0003223/0.6262, allocations: 140 kB / 0.7717 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004388/0.6306, allocations: 1.934 MB / 0.7736 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004394/0.6311, allocations: 362.7 kB / 0.774 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001097/0.6322, allocations: 0.8125 MB / 0.7748 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003883/0.6361, allocations: 2.592 MB / 0.7773 GB, free: 0.8867 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.6361, allocations: 0 / 0.7773 GB, free: 0.8867 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.013e-06/0.6361, allocations: 0 / 0.7773 GB, free: 0.8867 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.553e-05/0.6362, allocations: 0 / 0.7773 GB, free: 0.8867 MB / 0.6075 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.004771/0.6409, allocations: 2.037 MB / 0.7793 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.641, allocations: 8.031 kB / 0.7793 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003955/0.6414, allocations: 167 kB / 0.7795 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001719/0.6431, allocations: 0.9825 MB / 0.7804 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.606e-05/0.6432, allocations: 86.78 kB / 0.7805 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/0.6434, allocations: 120.4 kB / 0.7806 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/0.6461, allocations: 1.532 MB / 0.7821 GB, free: 11.81 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.6462, allocations: 0 / 0.7821 GB, free: 11.81 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.6463, allocations: 48 kB / 0.7822 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.6463, allocations: 31.98 kB / 0.7822 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/0.6491, allocations: 1.665 MB / 0.7838 GB, free: 10.06 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007321/0.6564, allocations: 6.238 MB / 0.7899 GB, free: 3.211 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.6589, allocations: 1.283 MB / 0.7912 GB, free: 1.91 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001106/0.66, allocations: 0.6997 MB / 0.7918 GB, free: 1.211 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004796/0.6648, allocations: 4.014 MB / 0.7958 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001286/0.6661, allocations: 0.7317 MB / 0.7965 GB, free: 12 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=128): time 4.538e-06/0.6662, allocations: 7.984 kB / 0.7965 GB, free: 11.99 MB / 0.6387 GB Notification: Performance of matching and sorting (n=129): time 0.007308/0.6735, allocations: 3.961 MB / 0.8004 GB, free: 7.938 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.6735, allocations: 72.64 kB / 0.8004 GB, free: 7.855 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009364/0.6745, allocations: 0.7127 MB / 0.8011 GB, free: 7.133 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 8.311e-05/0.6746, allocations: 45.7 kB / 0.8012 GB, free: 7.082 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004727/0.6751, allocations: 0.5278 MB / 0.8017 GB, free: 6.547 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004134/0.6755, allocations: 433.5 kB / 0.8021 GB, free: 6.117 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003692/0.6759, allocations: 214.9 kB / 0.8023 GB, free: 5.898 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.676, allocations: 341.9 kB / 0.8026 GB, free: 5.559 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009974/0.6771, allocations: 0.514 MB / 0.8031 GB, free: 5.047 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.6782, allocations: 0.6329 MB / 0.8037 GB, free: 4.395 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002293/0.6805, allocations: 1.24 MB / 0.805 GB, free: 3.129 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.6805, allocations: 0 / 0.805 GB, free: 3.129 MB / 0.6387 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003435/0.6839, allocations: 1.591 MB / 0.8065 GB, free: 1.52 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.428e-05/0.684, allocations: 31.58 kB / 0.8065 GB, free: 1.484 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.684, allocations: 7.938 kB / 0.8065 GB, free: 1.477 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005644/0.6846, allocations: 156.8 kB / 0.8067 GB, free: 1.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009321/0.6855, allocations: 251.6 kB / 0.8069 GB, free: 1.074 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004226/0.6898, allocations: 2.712 MB / 0.8096 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007354/0.6905, allocations: 55.94 kB / 0.8096 GB, free: 14.17 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.6907, allocations: 47.98 kB / 0.8097 GB, free: 14.12 MB / 0.6544 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.0005362/0.6912, allocations: 285.6 kB / 0.81 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002517/0.6915, allocations: 118.6 kB / 0.8101 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004463/0.696, allocations: 2.328 MB / 0.8123 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.696, allocations: 15.94 kB / 0.8124 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.696, allocations: 4 kB / 0.8124 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.849e-05/0.696, allocations: 7.969 kB / 0.8124 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006023/0.7021, allocations: 3.409 MB / 0.8157 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.7021, allocations: 8.125 kB / 0.8157 GB, free: 7.891 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.7031, allocations: 267.6 kB / 0.816 GB, free: 7.629 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004269/0.7036, allocations: 140.8 kB / 0.8161 GB, free: 7.488 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001188/0.7037, allocations: 51.97 kB / 0.8161 GB, free: 7.438 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002863/0.7066, allocations: 2.442 MB / 0.8185 GB, free: 4.863 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.7066, allocations: 4.031 kB / 0.8185 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004734/0.7113, allocations: 2.597 MB / 0.8211 GB, free: 2.227 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003718/0.7117, allocations: 187.6 kB / 0.8212 GB, free: 2.023 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.712, allocations: 28 kB / 0.8213 GB, free: 1.996 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/0.7127, allocations: 56.02 kB / 0.8213 GB, free: 1.941 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002454/0.7129, allocations: 109.2 kB / 0.8214 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.713, allocations: 55.97 kB / 0.8215 GB, free: 1.777 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007073/0.7138, allocations: 0.5233 MB / 0.822 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7138, allocations: 0 / 0.822 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001519/0.7153, allocations: 0.5077 MB / 0.8225 GB, free: 0.7344 MB / 0.6544 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.001002/0.7163, allocations: 0.5756 MB / 0.8231 GB, free: 168 kB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00327/0.7196, allocations: 1.629 MB / 0.8246 GB, free: 14.51 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.7196, allocations: 384 / 0.8246 GB, free: 14.51 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001923/0.7215, allocations: 0.9938 MB / 0.8256 GB, free: 13.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/0.7236, allocations: 393.1 kB / 0.826 GB, free: 13.13 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005007/0.7286, allocations: 2.601 MB / 0.8285 GB, free: 10.48 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009355/0.7296, allocations: 1.194 MB / 0.8297 GB, free: 9.258 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001189/0.7308, allocations: 355.5 kB / 0.83 GB, free: 8.953 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004649/0.7313, allocations: 151.4 kB / 0.8302 GB, free: 8.805 MB / 0.67 GB Notification: Performance of SimCode: time 7.71e-07/0.7313, allocations: 0 / 0.8302 GB, free: 8.805 MB / 0.67 GB Notification: Performance of Templates: time 0.3146/1.046, allocations: 27.04 MB / 0.8566 GB, free: 220.1 MB / 0.67 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (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) 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) Reference file matches