Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_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.006766/0.006767, allocations: 101.7 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.001622/0.001622, allocations: 194.1 kB / 16.68 MB, free: 6.352 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7497/0.7497, allocations: 93.7 MB / 384.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002304/0.002304, allocations: 75.88 kB / 0.5199 GB, free: 6.309 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1598, allocations: 68.27 MB / 0.5866 GB, free: 1.961 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.3803/0.5401, allocations: 164.4 MB / 0.7471 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01399/0.5541, allocations: 12.93 MB / 0.7597 GB, free: 1.336 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006681/0.5548, allocations: 39.75 kB / 0.7598 GB, free: 1.297 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.5562, allocations: 0.5823 MB / 0.7604 GB, free: 0.7109 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001959/0.5582, allocations: 0.8814 MB / 0.7612 GB, free: 15.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001801/0.56, allocations: 0.8057 MB / 0.762 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00155/0.5616, allocations: 1.36 MB / 0.7633 GB, free: 13.65 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.5621, allocations: 335.7 kB / 0.7637 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008123/0.5629, allocations: 0.5562 MB / 0.7642 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008839/0.5638, allocations: 0.6575 MB / 0.7648 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001363/0.5639, allocations: 80 kB / 0.7649 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002488/0.5664, allocations: 1.396 MB / 0.7663 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001929/0.5666, allocations: 195.1 kB / 0.7665 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005172/0.5672, allocations: 0.5167 MB / 0.767 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002169/0.5693, allocations: 1.572 MB / 0.7685 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.5694, allocations: 0 / 0.7685 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5694, allocations: 0 / 0.7685 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.357e-05/0.5694, allocations: 3.938 kB / 0.7685 GB, free: 8.328 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.002355/0.5718, allocations: 1.478 MB / 0.7699 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.5718, allocations: 8.031 kB / 0.77 GB, free: 6.789 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.5719, allocations: 110.7 kB / 0.7701 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001887/0.5721, allocations: 124.1 kB / 0.7702 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.5733, allocations: 0.7929 MB / 0.771 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.5733, allocations: 50 kB / 0.771 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-05/0.5734, allocations: 71.95 kB / 0.7711 GB, free: 5.598 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.5746, allocations: 0.743 MB / 0.7718 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.5746, allocations: 0 / 0.7718 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.546e-05/0.5747, allocations: 28 kB / 0.7718 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.5747, allocations: 19.94 kB / 0.7718 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.5757, allocations: 0.6286 MB / 0.7725 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003363/0.5791, allocations: 3.12 MB / 0.7755 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.5803, allocations: 0.5753 MB / 0.7761 GB, free: 152 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004174/0.5807, allocations: 259.1 kB / 0.7763 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002317/0.5831, allocations: 2.588 MB / 0.7788 GB, free: 12.89 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.5831, allocations: 43.12 kB / 0.7789 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=55): time 1.472e-06/0.5831, allocations: 0 / 0.7789 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of matching and sorting (n=56): time 0.003212/0.5863, allocations: 1.798 MB / 0.7806 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.5864, allocations: 59.97 kB / 0.7807 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007897/0.5872, allocations: 0.6967 MB / 0.7814 GB, free: 10.17 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.5872, allocations: 33.7 kB / 0.7814 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003156/0.5875, allocations: 440.9 kB / 0.7818 GB, free: 9.699 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/0.5877, allocations: 210.2 kB / 0.782 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.5878, allocations: 90.25 kB / 0.7821 GB, free: 9.398 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.588, allocations: 330 kB / 0.7824 GB, free: 9.07 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003259/0.5883, allocations: 165 kB / 0.7826 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003675/0.5887, allocations: 227.2 kB / 0.7828 GB, free: 8.668 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007386/0.5894, allocations: 431.7 kB / 0.7832 GB, free: 8.23 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.5894, allocations: 3.938 kB / 0.7832 GB, free: 8.227 MB / 0.6231 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001167/0.5906, allocations: 0.6436 MB / 0.7838 GB, free: 7.574 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.5906, allocations: 10.03 kB / 0.7839 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.5907, allocations: 0 / 0.7839 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003966/0.5911, allocations: 120.9 kB / 0.784 GB, free: 7.445 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.5914, allocations: 95.83 kB / 0.7841 GB, free: 7.352 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002142/0.5936, allocations: 2.048 MB / 0.7861 GB, free: 5.172 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002736/0.5938, allocations: 15.98 kB / 0.7861 GB, free: 5.156 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.5939, allocations: 20 kB / 0.7861 GB, free: 5.137 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.0002679/0.5942, allocations: 223.6 kB / 0.7863 GB, free: 4.91 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.5943, allocations: 91.39 kB / 0.7864 GB, free: 4.82 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001571/0.5959, allocations: 0.8684 MB / 0.7872 GB, free: 3.914 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.5959, allocations: 8 kB / 0.7873 GB, free: 3.906 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5959, allocations: 0 / 0.7873 GB, free: 3.906 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.5959, allocations: 8.031 kB / 0.7873 GB, free: 3.898 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.5982, allocations: 1.543 MB / 0.7888 GB, free: 2.289 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.5982, allocations: 0 / 0.7888 GB, free: 2.289 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003046/0.5985, allocations: 87.89 kB / 0.7889 GB, free: 2.203 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003503/0.5988, allocations: 116.8 kB / 0.789 GB, free: 2.086 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.064e-05/0.5989, allocations: 16.88 kB / 0.789 GB, free: 2.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/0.601, allocations: 2.056 MB / 0.791 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.601, allocations: 0 / 0.791 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001582/0.6026, allocations: 0.9845 MB / 0.7919 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.6027, allocations: 160.5 kB / 0.7921 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.128e-05/0.6028, allocations: 12 kB / 0.7921 GB, free: 14.68 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.6031, allocations: 20.05 kB / 0.7921 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.886e-05/0.6032, allocations: 52.44 kB / 0.7922 GB, free: 14.6 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/0.6033, allocations: 24.8 kB / 0.7922 GB, free: 14.58 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0005979/0.6039, allocations: 0.5029 MB / 0.7927 GB, free: 14.08 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6039, allocations: 0 / 0.7927 GB, free: 14.08 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0007416/0.6046, allocations: 335.4 kB / 0.793 GB, free: 13.75 MB / 0.6387 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.002375/0.607, allocations: 1.909 MB / 0.7949 GB, free: 11.8 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001138/0.6082, allocations: 0.627 MB / 0.7955 GB, free: 11.16 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.6082, allocations: 0 / 0.7955 GB, free: 11.16 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0007114/0.6089, allocations: 441.6 kB / 0.7959 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.61, allocations: 273.8 kB / 0.7962 GB, free: 10.47 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008324/0.6183, allocations: 6.317 MB / 0.8023 GB, free: 3.965 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/0.6189, allocations: 1.005 MB / 0.8033 GB, free: 2.93 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003902/0.6193, allocations: 145.9 kB / 0.8035 GB, free: 2.781 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004423/0.6198, allocations: 379.2 kB / 0.8038 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of SimCode: time 3.2e-07/0.6198, allocations: 0 / 0.8038 GB, free: 2.414 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.197/4.817, allocations: 25.78 MB / 0.829 GB, free: 8.867 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.72/24.54, allocations: 0 / 0.829 GB, free: 8.867 MB / 0.67 GB (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches