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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.004842/0.004842, allocations: 168.6 kB / 16.26 MB, free: 6.652 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.162/1.162, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5502/0.5502, allocations: 89.65 MB / 381.1 MB, free: 11.35 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002984/0.0002984, allocations: 8.125 kB / 460.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09859, allocations: 68.84 MB / 0.5172 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.352/0.4506, allocations: 169.2 MB / 0.6824 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.4626, allocations: 10.99 MB / 0.6932 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.4636, allocations: 27.81 kB / 0.6932 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.4653, allocations: 0.7036 MB / 0.6939 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003242/0.4685, allocations: 1.5 MB / 0.6954 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002184/0.4707, allocations: 0.9699 MB / 0.6963 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.003097/0.4738, allocations: 3.236 MB / 0.6995 GB, free: 188 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/0.4744, allocations: 419 kB / 0.6999 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001304/0.4757, allocations: 0.8248 MB / 0.7007 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001623/0.4774, allocations: 1.253 MB / 0.7019 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.4775, allocations: 60 kB / 0.7019 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003235/0.4808, allocations: 1.86 MB / 0.7038 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002578/0.4811, allocations: 254.8 kB / 0.704 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007173/0.4818, allocations: 0.6935 MB / 0.7047 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002773/0.4846, allocations: 2.336 MB / 0.707 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.4846, allocations: 0 / 0.707 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.492e-06/0.4846, allocations: 0 / 0.707 GB, free: 8.453 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.334e-05/0.4846, allocations: 0 / 0.707 GB, free: 8.453 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.003108/0.4877, allocations: 1.641 MB / 0.7086 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.4878, allocations: 8.031 kB / 0.7086 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002351/0.488, allocations: 181.8 kB / 0.7087 GB, free: 6.555 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002274/0.4882, allocations: 151.2 kB / 0.7089 GB, free: 6.406 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009194/0.4892, allocations: 0.7212 MB / 0.7096 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.441e-05/0.4892, allocations: 94.78 kB / 0.7097 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.4894, allocations: 120.3 kB / 0.7098 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002315/0.4917, allocations: 1.544 MB / 0.7113 GB, free: 3.848 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.4918, allocations: 3.984 kB / 0.7113 GB, free: 3.844 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-05/0.4919, allocations: 52 kB / 0.7114 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.4919, allocations: 32 kB / 0.7114 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002571/0.4945, allocations: 1.688 MB / 0.713 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006223/0.5007, allocations: 6.209 MB / 0.7191 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/0.5029, allocations: 1.315 MB / 0.7204 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.504, allocations: 0.7036 MB / 0.7211 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004254/0.5083, allocations: 4.037 MB / 0.725 GB, free: 4.727 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00117/0.5094, allocations: 0.7395 MB / 0.7257 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=128): time 2.535e-06/0.5094, allocations: 7.938 kB / 0.7257 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of matching and sorting (n=129): time 0.006619/0.5161, allocations: 3.962 MB / 0.7296 GB, free: 15.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.5161, allocations: 76.7 kB / 0.7297 GB, free: 15.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005962/0.5167, allocations: 0.5825 MB / 0.7303 GB, free: 15.23 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.595e-05/0.5168, allocations: 49.7 kB / 0.7303 GB, free: 15.18 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.5171, allocations: 472.5 kB / 0.7308 GB, free: 14.71 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/0.5174, allocations: 437.6 kB / 0.7312 GB, free: 14.28 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/0.5176, allocations: 89.66 kB / 0.7313 GB, free: 14.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5177, allocations: 349.9 kB / 0.7316 GB, free: 13.84 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008872/0.5186, allocations: 0.5257 MB / 0.7321 GB, free: 13.31 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009639/0.5196, allocations: 0.6369 MB / 0.7327 GB, free: 12.65 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001962/0.5215, allocations: 1.263 MB / 0.734 GB, free: 11.37 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5215, allocations: 7.875 kB / 0.734 GB, free: 11.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002605/0.5242, allocations: 1.603 MB / 0.7355 GB, free: 9.738 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.378e-05/0.5242, allocations: 33.7 kB / 0.7356 GB, free: 9.699 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.5242, allocations: 0 / 0.7356 GB, free: 9.699 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004398/0.5247, allocations: 152.8 kB / 0.7357 GB, free: 9.547 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008458/0.5255, allocations: 255.7 kB / 0.736 GB, free: 9.297 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003503/0.529, allocations: 2.535 MB / 0.7384 GB, free: 6.625 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005953/0.5296, allocations: 91.78 kB / 0.7385 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.241e-05/0.5297, allocations: 51.97 kB / 0.7386 GB, free: 6.484 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.0003744/0.5301, allocations: 289.5 kB / 0.7388 GB, free: 6.191 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.5302, allocations: 98.88 kB / 0.7389 GB, free: 6.094 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.534, allocations: 2.32 MB / 0.7412 GB, free: 3.789 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.534, allocations: 20 kB / 0.7412 GB, free: 3.77 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.534, allocations: 7.938 kB / 0.7412 GB, free: 3.762 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.5341, allocations: 7.969 kB / 0.7412 GB, free: 3.754 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004747/0.5388, allocations: 3.4 MB / 0.7446 GB, free: 284 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5388, allocations: 3.938 kB / 0.7446 GB, free: 280 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008504/0.5397, allocations: 275.7 kB / 0.7448 GB, free: 4 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003768/0.5401, allocations: 144.9 kB / 0.745 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.578e-05/0.5402, allocations: 39.98 kB / 0.745 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.5424, allocations: 2.236 MB / 0.7472 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5424, allocations: 3.938 kB / 0.7472 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003835/0.5462, allocations: 2.606 MB / 0.7497 GB, free: 10.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.5464, allocations: 183.8 kB / 0.7499 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.5465, allocations: 31.94 kB / 0.7499 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006103/0.5472, allocations: 99.83 kB / 0.75 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.5474, allocations: 113.2 kB / 0.7501 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.026e-05/0.5474, allocations: 55.97 kB / 0.7502 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004339/0.5479, allocations: 439 kB / 0.7506 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.5479, allocations: 0 / 0.7506 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001131/0.549, allocations: 0.5116 MB / 0.7511 GB, free: 9.391 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.004761/0.5538, allocations: 3.63 MB / 0.7547 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00251/0.5563, allocations: 1.649 MB / 0.7563 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5563, allocations: 4 kB / 0.7563 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001488/0.5578, allocations: 0.9983 MB / 0.7572 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.5595, allocations: 356.1 kB / 0.7576 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/0.5734, allocations: 10.66 MB / 0.768 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006452/0.5741, allocations: 1.137 MB / 0.7691 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009235/0.575, allocations: 335.6 kB / 0.7694 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006661/0.5757, allocations: 0.511 MB / 0.7699 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of SimCode: time 3.91e-07/0.5757, allocations: 4 kB / 0.7699 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05083/0.6265, allocations: 34.62 MB / 0.8037 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.6268, allocations: 238.6 kB / 0.804 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.465/3.091, allocations: 3.938 kB / 0.804 GB, free: 3.176 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_TanValve.fmu > 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