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: translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_dev_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_dev_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.001663/0.001663, allocations: 108.8 kB / 16.41 MB, free: 6.5 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.001701/0.001701, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.444/1.444, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7555/0.7555, allocations: 97.64 MB / 388.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002443/0.002443, allocations: 85.58 kB / 0.5268 GB, free: 38.39 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1048, allocations: 69.24 MB / 0.5944 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4997/0.6045, allocations: 164.8 MB / 0.7554 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01385/0.6183, allocations: 12.95 MB / 0.768 GB, free: 1.406 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.6196, allocations: 38.44 kB / 0.768 GB, free: 1.406 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.6213, allocations: 0.5884 MB / 0.7686 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002771/0.6241, allocations: 0.8972 MB / 0.7695 GB, free: 1.367 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002477/0.6266, allocations: 0.8137 MB / 0.7703 GB, free: 1.348 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002276/0.6289, allocations: 1.361 MB / 0.7716 GB, free: 1.348 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004921/0.6294, allocations: 212.7 kB / 0.7718 GB, free: 1.305 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.6306, allocations: 0.5641 MB / 0.7724 GB, free: 1.305 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001093/0.6317, allocations: 0.6704 MB / 0.773 GB, free: 1.301 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001928/0.6319, allocations: 76.06 kB / 0.7731 GB, free: 1.301 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003464/0.6353, allocations: 1.392 MB / 0.7745 GB, free: 1.277 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002527/0.6356, allocations: 201.1 kB / 0.7747 GB, free: 1.277 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007541/0.6363, allocations: 0.5165 MB / 0.7752 GB, free: 1.277 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00309/0.6394, allocations: 1.577 MB / 0.7767 GB, free: 1.09 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.6394, allocations: 3.484 kB / 0.7767 GB, free: 1.09 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.814e-06/0.6394, allocations: 3.375 kB / 0.7767 GB, free: 1.09 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.473e-05/0.6395, allocations: 0 / 0.7767 GB, free: 1.09 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.002741/0.6422, allocations: 1.464 MB / 0.7781 GB, free: 16.24 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.6423, allocations: 13.47 kB / 0.7781 GB, free: 16.24 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.6425, allocations: 128.3 kB / 0.7783 GB, free: 16.18 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.6437, allocations: 0.7931 MB / 0.779 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.6438, allocations: 53.12 kB / 0.7791 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.6439, allocations: 77.64 kB / 0.7792 GB, free: 15.83 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.645, allocations: 0.7357 MB / 0.7799 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.645, allocations: 3.094 kB / 0.7799 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.416e-05/0.6451, allocations: 26.31 kB / 0.7799 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.6451, allocations: 17.34 kB / 0.7799 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009568/0.6461, allocations: 0.6326 MB / 0.7805 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.6497, allocations: 3.108 MB / 0.7836 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.6509, allocations: 0.5305 MB / 0.7841 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.6512, allocations: 230.5 kB / 0.7843 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002664/0.6539, allocations: 2.585 MB / 0.7868 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.6539, allocations: 41.19 kB / 0.7869 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=55): time 2.335e-06/0.6539, allocations: 0.8125 kB / 0.7869 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=56): time 0.003402/0.6573, allocations: 1.79 MB / 0.7886 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.6574, allocations: 61.41 kB / 0.7887 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007476/0.6581, allocations: 0.6987 MB / 0.7894 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.6582, allocations: 34.83 kB / 0.7894 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/0.6584, allocations: 448.6 kB / 0.7898 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.6586, allocations: 201.1 kB / 0.79 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.6587, allocations: 95.02 kB / 0.7901 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.6589, allocations: 323.8 kB / 0.7904 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.6592, allocations: 164.6 kB / 0.7906 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.6595, allocations: 233.5 kB / 0.7908 GB, free: 10 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007057/0.6602, allocations: 425.2 kB / 0.7912 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.6602, allocations: 0.6875 kB / 0.7912 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001216/0.6614, allocations: 0.6502 MB / 0.7918 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.6615, allocations: 9.281 kB / 0.7919 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.6615, allocations: 0 / 0.7919 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004189/0.6619, allocations: 113.8 kB / 0.792 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/0.6622, allocations: 93.64 kB / 0.7921 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/0.6644, allocations: 2.048 MB / 0.7941 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004951/0.6649, allocations: 21.02 kB / 0.7941 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.359e-05/0.665, allocations: 24.2 kB / 0.7941 GB, free: 8.465 MB / 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.0003352/0.6653, allocations: 214.3 kB / 0.7943 GB, free: 8.344 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001698/0.6655, allocations: 96.17 kB / 0.7944 GB, free: 8.289 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.667, allocations: 0.8638 MB / 0.7952 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.667, allocations: 10.62 kB / 0.7952 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.667, allocations: 2.312 kB / 0.7952 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.667, allocations: 3.969 kB / 0.7953 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.6693, allocations: 1.528 MB / 0.7967 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.6693, allocations: 0.9688 kB / 0.7967 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003418/0.6696, allocations: 92.7 kB / 0.7968 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003742/0.67, allocations: 117.5 kB / 0.7969 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.67, allocations: 19.72 kB / 0.797 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.6722, allocations: 2.05 MB / 0.799 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.6722, allocations: 6.688 kB / 0.799 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001656/0.6738, allocations: 0.9761 MB / 0.7999 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002424/0.6741, allocations: 167 kB / 0.8001 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.181e-05/0.6742, allocations: 16.97 kB / 0.8001 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.6745, allocations: 14.88 kB / 0.8001 GB, free: 5.988 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.6746, allocations: 50.48 kB / 0.8002 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.111e-05/0.6746, allocations: 25.06 kB / 0.8002 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005903/0.6752, allocations: 0.5074 MB / 0.8007 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.6752, allocations: 0 / 0.8007 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009373/0.6762, allocations: 330.7 kB / 0.801 GB, free: 5.852 MB / 0.6075 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.0007436/0.6769, allocations: 475.2 kB / 0.8015 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001216/0.6781, allocations: 0.5935 MB / 0.802 GB, free: 5.578 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6781, allocations: 4.594 kB / 0.802 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000717/0.6789, allocations: 416.5 kB / 0.8024 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.6802, allocations: 281.9 kB / 0.8027 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002668/0.6829, allocations: 1.614 MB / 0.8043 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.6834, allocations: 1.002 MB / 0.8053 GB, free: 4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000532/0.684, allocations: 150.9 kB / 0.8054 GB, free: 3.949 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.6842, allocations: 75.41 kB / 0.8055 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of SimCode: time 9.21e-07/0.6842, allocations: 0 / 0.8055 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of Templates: time 0.02938/0.7135, allocations: 16.74 MB / 0.8218 GB, free: 15 MB / 0.6231 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.makefile (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 & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > 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