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.001339/0.001339, allocations: 112.3 kB / 16.41 MB, free: 6.504 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.001339/0.001339, allocations: 183 kB / 17.34 MB, free: 5.762 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.647/0.647, allocations: 91.18 MB / 382.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 83.86 kB / 0.5175 GB, free: 4.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3104, allocations: 67.69 MB / 0.5836 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4861/0.7966, allocations: 173.1 MB / 0.7527 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01184/0.8085, allocations: 11 MB / 0.7634 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001482/0.81, allocations: 46.03 kB / 0.7635 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001908/0.8119, allocations: 0.8053 MB / 0.7643 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003976/0.8159, allocations: 1.665 MB / 0.7659 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002799/0.8187, allocations: 1.113 MB / 0.767 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002972/0.8217, allocations: 2.535 MB / 0.7695 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006377/0.8224, allocations: 483.1 kB / 0.7699 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00177/0.8242, allocations: 1.055 MB / 0.771 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.8258, allocations: 1.358 MB / 0.7723 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002184/0.826, allocations: 142.9 kB / 0.7724 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004138/0.8301, allocations: 1.938 MB / 0.7743 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003513/0.8305, allocations: 359.3 kB / 0.7746 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009943/0.8315, allocations: 0.8104 MB / 0.7754 GB, free: 0.7422 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003882/0.8354, allocations: 2.591 MB / 0.778 GB, free: 392 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.8354, allocations: 3.688 kB / 0.778 GB, free: 392 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8354, allocations: 3 kB / 0.778 GB, free: 392 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.077e-05/0.8355, allocations: 0 / 0.778 GB, free: 392 kB / 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.003865/0.8393, allocations: 2.032 MB / 0.78 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.8394, allocations: 11.38 kB / 0.78 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003618/0.8398, allocations: 166.3 kB / 0.7801 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001378/0.8412, allocations: 0.9776 MB / 0.7811 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.8412, allocations: 90.16 kB / 0.7812 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.8414, allocations: 122 kB / 0.7813 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.8436, allocations: 1.535 MB / 0.7828 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.8437, allocations: 3.625 kB / 0.7828 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.474e-05/0.8438, allocations: 43.34 kB / 0.7828 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.8438, allocations: 28.78 kB / 0.7829 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002248/0.846, allocations: 1.667 MB / 0.7845 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00676/0.8528, allocations: 6.231 MB / 0.7906 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002208/0.8551, allocations: 1.274 MB / 0.7918 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.8561, allocations: 0.6966 MB / 0.7925 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004896/0.861, allocations: 4.02 MB / 0.7964 GB, free: 8.734 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.8622, allocations: 0.7296 MB / 0.7971 GB, free: 8.668 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=128): time 3.627e-06/0.8622, allocations: 0 / 0.7971 GB, free: 8.668 MB / 0.5919 GB Notification: Performance of matching and sorting (n=129): time 0.006985/0.8692, allocations: 3.974 MB / 0.801 GB, free: 7.461 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.8693, allocations: 66.72 kB / 0.8011 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008796/0.8702, allocations: 0.7089 MB / 0.8018 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.8703, allocations: 54.14 kB / 0.8018 GB, free: 7.059 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004314/0.8708, allocations: 0.5224 MB / 0.8023 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003413/0.8711, allocations: 439 kB / 0.8028 GB, free: 6.309 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003007/0.8714, allocations: 204.2 kB / 0.8029 GB, free: 6.215 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.8716, allocations: 352.2 kB / 0.8033 GB, free: 5.891 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008563/0.8724, allocations: 0.5108 MB / 0.8038 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009529/0.8734, allocations: 0.6208 MB / 0.8044 GB, free: 5.418 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001954/0.8754, allocations: 1.245 MB / 0.8056 GB, free: 4.805 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.8754, allocations: 0 / 0.8056 GB, free: 4.805 MB / 0.5919 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002877/0.8782, allocations: 1.591 MB / 0.8072 GB, free: 4.133 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.8783, allocations: 40.05 kB / 0.8072 GB, free: 4.098 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.8783, allocations: 0 / 0.8072 GB, free: 4.098 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004725/0.8788, allocations: 163.8 kB / 0.8074 GB, free: 4.055 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008659/0.8797, allocations: 243.5 kB / 0.8076 GB, free: 4.043 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00377/0.8835, allocations: 2.718 MB / 0.8102 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007116/0.8842, allocations: 51.94 kB / 0.8103 GB, free: 1.957 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.8843, allocations: 49.77 kB / 0.8103 GB, free: 1.941 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.0005371/0.8849, allocations: 299.7 kB / 0.8106 GB, free: 1.719 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.8851, allocations: 113.8 kB / 0.8107 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00402/0.8891, allocations: 2.323 MB / 0.813 GB, free: 208 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.8892, allocations: 17.09 kB / 0.813 GB, free: 192 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.8892, allocations: 4 kB / 0.813 GB, free: 188 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.8892, allocations: 7.969 kB / 0.813 GB, free: 180 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005479/0.8947, allocations: 3.416 MB / 0.8164 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.8947, allocations: 4 kB / 0.8164 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009435/0.8956, allocations: 268.3 kB / 0.8166 GB, free: 12.49 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004114/0.8961, allocations: 139.1 kB / 0.8168 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.8962, allocations: 44.83 kB / 0.8168 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002631/0.8988, allocations: 2.449 MB / 0.8192 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.8988, allocations: 4.781 kB / 0.8192 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004318/0.9032, allocations: 2.593 MB / 0.8217 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.9035, allocations: 184.5 kB / 0.8219 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002071/0.9037, allocations: 31.98 kB / 0.8219 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000624/0.9043, allocations: 48.75 kB / 0.822 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.9045, allocations: 117.3 kB / 0.8221 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.9046, allocations: 55.97 kB / 0.8221 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006551/0.9053, allocations: 0.5204 MB / 0.8227 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.4e-07/0.9053, allocations: 0 / 0.8227 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001462/0.9068, allocations: 0.5126 MB / 0.8232 GB, free: 5.645 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.0009645/0.9078, allocations: 0.5725 MB / 0.8237 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002781/0.9105, allocations: 1.632 MB / 0.8253 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.9106, allocations: 0 / 0.8253 GB, free: 3.527 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.9121, allocations: 0.9872 MB / 0.8263 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.9139, allocations: 392.7 kB / 0.8266 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004424/0.9183, allocations: 2.646 MB / 0.8292 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007032/0.9191, allocations: 1.187 MB / 0.8304 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004751/0.9195, allocations: 163.4 kB / 0.8305 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of SimCode: time 4.8e-07/0.9195, allocations: 4 kB / 0.8305 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of Templates: time 0.03455/0.9541, allocations: 30.12 MB / 0.86 GB, free: 108 kB / 0.6387 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches