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: "" <> 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.006067/0.006067, allocations: 103.9 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.001413/0.001413, allocations: 194.8 kB / 16.67 MB, free: 6.355 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6061/0.6061, allocations: 91.18 MB / 381.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 87.86 kB / 0.5164 GB, free: 9.5 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1281, allocations: 67.68 MB / 0.5825 GB, free: 5.734 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4368/0.5649, allocations: 164.4 MB / 0.743 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01294/0.5779, allocations: 12.91 MB / 0.7556 GB, free: 7.078 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.5791, allocations: 35.75 kB / 0.7556 GB, free: 7.043 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001583/0.5807, allocations: 0.5824 MB / 0.7562 GB, free: 6.457 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002282/0.583, allocations: 0.8696 MB / 0.757 GB, free: 5.582 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002065/0.5851, allocations: 0.8252 MB / 0.7578 GB, free: 4.754 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00166/0.5867, allocations: 1.337 MB / 0.7592 GB, free: 3.41 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006272/0.5874, allocations: 315 kB / 0.7595 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008092/0.5882, allocations: 0.5524 MB / 0.76 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008678/0.5891, allocations: 0.6614 MB / 0.7606 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 9.638e-05/0.5892, allocations: 76 kB / 0.7607 GB, free: 1.797 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002896/0.5921, allocations: 1.4 MB / 0.7621 GB, free: 404 kB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001635/0.5923, allocations: 191.1 kB / 0.7623 GB, free: 212 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000426/0.5927, allocations: 0.5089 MB / 0.7628 GB, free: 15.7 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002428/0.5951, allocations: 1.565 MB / 0.7643 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.5952, allocations: 3.984 kB / 0.7643 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5952, allocations: 0 / 0.7643 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.5952, allocations: 3.938 kB / 0.7643 GB, free: 14.12 MB / 0.6075 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.002268/0.5975, allocations: 1.422 MB / 0.7657 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.5975, allocations: 12.03 kB / 0.7657 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.5976, allocations: 114.7 kB / 0.7658 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.5978, allocations: 124.1 kB / 0.7659 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.5991, allocations: 0.7796 MB / 0.7667 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.5991, allocations: 50 kB / 0.7667 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.489e-05/0.5992, allocations: 68 kB / 0.7668 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.6004, allocations: 0.7313 MB / 0.7675 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.6004, allocations: 4 kB / 0.7675 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.851e-05/0.6005, allocations: 24 kB / 0.7675 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.6005, allocations: 20.88 kB / 0.7676 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009661/0.6015, allocations: 0.6325 MB / 0.7682 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.6048, allocations: 3.108 MB / 0.7712 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.6059, allocations: 0.5675 MB / 0.7718 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003877/0.6063, allocations: 267.7 kB / 0.772 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002112/0.6084, allocations: 2.584 MB / 0.7745 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.6085, allocations: 43.11 kB / 0.7746 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=55): time 2.184e-06/0.6085, allocations: 3.938 kB / 0.7746 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56): time 0.003124/0.6116, allocations: 1.773 MB / 0.7763 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.6116, allocations: 59.97 kB / 0.7764 GB, free: 0.7734 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007021/0.6123, allocations: 0.6927 MB / 0.7771 GB, free: 72 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.6124, allocations: 37.7 kB / 0.7771 GB, free: 28 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003522/0.6127, allocations: 432.2 kB / 0.7775 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.6129, allocations: 197.1 kB / 0.7777 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001254/0.613, allocations: 86.25 kB / 0.7778 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.208e-05/0.6131, allocations: 330 kB / 0.7781 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002973/0.6134, allocations: 161 kB / 0.7782 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003433/0.6138, allocations: 231.2 kB / 0.7785 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.6144, allocations: 435.7 kB / 0.7789 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.6145, allocations: 3.625 kB / 0.7789 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0012/0.6157, allocations: 0.6431 MB / 0.7795 GB, free: 13.49 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.6157, allocations: 4 kB / 0.7795 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.6157, allocations: 0 / 0.7795 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004031/0.6161, allocations: 112.9 kB / 0.7796 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.6165, allocations: 103.8 kB / 0.7797 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.6185, allocations: 2.045 MB / 0.7817 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.619, allocations: 24.05 kB / 0.7817 GB, free: 11.06 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-05/0.619, allocations: 16 kB / 0.7817 GB, free: 11.05 MB / 0.6231 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.0002855/0.6193, allocations: 217.6 kB / 0.782 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.6194, allocations: 90.81 kB / 0.782 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001565/0.621, allocations: 0.8634 MB / 0.7829 GB, free: 9.84 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.621, allocations: 4 kB / 0.7829 GB, free: 9.836 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.621, allocations: 4 kB / 0.7829 GB, free: 9.832 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.6211, allocations: 11.92 kB / 0.7829 GB, free: 9.82 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002253/0.6233, allocations: 1.535 MB / 0.7844 GB, free: 8.219 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.6233, allocations: 0 / 0.7844 GB, free: 8.219 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003806/0.6237, allocations: 91.88 kB / 0.7845 GB, free: 8.129 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003504/0.6241, allocations: 116.8 kB / 0.7846 GB, free: 8.012 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.619e-05/0.6241, allocations: 19.98 kB / 0.7846 GB, free: 7.992 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001958/0.6261, allocations: 2.04 MB / 0.7866 GB, free: 5.812 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.6261, allocations: 4.094 kB / 0.7866 GB, free: 5.809 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.6277, allocations: 0.9877 MB / 0.7876 GB, free: 4.785 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.6279, allocations: 153.2 kB / 0.7877 GB, free: 4.617 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.387e-05/0.628, allocations: 12 kB / 0.7877 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/0.6283, allocations: 16 kB / 0.7878 GB, free: 4.59 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.6285, allocations: 52.42 kB / 0.7878 GB, free: 4.539 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.6285, allocations: 16 kB / 0.7878 GB, free: 4.523 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000544/0.6291, allocations: 0.5108 MB / 0.7883 GB, free: 4.02 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6291, allocations: 0 / 0.7883 GB, free: 4.02 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008146/0.6299, allocations: 327.8 kB / 0.7886 GB, free: 3.699 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.00245/0.6324, allocations: 1.904 MB / 0.7905 GB, free: 1.754 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001263/0.6337, allocations: 0.6192 MB / 0.7911 GB, free: 1.121 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.6337, allocations: 0 / 0.7911 GB, free: 1.121 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000675/0.6344, allocations: 438 kB / 0.7915 GB, free: 0.6836 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.6356, allocations: 272.9 kB / 0.7918 GB, free: 440 kB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008368/0.644, allocations: 6.248 MB / 0.7979 GB, free: 10 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/0.6446, allocations: 1.001 MB / 0.7989 GB, free: 8.973 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004515/0.645, allocations: 149.8 kB / 0.799 GB, free: 8.824 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004884/0.6455, allocations: 375.2 kB / 0.7994 GB, free: 8.457 MB / 0.6387 GB Notification: Performance of SimCode: time 1.723e-06/0.6456, allocations: 0 / 0.7994 GB, free: 8.457 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07524/0.7208, allocations: 25.97 MB / 0.8247 GB, free: 14.71 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/13.01, allocations: 3.938 kB / 0.8247 GB, free: 14.71 MB / 0.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > 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