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 dev (/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.001262/0.001262, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001535/0.001535, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7237/0.7237, allocations: 89.61 MB / 380.6 MB, free: 11.45 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003762, allocations: 10.34 kB / 459.9 MB, free: 24.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1404/0.1407, allocations: 68.82 MB / 0.5163 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4325/0.5733, allocations: 146.8 MB / 0.6597 GB, free: 4.621 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.5871, allocations: 9.211 MB / 0.6687 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001634/0.5888, allocations: 25.56 kB / 0.6687 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.5909, allocations: 0.6662 MB / 0.6694 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004536/0.5955, allocations: 1.437 MB / 0.6708 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003225/0.5987, allocations: 0.8365 MB / 0.6716 GB, free: 10.79 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003348/0.6021, allocations: 1.526 MB / 0.6731 GB, free: 9.469 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006261/0.6027, allocations: 374.7 kB / 0.6734 GB, free: 9.105 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.6041, allocations: 0.7086 MB / 0.6741 GB, free: 8.395 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001463/0.6056, allocations: 0.9851 MB / 0.6751 GB, free: 7.406 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.6058, allocations: 60 kB / 0.6752 GB, free: 7.348 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004571/0.6103, allocations: 1.697 MB / 0.6768 GB, free: 5.648 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003417/0.6107, allocations: 235.1 kB / 0.677 GB, free: 5.418 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005603/0.6113, allocations: 293 kB / 0.6773 GB, free: 5.125 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003026/0.6143, allocations: 1.653 MB / 0.6789 GB, free: 3.473 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.6143, allocations: 0 / 0.6789 GB, free: 3.473 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6143, allocations: 0 / 0.6789 GB, free: 3.473 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.898e-05/0.6144, allocations: 0 / 0.6789 GB, free: 3.473 MB / 494.1 MB 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.003819/0.6182, allocations: 1.66 MB / 0.6805 GB, free: 1.754 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.6183, allocations: 8.031 kB / 0.6806 GB, free: 1.746 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003781/0.6187, allocations: 154.2 kB / 0.6807 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.62, allocations: 0.7047 MB / 0.6814 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.189e-05/0.6201, allocations: 90.41 kB / 0.6815 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.6202, allocations: 124 kB / 0.6816 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002486/0.6227, allocations: 1.52 MB / 0.6831 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.6228, allocations: 4 kB / 0.6831 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-05/0.6229, allocations: 48 kB / 0.6831 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.764e-05/0.6229, allocations: 32 kB / 0.6832 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002892/0.6258, allocations: 1.68 MB / 0.6848 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007658/0.6335, allocations: 6.35 MB / 0.691 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002292/0.6358, allocations: 1.315 MB / 0.6923 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005291/0.6411, allocations: 4.154 MB / 0.6963 GB, free: 416 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001278/0.6425, allocations: 0.7317 MB / 0.6971 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=128): time 3.697e-06/0.6425, allocations: 3.938 kB / 0.6971 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=129): time 0.007409/0.6499, allocations: 3.949 MB / 0.7009 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.441e-05/0.65, allocations: 68.72 kB / 0.701 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006836/0.6507, allocations: 0.5747 MB / 0.7015 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.04e-05/0.6508, allocations: 49.7 kB / 0.7016 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003507/0.6511, allocations: 480.5 kB / 0.7021 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003347/0.6515, allocations: 441.5 kB / 0.7025 GB, free: 9.988 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.348e-05/0.6515, allocations: 24 kB / 0.7025 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001657/0.6517, allocations: 345.9 kB / 0.7028 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000922/0.6526, allocations: 0.5218 MB / 0.7033 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/0.6537, allocations: 0.6251 MB / 0.7039 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.6548, allocations: 0.6133 MB / 0.7045 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.6548, allocations: 0 / 0.7045 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002847/0.6576, allocations: 1.584 MB / 0.7061 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/0.6577, allocations: 33.7 kB / 0.7061 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.6577, allocations: 0 / 0.7061 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004997/0.6582, allocations: 162.2 kB / 0.7063 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000945/0.6592, allocations: 251.6 kB / 0.7065 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003834/0.663, allocations: 2.572 MB / 0.709 GB, free: 3.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009051/0.664, allocations: 91.88 kB / 0.7091 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.6641, allocations: 51.97 kB / 0.7092 GB, free: 2.945 MB / 0.5137 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005102/0.6646, allocations: 285.5 kB / 0.7094 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.6648, allocations: 98.78 kB / 0.7095 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004113/0.6689, allocations: 2.344 MB / 0.7118 GB, free: 244 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.6689, allocations: 16 kB / 0.7118 GB, free: 228 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.6689, allocations: 4 kB / 0.7118 GB, free: 224 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.669, allocations: 7.969 kB / 0.7118 GB, free: 216 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005396/0.6744, allocations: 3.466 MB / 0.7152 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.6744, allocations: 0 / 0.7152 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009806/0.6754, allocations: 271.6 kB / 0.7155 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003996/0.6758, allocations: 148.8 kB / 0.7156 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.692e-05/0.6759, allocations: 43.97 kB / 0.7157 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002558/0.6785, allocations: 2.264 MB / 0.7179 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.6785, allocations: 7.938 kB / 0.7179 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/0.6829, allocations: 2.64 MB / 0.7205 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003445/0.6833, allocations: 183.7 kB / 0.7206 GB, free: 6.918 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.6834, allocations: 28 kB / 0.7207 GB, free: 6.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006493/0.6841, allocations: 103.8 kB / 0.7208 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/0.6843, allocations: 109.1 kB / 0.7209 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.6844, allocations: 59.97 kB / 0.7209 GB, free: 6.625 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000541/0.685, allocations: 431 kB / 0.7213 GB, free: 6.211 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/0.685, allocations: 0 / 0.7213 GB, free: 6.211 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001604/0.6866, allocations: 0.5076 MB / 0.7218 GB, free: 5.703 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/0.6876, allocations: 0.5828 MB / 0.7224 GB, free: 5.113 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003114/0.6907, allocations: 1.637 MB / 0.724 GB, free: 3.449 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.6908, allocations: 3.938 kB / 0.724 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.6924, allocations: 1.006 MB / 0.725 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.6941, allocations: 324.1 kB / 0.7253 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004882/0.699, allocations: 2.976 MB / 0.7282 GB, free: 15.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007848/0.6998, allocations: 1.162 MB / 0.7293 GB, free: 13.91 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001175/0.701, allocations: 332.8 kB / 0.7297 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.7014, allocations: 131.4 kB / 0.7298 GB, free: 13.5 MB / 0.545 GB Notification: Performance of SimCode: time 7.51e-07/0.7014, allocations: 4 kB / 0.7298 GB, free: 13.49 MB / 0.545 GB Notification: Performance of Templates: time 0.03931/0.7407, allocations: 23.93 MB / 0.7532 GB, free: 5.742 MB / 0.5606 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","../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches