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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_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.007718/0.007718, allocations: 98.64 kB / 15.73 MB, free: 6.449 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.001827/0.001827, allocations: 197.7 kB / 16.68 MB, free: 6.348 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6872/0.6872, allocations: 89.46 MB / 380 MB, free: 10.96 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002246/0.002246, allocations: 87.86 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1352, allocations: 67.3 MB / 0.5796 GB, free: 8.379 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4556/0.5908, allocations: 164.2 MB / 0.74 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01446/0.6053, allocations: 12.85 MB / 0.7525 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007142/0.606, allocations: 23.88 kB / 0.7526 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.6075, allocations: 0.5747 MB / 0.7531 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001966/0.6096, allocations: 0.8269 MB / 0.7539 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001994/0.6116, allocations: 0.8174 MB / 0.7547 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001324/0.6129, allocations: 1.232 MB / 0.7559 GB, free: 7.809 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004481/0.6134, allocations: 311 kB / 0.7562 GB, free: 7.492 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006366/0.614, allocations: 0.4941 MB / 0.7567 GB, free: 6.996 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007869/0.6148, allocations: 0.646 MB / 0.7573 GB, free: 6.348 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001115/0.6149, allocations: 76 kB / 0.7574 GB, free: 6.273 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002678/0.6176, allocations: 1.388 MB / 0.7588 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001624/0.6178, allocations: 195.2 kB / 0.759 GB, free: 4.691 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0004363/0.6182, allocations: 481.5 kB / 0.7594 GB, free: 4.219 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002039/0.6203, allocations: 1.448 MB / 0.7608 GB, free: 2.77 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.6203, allocations: 7.938 kB / 0.7608 GB, free: 2.762 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.513e-06/0.6203, allocations: 0 / 0.7608 GB, free: 2.762 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.042e-05/0.6203, allocations: 0 / 0.7608 GB, free: 2.762 MB / 0.5919 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.002201/0.6225, allocations: 1.331 MB / 0.7621 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.6226, allocations: 16.03 kB / 0.7622 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.6227, allocations: 108.1 kB / 0.7623 GB, free: 1.25 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.6229, allocations: 112.3 kB / 0.7624 GB, free: 1.141 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007518/0.6236, allocations: 0.5661 MB / 0.7629 GB, free: 0.5352 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.647e-05/0.6237, allocations: 54.38 kB / 0.763 GB, free: 492 kB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.701e-05/0.6238, allocations: 72.52 kB / 0.763 GB, free: 420 kB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.625, allocations: 0.7469 MB / 0.7638 GB, free: 15.65 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.625, allocations: 0 / 0.7638 GB, free: 15.65 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/0.6251, allocations: 24 kB / 0.7638 GB, free: 15.63 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.956e-05/0.6251, allocations: 20 kB / 0.7638 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.6262, allocations: 0.6286 MB / 0.7644 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003399/0.6296, allocations: 3.075 MB / 0.7674 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.6308, allocations: 0.5714 MB / 0.768 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004244/0.6312, allocations: 259 kB / 0.7682 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002412/0.6337, allocations: 2.6 MB / 0.7708 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.6337, allocations: 35.12 kB / 0.7708 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=55): time 1.583e-06/0.6337, allocations: 0 / 0.7708 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56): time 0.003315/0.637, allocations: 1.756 MB / 0.7725 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.6371, allocations: 55.97 kB / 0.7726 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006618/0.6377, allocations: 0.5667 MB / 0.7731 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.6378, allocations: 37.7 kB / 0.7732 GB, free: 5.164 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.6381, allocations: 388.8 kB / 0.7735 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.6382, allocations: 202.2 kB / 0.7737 GB, free: 4.582 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.6384, allocations: 90.25 kB / 0.7738 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.6386, allocations: 382.8 kB / 0.7742 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003257/0.6389, allocations: 165 kB / 0.7743 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003771/0.6393, allocations: 223.2 kB / 0.7745 GB, free: 3.707 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007615/0.6401, allocations: 431.8 kB / 0.775 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.6401, allocations: 1.875 kB / 0.775 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001199/0.6413, allocations: 0.6357 MB / 0.7756 GB, free: 2.621 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.6413, allocations: 11.94 kB / 0.7756 GB, free: 2.609 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.6413, allocations: 3.984 kB / 0.7756 GB, free: 2.605 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004109/0.6417, allocations: 112.9 kB / 0.7757 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.6421, allocations: 95.89 kB / 0.7758 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.6444, allocations: 2.051 MB / 0.7778 GB, free: 212 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.6447, allocations: 16 kB / 0.7778 GB, free: 196 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.265e-05/0.6447, allocations: 19.98 kB / 0.7778 GB, free: 176 kB / 0.6075 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.0002885/0.645, allocations: 205.8 kB / 0.778 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.6451, allocations: 76.34 kB / 0.7781 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.6467, allocations: 0.8656 MB / 0.7789 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.6467, allocations: 4 kB / 0.7789 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6467, allocations: 4 kB / 0.779 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.6468, allocations: 3.984 kB / 0.779 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.649, allocations: 1.5 MB / 0.7804 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.649, allocations: 2.938 kB / 0.7804 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.6493, allocations: 87.89 kB / 0.7805 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003541/0.6497, allocations: 120.8 kB / 0.7806 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.131e-05/0.6498, allocations: 19.98 kB / 0.7806 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002167/0.6519, allocations: 2.044 MB / 0.7826 GB, free: 11 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.652, allocations: 7.969 kB / 0.7826 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/0.6536, allocations: 0.9612 MB / 0.7836 GB, free: 10 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.6538, allocations: 152.6 kB / 0.7837 GB, free: 9.832 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.892e-05/0.6538, allocations: 12 kB / 0.7837 GB, free: 9.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002808/0.6541, allocations: 20.05 kB / 0.7838 GB, free: 9.801 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.598e-05/0.6542, allocations: 48.44 kB / 0.7838 GB, free: 9.75 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/0.6543, allocations: 19.98 kB / 0.7838 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005107/0.6548, allocations: 439.1 kB / 0.7842 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6548, allocations: 0 / 0.7842 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008552/0.6557, allocations: 331.3 kB / 0.7846 GB, free: 8.984 MB / 0.6231 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.002555/0.6582, allocations: 1.895 MB / 0.7864 GB, free: 7.051 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001203/0.6594, allocations: 0.6194 MB / 0.787 GB, free: 6.418 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.6595, allocations: 0 / 0.787 GB, free: 6.418 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0007256/0.6602, allocations: 434 kB / 0.7874 GB, free: 5.984 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.6613, allocations: 268.3 kB / 0.7877 GB, free: 5.738 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008033/0.6694, allocations: 5.748 MB / 0.7933 GB, free: 15.85 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005796/0.67, allocations: 0.9651 MB / 0.7942 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003787/0.6703, allocations: 125.7 kB / 0.7944 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003977/0.6707, allocations: 311.3 kB / 0.7947 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of SimCode: time 3.41e-07/0.6708, allocations: 0 / 0.7947 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05484/0.7256, allocations: 23.96 MB / 0.8181 GB, free: 6.684 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.48, allocations: 2.5 kB / 0.8181 GB, free: 6.684 MB / 0.6544 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv","/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