Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001094/0.001094, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001141/0.001141, allocations: 195.8 kB / 16.14 MB, free: 6.641 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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6795/0.6795, allocations: 93.71 MB / 383.7 MB, free: 7.168 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 86.09 kB / 462.7 MB, free: 22.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1162, allocations: 68.26 MB / 0.5185 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3943/0.5105, allocations: 171.7 MB / 0.6862 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01398/0.5245, allocations: 11.23 MB / 0.6972 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001712/0.5263, allocations: 56.16 kB / 0.6973 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002237/0.5285, allocations: 0.7016 MB / 0.6979 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004126/0.5327, allocations: 1.553 MB / 0.6995 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002726/0.5354, allocations: 0.9759 MB / 0.7004 GB, free: 0.9258 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003489/0.5389, allocations: 3.347 MB / 0.7037 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007269/0.5397, allocations: 446.8 kB / 0.7041 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.5414, allocations: 0.9452 MB / 0.705 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001834/0.5432, allocations: 1.347 MB / 0.7064 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002877/0.5435, allocations: 92 kB / 0.7064 GB, free: 11 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003999/0.5476, allocations: 1.891 MB / 0.7083 GB, free: 9.105 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003723/0.5479, allocations: 306.8 kB / 0.7086 GB, free: 8.805 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.549, allocations: 0.7617 MB / 0.7093 GB, free: 8.039 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003692/0.5527, allocations: 2.458 MB / 0.7117 GB, free: 5.574 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.5527, allocations: 0 / 0.7117 GB, free: 5.574 MB / 0.5137 GB Notification: Performance of FrontEnd: time 9.72e-07/0.5527, allocations: 0 / 0.7117 GB, free: 5.574 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.628e-05/0.5528, allocations: 0 / 0.7117 GB, free: 5.574 MB / 0.5137 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.004266/0.557, allocations: 2.025 MB / 0.7137 GB, free: 3.484 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.5571, allocations: 15.97 kB / 0.7137 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/0.5574, allocations: 167 kB / 0.7139 GB, free: 3.305 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.5587, allocations: 0.9123 MB / 0.7148 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.945e-05/0.5588, allocations: 86.78 kB / 0.7148 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.559, allocations: 124.3 kB / 0.715 GB, free: 2.145 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002591/0.5616, allocations: 1.528 MB / 0.7165 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.352e-05/0.5616, allocations: 0 / 0.7165 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.5618, allocations: 48 kB / 0.7165 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.246e-05/0.5618, allocations: 32 kB / 0.7165 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002769/0.5646, allocations: 1.665 MB / 0.7182 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006941/0.5715, allocations: 6.248 MB / 0.7243 GB, free: 7.961 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.5739, allocations: 1.28 MB / 0.7255 GB, free: 6.672 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.5751, allocations: 0.6958 MB / 0.7262 GB, free: 5.973 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004877/0.58, allocations: 4.014 MB / 0.7301 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001342/0.5813, allocations: 0.7395 MB / 0.7308 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 2.865e-06/0.5814, allocations: 0 / 0.7308 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.008055/0.5894, allocations: 3.958 MB / 0.7347 GB, free: 12.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.5895, allocations: 72.7 kB / 0.7348 GB, free: 12.62 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008805/0.5904, allocations: 0.7127 MB / 0.7355 GB, free: 11.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.863e-05/0.5905, allocations: 45.7 kB / 0.7355 GB, free: 11.85 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004224/0.5909, allocations: 0.5317 MB / 0.736 GB, free: 11.31 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003535/0.5913, allocations: 433.6 kB / 0.7364 GB, free: 10.88 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004001/0.5917, allocations: 202.9 kB / 0.7366 GB, free: 10.68 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.5918, allocations: 345.9 kB / 0.737 GB, free: 10.33 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.5928, allocations: 0.514 MB / 0.7375 GB, free: 9.816 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.5939, allocations: 0.629 MB / 0.7381 GB, free: 9.168 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.5962, allocations: 1.24 MB / 0.7393 GB, free: 7.902 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.5962, allocations: 4 kB / 0.7393 GB, free: 7.898 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003104/0.5993, allocations: 1.587 MB / 0.7408 GB, free: 6.293 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.207e-05/0.5993, allocations: 33.7 kB / 0.7409 GB, free: 6.254 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.5994, allocations: 4.188 kB / 0.7409 GB, free: 6.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005368/0.5999, allocations: 154.5 kB / 0.741 GB, free: 6.098 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009911/0.6009, allocations: 251.6 kB / 0.7413 GB, free: 5.852 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003902/0.6048, allocations: 2.515 MB / 0.7437 GB, free: 3.207 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008091/0.6056, allocations: 87.81 kB / 0.7438 GB, free: 3.121 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.6058, allocations: 51.98 kB / 0.7439 GB, free: 3.07 MB / 0.545 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.0005005/0.6063, allocations: 293.6 kB / 0.7441 GB, free: 2.773 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.6065, allocations: 118.6 kB / 0.7443 GB, free: 2.656 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004386/0.6109, allocations: 2.316 MB / 0.7465 GB, free: 364 kB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.359e-05/0.611, allocations: 16 kB / 0.7465 GB, free: 348 kB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.611, allocations: 7.938 kB / 0.7465 GB, free: 340 kB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.611, allocations: 11.97 kB / 0.7465 GB, free: 328 kB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005706/0.6167, allocations: 3.415 MB / 0.7499 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.6167, allocations: 4 kB / 0.7499 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.6177, allocations: 263.8 kB / 0.7501 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00044/0.6182, allocations: 144.6 kB / 0.7503 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.6183, allocations: 43.98 kB / 0.7503 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002494/0.6208, allocations: 2.225 MB / 0.7525 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.6208, allocations: 0 / 0.7525 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004437/0.6253, allocations: 2.595 MB / 0.755 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000267/0.6256, allocations: 187.5 kB / 0.7552 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001845/0.6258, allocations: 31.94 kB / 0.7552 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007433/0.6265, allocations: 91.83 kB / 0.7553 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.6268, allocations: 121.1 kB / 0.7554 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.6269, allocations: 51.98 kB / 0.7555 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000638/0.6275, allocations: 0.5155 MB / 0.756 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6275, allocations: 0 / 0.756 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001429/0.629, allocations: 0.5117 MB / 0.7565 GB, free: 5.863 MB / 0.5606 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.0009188/0.6299, allocations: 0.5817 MB / 0.7571 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002897/0.6328, allocations: 1.63 MB / 0.7586 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6328, allocations: 0 / 0.7586 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.6345, allocations: 0.9983 MB / 0.7596 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.6363, allocations: 366.9 kB / 0.76 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005813/0.6421, allocations: 3.212 MB / 0.7631 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000779/0.6429, allocations: 1.191 MB / 0.7643 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001221/0.6442, allocations: 354 kB / 0.7646 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005242/0.6447, allocations: 143.4 kB / 0.7647 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of SimCode: time 5.91e-07/0.6447, allocations: 3.938 kB / 0.7647 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of Templates: time 0.04269/0.6874, allocations: 25.39 MB / 0.7895 GB, free: 4.148 MB / 0.5919 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches