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: translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_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_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.00816/0.00816, allocations: 98.12 kB / 15.73 MB, free: 6.016 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.001473/0.001473, allocations: 194.7 kB / 16.68 MB, free: 5.934 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8192/0.8192, allocations: 91.19 MB / 381.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 71.89 kB / 0.5168 GB, free: 4.078 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4571/0.4588, allocations: 67.68 MB / 0.5829 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.6999/1.159, allocations: 164.4 MB / 0.7434 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01647/1.175, allocations: 12.92 MB / 0.7561 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001579/1.177, allocations: 37.47 kB / 0.7561 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002345/1.179, allocations: 0.5797 MB / 0.7567 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003857/1.183, allocations: 0.8932 MB / 0.7575 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003373/1.187, allocations: 0.8141 MB / 0.7583 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002967/1.19, allocations: 1.343 MB / 0.7596 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007409/1.19, allocations: 316.1 kB / 0.7599 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001471/1.192, allocations: 0.5596 MB / 0.7605 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001327/1.193, allocations: 0.6572 MB / 0.7611 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002839/1.193, allocations: 74.66 kB / 0.7612 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00374/1.197, allocations: 1.393 MB / 0.7626 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003282/1.198, allocations: 199 kB / 0.7628 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00112/1.199, allocations: 0.5088 MB / 0.7633 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003866/1.203, allocations: 1.566 MB / 0.7648 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/1.203, allocations: 0 / 0.7648 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.854e-06/1.203, allocations: 3.938 kB / 0.7648 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.399e-05/1.203, allocations: 1 kB / 0.7648 GB, free: 0.9414 MB / 0.5762 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.003133/1.206, allocations: 1.42 MB / 0.7662 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/1.206, allocations: 13.69 kB / 0.7662 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000314/1.206, allocations: 120.3 kB / 0.7663 GB, free: 16.08 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001415/1.208, allocations: 0.7711 MB / 0.7671 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.473e-05/1.208, allocations: 53.31 kB / 0.7671 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/1.208, allocations: 66.59 kB / 0.7672 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/1.209, allocations: 0.7324 MB / 0.7679 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/1.209, allocations: 0 / 0.7679 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.605e-05/1.209, allocations: 30.78 kB / 0.7679 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/1.209, allocations: 23.56 kB / 0.7679 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/1.21, allocations: 0.6322 MB / 0.7686 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003874/1.214, allocations: 3.105 MB / 0.7716 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/1.215, allocations: 0.5776 MB / 0.7722 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003988/1.216, allocations: 258.8 kB / 0.7724 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002625/1.218, allocations: 2.587 MB / 0.7749 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/1.219, allocations: 37.34 kB / 0.775 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.074e-06/1.219, allocations: 3.781 kB / 0.775 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003459/1.222, allocations: 1.775 MB / 0.7767 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/1.222, allocations: 62.67 kB / 0.7768 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008495/1.223, allocations: 0.6852 MB / 0.7774 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/1.223, allocations: 38.52 kB / 0.7775 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/1.223, allocations: 439.3 kB / 0.7779 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/1.223, allocations: 189.9 kB / 0.7781 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/1.224, allocations: 91.83 kB / 0.7782 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.224, allocations: 322.9 kB / 0.7785 GB, free: 10 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/1.224, allocations: 165 kB / 0.7786 GB, free: 10 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/1.224, allocations: 228.1 kB / 0.7788 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00071/1.225, allocations: 434.8 kB / 0.7793 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.225, allocations: 0.9688 kB / 0.7793 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001193/1.226, allocations: 0.646 MB / 0.7799 GB, free: 9.785 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/1.226, allocations: 7.094 kB / 0.7799 GB, free: 9.785 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/1.226, allocations: 0 / 0.7799 GB, free: 9.785 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004274/1.227, allocations: 116.7 kB / 0.78 GB, free: 9.777 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003377/1.227, allocations: 97.69 kB / 0.7801 GB, free: 9.777 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/1.229, allocations: 2.047 MB / 0.7821 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003413/1.23, allocations: 17.22 kB / 0.7821 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/1.23, allocations: 22.41 kB / 0.7821 GB, free: 8.398 MB / 0.5919 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.0002993/1.23, allocations: 221.5 kB / 0.7823 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/1.23, allocations: 90.03 kB / 0.7824 GB, free: 8.223 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00153/1.232, allocations: 0.8636 MB / 0.7833 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/1.232, allocations: 5.125 kB / 0.7833 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/1.232, allocations: 3.156 kB / 0.7833 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/1.232, allocations: 5.625 kB / 0.7833 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/1.234, allocations: 1.538 MB / 0.7848 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/1.234, allocations: 0 / 0.7848 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/1.235, allocations: 87.58 kB / 0.7849 GB, free: 7.715 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003791/1.235, allocations: 122.8 kB / 0.785 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.097e-05/1.235, allocations: 19.06 kB / 0.785 GB, free: 7.703 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002444/1.238, allocations: 2.04 MB / 0.787 GB, free: 6.328 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.238, allocations: 6.5 kB / 0.787 GB, free: 6.328 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/1.239, allocations: 0.9796 MB / 0.788 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002304/1.239, allocations: 158.7 kB / 0.7881 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/1.24, allocations: 12.84 kB / 0.7881 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/1.24, allocations: 15.55 kB / 0.7881 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/1.24, allocations: 54.78 kB / 0.7882 GB, free: 5.941 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.541e-05/1.24, allocations: 23.7 kB / 0.7882 GB, free: 5.938 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006769/1.241, allocations: 0.5048 MB / 0.7887 GB, free: 5.848 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/1.241, allocations: 0 / 0.7887 GB, free: 5.848 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001089/1.242, allocations: 329.3 kB / 0.789 GB, free: 5.816 MB / 0.5919 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.001123/1.243, allocations: 484 kB / 0.7895 GB, free: 5.652 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001379/1.244, allocations: 0.6175 MB / 0.7901 GB, free: 5.523 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.244, allocations: 0 / 0.7901 GB, free: 5.523 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007892/1.245, allocations: 436.8 kB / 0.7905 GB, free: 5.398 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/1.247, allocations: 271.2 kB / 0.7908 GB, free: 5.359 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003025/1.25, allocations: 1.568 MB / 0.7923 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/1.25, allocations: 1.002 MB / 0.7933 GB, free: 3.969 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005225/1.251, allocations: 146.3 kB / 0.7934 GB, free: 3.914 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001827/1.251, allocations: 75.31 kB / 0.7935 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of SimCode: time 5.31e-07/1.251, allocations: 0 / 0.7935 GB, free: 3.91 MB / 0.5919 GB Notification: Performance of Templates: time 0.03417/1.285, allocations: 16.61 MB / 0.8097 GB, free: 12.5 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (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 & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches