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.001749/0.001749, allocations: 113.5 kB / 16.37 MB, free: 5.996 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.002038/0.002038, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7176/0.7176, allocations: 89.5 MB / 380.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 79.88 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1487, allocations: 67.3 MB / 0.5146 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4172/0.566, allocations: 164.2 MB / 0.675 GB, free: 3 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0133/0.5794, allocations: 12.85 MB / 0.6875 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000909/0.5803, allocations: 15.94 kB / 0.6875 GB, free: 6.113 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0016/0.5819, allocations: 0.5708 MB / 0.6881 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00226/0.5843, allocations: 0.8347 MB / 0.6889 GB, free: 4.699 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.00221/0.5865, allocations: 0.8135 MB / 0.6897 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.001603/0.5881, allocations: 1.245 MB / 0.6909 GB, free: 2.641 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004741/0.5886, allocations: 302.9 kB / 0.6912 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007594/0.5894, allocations: 0.498 MB / 0.6917 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000761/0.5901, allocations: 0.6422 MB / 0.6923 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.437e-05/0.5902, allocations: 76 kB / 0.6924 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0029/0.5931, allocations: 1.392 MB / 0.6938 GB, free: 15.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.5933, allocations: 187.2 kB / 0.6939 GB, free: 15.57 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004451/0.5937, allocations: 485.5 kB / 0.6944 GB, free: 15.09 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002351/0.5961, allocations: 1.445 MB / 0.6958 GB, free: 13.64 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.5961, allocations: 4 kB / 0.6958 GB, free: 13.64 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5961, allocations: 0 / 0.6958 GB, free: 13.64 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.227e-05/0.5962, allocations: 4 kB / 0.6958 GB, free: 13.64 MB / 0.545 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.002089/0.5983, allocations: 1.297 MB / 0.6971 GB, free: 12.29 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.5983, allocations: 8.594 kB / 0.6971 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.5985, allocations: 107.6 kB / 0.6972 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007636/0.5992, allocations: 0.5578 MB / 0.6977 GB, free: 11.58 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.55e-05/0.5993, allocations: 59.19 kB / 0.6978 GB, free: 11.52 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.916e-05/0.5994, allocations: 72.38 kB / 0.6979 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.6005, allocations: 0.7395 MB / 0.6986 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.6006, allocations: 1.406 kB / 0.6986 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.419e-05/0.6006, allocations: 24 kB / 0.6986 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.767e-05/0.6007, allocations: 20 kB / 0.6986 GB, free: 10.66 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009976/0.6017, allocations: 0.6324 MB / 0.6993 GB, free: 10.03 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/0.6048, allocations: 3.071 MB / 0.7023 GB, free: 6.648 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.606, allocations: 0.5717 MB / 0.7028 GB, free: 6.074 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004036/0.6064, allocations: 262.4 kB / 0.7031 GB, free: 5.812 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002347/0.6088, allocations: 2.588 MB / 0.7056 GB, free: 2.816 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.6088, allocations: 35.62 kB / 0.7056 GB, free: 2.773 MB / 0.545 GB Notification: Performance of pre-optimization done (n=55): time 1.813e-06/0.6088, allocations: 4 kB / 0.7056 GB, free: 2.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=56): time 0.003183/0.612, allocations: 1.735 MB / 0.7073 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.6121, allocations: 63.91 kB / 0.7074 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000643/0.6127, allocations: 0.5712 MB / 0.7079 GB, free: 288 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.6128, allocations: 37.7 kB / 0.708 GB, free: 244 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.613, allocations: 380.3 kB / 0.7083 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.6131, allocations: 193.1 kB / 0.7085 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.6133, allocations: 94.16 kB / 0.7086 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.6134, allocations: 378.8 kB / 0.709 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.6138, allocations: 170.5 kB / 0.7091 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.6141, allocations: 223.2 kB / 0.7093 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007153/0.6148, allocations: 436.2 kB / 0.7098 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.6148, allocations: 7.938 kB / 0.7098 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001104/0.616, allocations: 0.6277 MB / 0.7104 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.616, allocations: 4.625 kB / 0.7104 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.616, allocations: 0 / 0.7104 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004034/0.6164, allocations: 116.8 kB / 0.7105 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003592/0.6168, allocations: 100.3 kB / 0.7106 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.6189, allocations: 2.045 MB / 0.7126 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.6192, allocations: 16.97 kB / 0.7126 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.785e-05/0.6192, allocations: 19.98 kB / 0.7126 GB, free: 11.26 MB / 0.5606 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.0002913/0.6195, allocations: 199.8 kB / 0.7128 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.6197, allocations: 67.16 kB / 0.7129 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.6212, allocations: 0.8665 MB / 0.7137 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.6212, allocations: 4 kB / 0.7137 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6212, allocations: 4 kB / 0.7137 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.6212, allocations: 3.984 kB / 0.7137 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/0.6234, allocations: 1.5 MB / 0.7152 GB, free: 8.547 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.6234, allocations: 4.688 kB / 0.7152 GB, free: 8.543 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.6238, allocations: 87.89 kB / 0.7153 GB, free: 8.457 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003498/0.6241, allocations: 117.9 kB / 0.7154 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.941e-05/0.6242, allocations: 19.98 kB / 0.7154 GB, free: 8.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.6262, allocations: 2.046 MB / 0.7174 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6262, allocations: 7.969 kB / 0.7174 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.6277, allocations: 0.9569 MB / 0.7184 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.6279, allocations: 152.1 kB / 0.7185 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.087e-05/0.628, allocations: 13.31 kB / 0.7185 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.6283, allocations: 19.98 kB / 0.7185 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.6284, allocations: 44.56 kB / 0.7186 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.515e-05/0.6284, allocations: 16 kB / 0.7186 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004763/0.6289, allocations: 443 kB / 0.719 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6289, allocations: 5.531 kB / 0.719 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008651/0.6298, allocations: 323.8 kB / 0.7193 GB, free: 4.133 MB / 0.5606 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.0006501/0.6304, allocations: 477 kB / 0.7198 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001138/0.6316, allocations: 0.6192 MB / 0.7204 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6316, allocations: 0 / 0.7204 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006794/0.6323, allocations: 442.1 kB / 0.7208 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.6334, allocations: 266.4 kB / 0.7211 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.6355, allocations: 1.406 MB / 0.7224 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/0.636, allocations: 0.9652 MB / 0.7234 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003682/0.6363, allocations: 122 kB / 0.7235 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.6365, allocations: 63.36 kB / 0.7236 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of SimCode: time 3.81e-07/0.6365, allocations: 4 kB / 0.7236 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of Templates: time 0.238/0.8745, allocations: 16.16 MB / 0.7393 GB, free: 183.4 MB / 0.5762 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 -s cvode -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