Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 102 kB / 16.27 MB, free: 5.855 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.00194/0.00194, allocations: 185.4 kB / 17.19 MB, free: 5.504 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.555/1.555, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7441/0.7441, allocations: 93.7 MB / 384.7 MB, free: 5.332 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 83.84 kB / 464.1 MB, free: 6.148 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1361, allocations: 68.28 MB / 0.5199 GB, free: 1.793 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3662/0.5023, allocations: 145.3 MB / 0.6618 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.004318/0.5067, allocations: 3.338 MB / 0.665 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003107/0.507, allocations: 15.88 kB / 0.665 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006411/0.5077, allocations: 214.6 kB / 0.6652 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.5088, allocations: 493.1 kB / 0.6657 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008597/0.5096, allocations: 394.7 kB / 0.6661 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0007241/0.5104, allocations: 0.7156 MB / 0.6668 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.5106, allocations: 127 kB / 0.6669 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006147/0.5112, allocations: 358.4 kB / 0.6672 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004383/0.5117, allocations: 350.6 kB / 0.6676 GB, free: 7.809 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 5.907e-05/0.5117, allocations: 36.84 kB / 0.6676 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.5128, allocations: 0.581 MB / 0.6682 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.5129, allocations: 83.62 kB / 0.6683 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.5132, allocations: 234.8 kB / 0.6685 GB, free: 6.879 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000954/0.5141, allocations: 0.7185 MB / 0.6692 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.5142, allocations: 0 / 0.6692 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5142, allocations: 0 / 0.6692 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.5142, allocations: 0 / 0.6692 GB, free: 6.16 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001459/0.5156, allocations: 0.8397 MB / 0.67 GB, free: 5.266 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.5157, allocations: 12.59 kB / 0.67 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.5158, allocations: 48.38 kB / 0.6701 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005703/0.5164, allocations: 405.9 kB / 0.6704 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.5164, allocations: 29.38 kB / 0.6705 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.5165, allocations: 28.38 kB / 0.6705 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008021/0.5173, allocations: 428.9 kB / 0.6709 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.5173, allocations: 5.219 kB / 0.6709 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.53e-05/0.5174, allocations: 11.98 kB / 0.6709 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.5174, allocations: 8 kB / 0.6709 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007449/0.5181, allocations: 370.4 kB / 0.6713 GB, free: 3.895 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002378/0.5205, allocations: 1.855 MB / 0.6731 GB, free: 1.867 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007941/0.5213, allocations: 345.7 kB / 0.6734 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003352/0.5217, allocations: 164.8 kB / 0.6736 GB, free: 1.359 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002053/0.5237, allocations: 1.524 MB / 0.6751 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004777/0.5242, allocations: 215.3 kB / 0.6753 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/0.5243, allocations: 0 / 0.6753 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=37): time 0.001429/0.5257, allocations: 0.6035 MB / 0.6759 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.5257, allocations: 59.39 kB / 0.6759 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003873/0.5261, allocations: 362.4 kB / 0.6763 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.5262, allocations: 33.7 kB / 0.6763 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/0.5264, allocations: 224.2 kB / 0.6765 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.5265, allocations: 114.3 kB / 0.6766 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.5266, allocations: 81.97 kB / 0.6767 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.5268, allocations: 350.7 kB / 0.677 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.5271, allocations: 125.8 kB / 0.6772 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000356/0.5275, allocations: 178.7 kB / 0.6773 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006459/0.5281, allocations: 335.8 kB / 0.6777 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.5281, allocations: 4 kB / 0.6777 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009418/0.5291, allocations: 463.3 kB / 0.6781 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.935e-05/0.5291, allocations: 37.69 kB / 0.6781 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.5291, allocations: 4 kB / 0.6781 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002135/0.5294, allocations: 44.7 kB / 0.6782 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003029/0.5297, allocations: 79.89 kB / 0.6783 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.5311, allocations: 1.541 MB / 0.6798 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002587/0.5314, allocations: 41.27 kB / 0.6798 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.5314, allocations: 16 kB / 0.6798 GB, free: 10.48 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002018/0.5316, allocations: 169.7 kB / 0.68 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.085e-05/0.5317, allocations: 39.53 kB / 0.68 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.5328, allocations: 0.5239 MB / 0.6805 GB, free: 9.742 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.5329, allocations: 4 kB / 0.6805 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.5329, allocations: 4.625 kB / 0.6805 GB, free: 9.734 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.5329, allocations: 3.984 kB / 0.6805 GB, free: 9.73 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00161/0.5345, allocations: 0.9637 MB / 0.6815 GB, free: 8.703 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.5345, allocations: 4.062 kB / 0.6815 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.5348, allocations: 68.58 kB / 0.6815 GB, free: 8.633 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.5349, allocations: 37.81 kB / 0.6816 GB, free: 8.594 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.258e-05/0.535, allocations: 15.98 kB / 0.6816 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.5363, allocations: 1.531 MB / 0.6831 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.5363, allocations: 4.031 kB / 0.6831 GB, free: 6.906 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.5375, allocations: 0.6414 MB / 0.6837 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.5376, allocations: 120.6 kB / 0.6838 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.5377, allocations: 13.59 kB / 0.6839 GB, free: 6.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.5379, allocations: 20.92 kB / 0.6839 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.5381, allocations: 35.95 kB / 0.6839 GB, free: 6.035 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-05/0.5381, allocations: 15.98 kB / 0.6839 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002924/0.5384, allocations: 267.2 kB / 0.6842 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5384, allocations: 0 / 0.6842 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005631/0.539, allocations: 163.8 kB / 0.6843 GB, free: 5.602 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004051/0.5394, allocations: 252.8 kB / 0.6846 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00107/0.5405, allocations: 0.5028 MB / 0.6851 GB, free: 4.828 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.5405, allocations: 0 / 0.6851 GB, free: 4.828 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004974/0.541, allocations: 298.3 kB / 0.6854 GB, free: 4.523 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007688/0.5418, allocations: 137.1 kB / 0.6855 GB, free: 4.406 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.5435, allocations: 0.8771 MB / 0.6863 GB, free: 3.496 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.544, allocations: 0.8195 MB / 0.6871 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.5441, allocations: 55.42 kB / 0.6872 GB, free: 2.598 MB / 0.5294 GB Notification: Performance of SimCode: time 3.61e-07/0.5441, allocations: 0 / 0.6872 GB, free: 2.598 MB / 0.5294 GB Notification: Performance of Templates: time 0.01332/0.5574, allocations: 9.17 MB / 0.6961 GB, free: 9.602 MB / 0.545 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches