Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009797/0.0009797, allocations: 91.53 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 183.3 kB / 16.92 MB, free: 6.926 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.328/1.328, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6758/0.6758, allocations: 89.64 MB / 381.7 MB, free: 11.34 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000355/0.000355, allocations: 9.688 kB / 461.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1095, allocations: 68.83 MB / 0.5177 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.381/0.4905, allocations: 160.4 MB / 0.6743 GB, free: 9.383 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01383/0.5044, allocations: 12.77 MB / 0.6868 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008901/0.5053, allocations: 23.88 kB / 0.6868 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.5068, allocations: 0.5092 MB / 0.6873 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002118/0.5089, allocations: 0.7614 MB / 0.6881 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.5109, allocations: 0.697 MB / 0.6888 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00163/0.5125, allocations: 1.404 MB / 0.6901 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004366/0.513, allocations: 274.4 kB / 0.6904 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007146/0.5137, allocations: 438 kB / 0.6908 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008279/0.5145, allocations: 0.5874 MB / 0.6914 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.5146, allocations: 32 kB / 0.6914 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.5172, allocations: 1.357 MB / 0.6927 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.5174, allocations: 139.2 kB / 0.6929 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004635/0.5179, allocations: 459.2 kB / 0.6933 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.5192, allocations: 1.021 MB / 0.6943 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5192, allocations: 0 / 0.6943 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5192, allocations: 0 / 0.6943 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.348e-05/0.5192, allocations: 0 / 0.6943 GB, free: 6.117 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002112/0.5213, allocations: 1.15 MB / 0.6954 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.5214, allocations: 8.031 kB / 0.6954 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.5215, allocations: 103.7 kB / 0.6955 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007591/0.5223, allocations: 0.5617 MB / 0.6961 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.36e-05/0.5224, allocations: 50.38 kB / 0.6961 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.5225, allocations: 76.28 kB / 0.6962 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.5237, allocations: 0.7356 MB / 0.6969 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.5237, allocations: 0 / 0.6969 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.451e-05/0.5238, allocations: 28 kB / 0.697 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.5238, allocations: 20 kB / 0.697 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.5249, allocations: 0.6441 MB / 0.6976 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003327/0.5282, allocations: 3.083 MB / 0.7006 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.5295, allocations: 0.5909 MB / 0.7012 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004288/0.5299, allocations: 267.9 kB / 0.7014 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00226/0.5322, allocations: 2.592 MB / 0.704 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.5322, allocations: 47.05 kB / 0.704 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=55): time 1.833e-06/0.5322, allocations: 0 / 0.704 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of matching and sorting (n=56): time 0.003258/0.5355, allocations: 1.758 MB / 0.7057 GB, free: 9.473 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.5355, allocations: 63.91 kB / 0.7058 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006573/0.5362, allocations: 0.5706 MB / 0.7064 GB, free: 8.812 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.5362, allocations: 33.7 kB / 0.7064 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002433/0.5365, allocations: 376.3 kB / 0.7067 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.5366, allocations: 197.1 kB / 0.7069 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.5367, allocations: 41.7 kB / 0.707 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5369, allocations: 382.8 kB / 0.7073 GB, free: 7.777 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.5372, allocations: 169 kB / 0.7075 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/0.5376, allocations: 239.2 kB / 0.7077 GB, free: 7.359 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000738/0.5383, allocations: 439.8 kB / 0.7082 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.5383, allocations: 0 / 0.7082 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001178/0.5395, allocations: 0.651 MB / 0.7088 GB, free: 6.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.5395, allocations: 4 kB / 0.7088 GB, free: 6.246 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.5395, allocations: 8 kB / 0.7088 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004083/0.54, allocations: 108.9 kB / 0.7089 GB, free: 6.129 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/0.5403, allocations: 95.89 kB / 0.709 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/0.5423, allocations: 1.904 MB / 0.7109 GB, free: 4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003731/0.5427, allocations: 39.88 kB / 0.7109 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/0.5428, allocations: 24.05 kB / 0.7109 GB, free: 3.938 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002616/0.5431, allocations: 205.6 kB / 0.7111 GB, free: 3.727 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.5432, allocations: 71.16 kB / 0.7112 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.5448, allocations: 0.873 MB / 0.712 GB, free: 2.758 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.5448, allocations: 11.98 kB / 0.712 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.5448, allocations: 0 / 0.712 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5448, allocations: 0 / 0.712 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002247/0.5471, allocations: 1.516 MB / 0.7135 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.5471, allocations: 4 kB / 0.7135 GB, free: 1.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003289/0.5474, allocations: 91.89 kB / 0.7136 GB, free: 1.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003709/0.5478, allocations: 124.7 kB / 0.7137 GB, free: 0.9453 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.5479, allocations: 19.94 kB / 0.7138 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.5498, allocations: 1.906 MB / 0.7156 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5498, allocations: 8.016 kB / 0.7156 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.5514, allocations: 0.9716 MB / 0.7166 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.5515, allocations: 152.2 kB / 0.7167 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.495e-05/0.5516, allocations: 15.98 kB / 0.7167 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000389/0.552, allocations: 35.92 kB / 0.7168 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.358e-05/0.5521, allocations: 52.48 kB / 0.7168 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.5522, allocations: 24 kB / 0.7168 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005005/0.5527, allocations: 439 kB / 0.7173 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5527, allocations: 0 / 0.7173 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000829/0.5535, allocations: 319.8 kB / 0.7176 GB, free: 12.84 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007016/0.5542, allocations: 493.2 kB / 0.718 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001165/0.5554, allocations: 0.6273 MB / 0.7186 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5554, allocations: 4.062 kB / 0.7186 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007261/0.5562, allocations: 433.7 kB / 0.7191 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.5575, allocations: 237.3 kB / 0.7193 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.56, allocations: 1.863 MB / 0.7211 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.5605, allocations: 0.9654 MB / 0.722 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.5607, allocations: 63.42 kB / 0.7221 GB, free: 8.078 MB / 0.5294 GB Notification: Performance of SimCode: time 4.41e-07/0.5607, allocations: 4 kB / 0.7221 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of Templates: time 0.02149/0.5822, allocations: 17.11 MB / 0.7388 GB, free: 6.996 MB / 0.545 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches