Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001511/0.001511, allocations: 173.6 kB / 16.12 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.801/1.801, allocations: 205.4 MB / 222.3 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000776/0.000776, allocations: 90.36 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.8583/0.8583, allocations: 89.58 MB / 408.5 MB, free: 4.508 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003893/0.0003894, allocations: 8.219 kB / 485.2 MB, free: 7.668 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.395, allocations: 66.01 MB / 0.5382 GB, free: 34.44 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.227/1.622, allocations: 436.3 MB / 0.9644 GB, free: 190.8 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/1.622, allocations: 87.94 kB / 0.9644 GB, free: 190.7 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.1405/1.763, allocations: 69.65 MB / 1.032 GB, free: 120.4 MB / 0.5886 GB Notification: Performance of FrontEnd: time 4.609e-06/1.763, allocations: 0 / 1.032 GB, free: 120.4 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.672e-05/1.763, allocations: 11.94 kB / 1.032 GB, free: 120.4 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001641/1.764, allocations: 0.6609 MB / 1.033 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.243e-05/1.765, allocations: 8.031 kB / 1.033 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002443/1.765, allocations: 32.56 kB / 1.033 GB, free: 119.6 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/1.765, allocations: 274.7 kB / 1.033 GB, free: 119.3 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/1.765, allocations: 21.5 kB / 1.033 GB, free: 119.3 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.082e-05/1.765, allocations: 28 kB / 1.033 GB, free: 119.3 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/1.766, allocations: 239.2 kB / 1.034 GB, free: 119.1 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.89e-05/1.766, allocations: 0 / 1.034 GB, free: 119.1 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/1.766, allocations: 8 kB / 1.034 GB, free: 119 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/1.766, allocations: 4 kB / 1.034 GB, free: 119 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004779/1.767, allocations: 233.6 kB / 1.034 GB, free: 118.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/1.768, allocations: 1.03 MB / 1.035 GB, free: 117.7 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004947/1.768, allocations: 271.1 kB / 1.035 GB, free: 117.4 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/1.769, allocations: 120.8 kB / 1.035 GB, free: 117.3 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008401/1.77, allocations: 0.8371 MB / 1.036 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/1.77, allocations: 179.3 kB / 1.036 GB, free: 116.1 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=25): time 2.505e-06/1.77, allocations: 0 / 1.036 GB, free: 116.1 MB / 0.5886 GB Notification: Performance of matching and sorting (n=25): time 0.001129/1.771, allocations: 0.4928 MB / 1.037 GB, free: 115.6 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.343e-05/1.771, allocations: 59.33 kB / 1.037 GB, free: 115.6 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/1.771, allocations: 233 kB / 1.037 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/1.771, allocations: 29.7 kB / 1.037 GB, free: 115.3 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 8.834e-05/1.771, allocations: 156.3 kB / 1.037 GB, free: 115.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 5.545e-05/1.772, allocations: 86.83 kB / 1.037 GB, free: 115 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.253e-05/1.772, allocations: 4 kB / 1.037 GB, free: 115 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.74e-05/1.772, allocations: 346.7 kB / 1.038 GB, free: 114.7 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/1.772, allocations: 91.94 kB / 1.038 GB, free: 114.6 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002114/1.772, allocations: 130.7 kB / 1.038 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004004/1.772, allocations: 253.4 kB / 1.038 GB, free: 114.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.772, allocations: 0 / 1.038 GB, free: 114.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006796/1.773, allocations: 368.9 kB / 1.038 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/1.773, allocations: 33.7 kB / 1.038 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/1.773, allocations: 7.922 kB / 1.038 GB, free: 113.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000205/1.773, allocations: 36.83 kB / 1.039 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/1.774, allocations: 47.91 kB / 1.039 GB, free: 113.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009459/1.775, allocations: 1.417 MB / 1.04 GB, free: 112.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/1.775, allocations: 31.73 kB / 1.04 GB, free: 112.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/1.775, allocations: 8 kB / 1.04 GB, free: 112.1 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001378/1.775, allocations: 153.5 kB / 1.04 GB, free: 111.9 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.622e-05/1.775, allocations: 27.72 kB / 1.04 GB, free: 111.9 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007113/1.776, allocations: 354.3 kB / 1.041 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/1.776, allocations: 4 kB / 1.041 GB, free: 111.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/1.776, allocations: 3.938 kB / 1.041 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/1.776, allocations: 3.984 kB / 1.041 GB, free: 111.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/1.777, allocations: 0.7573 MB / 1.041 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/1.777, allocations: 3.984 kB / 1.041 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/1.777, allocations: 43.86 kB / 1.041 GB, free: 110.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000132/1.777, allocations: 48.97 kB / 1.041 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.262e-05/1.777, allocations: 8 kB / 1.041 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008749/1.778, allocations: 1.417 MB / 1.043 GB, free: 109.1 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.778, allocations: 4.031 kB / 1.043 GB, free: 109.1 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008866/1.779, allocations: 0.5319 MB / 1.043 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 7.719e-05/1.779, allocations: 104.8 kB / 1.043 GB, free: 108.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/1.779, allocations: 12 kB / 1.043 GB, free: 108.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/1.779, allocations: 23.95 kB / 1.043 GB, free: 108.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/1.78, allocations: 23.97 kB / 1.043 GB, free: 108.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/1.78, allocations: 11.98 kB / 1.043 GB, free: 108.3 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001489/1.78, allocations: 168.5 kB / 1.044 GB, free: 108.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.3e-07/1.78, allocations: 0 / 1.044 GB, free: 108.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0005806/1.78, allocations: 131.9 kB / 1.044 GB, free: 108 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (checkValve.inlet.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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006054/1.781, allocations: 299.1 kB / 1.044 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0008211/1.782, allocations: 460.3 kB / 1.044 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/1.782, allocations: 0 / 1.044 GB, free: 107.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0004097/1.782, allocations: 297.8 kB / 1.045 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/1.783, allocations: 80.38 kB / 1.045 GB, free: 106.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/1.784, allocations: 0.7215 MB / 1.046 GB, free: 106.1 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/1.784, allocations: 0.7599 MB / 1.046 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.000229/1.785, allocations: 42.14 kB / 1.046 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.625e-05/1.785, allocations: 31.44 kB / 1.046 GB, free: 105.2 MB / 0.5886 GB Notification: Performance of SimCode: time 6.81e-07/1.785, allocations: 0 / 1.046 GB, free: 105.2 MB / 0.5886 GB Notification: Performance of Templates: time 0.01229/1.797, allocations: 6.639 MB / 1.053 GB, free: 98.65 MB / 0.5886 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches