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 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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) 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) 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 4.0.0+maint.om/package.mo): time 0.009997/0.009997, allocations: 170 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 223.2 MB / 239 MB, free: 1.773 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 106.5 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01078/0.01078, allocations: 1.561 MB / 342.9 MB, free: 9.262 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.8101/0.8101, allocations: 90.31 MB / 484.7 MB, free: 21.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004821/0.0004819, allocations: 15.94 kB / 0.5526 GB, free: 30.38 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.16, allocations: 69.36 MB / 0.6203 GB, free: 5.613 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.392/1.552, allocations: 436.5 MB / 1.047 GB, free: 105 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003569/1.553, allocations: 85.83 kB / 1.047 GB, free: 105 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1597/1.713, allocations: 71.66 MB / 1.117 GB, free: 42.39 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.504e-06/1.713, allocations: 0 / 1.117 GB, free: 42.39 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.601e-05/1.713, allocations: 4 kB / 1.117 GB, free: 42.39 MB / 0.6042 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.00167/1.714, allocations: 0.6608 MB / 1.117 GB, free: 41.67 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 6.346e-05/1.714, allocations: 15.98 kB / 1.117 GB, free: 41.66 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/1.715, allocations: 31.62 kB / 1.117 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/1.715, allocations: 273.5 kB / 1.118 GB, free: 41.32 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/1.715, allocations: 12.44 kB / 1.118 GB, free: 41.3 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/1.715, allocations: 23.98 kB / 1.118 GB, free: 41.28 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/1.716, allocations: 243.2 kB / 1.118 GB, free: 41.04 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/1.716, allocations: 0 / 1.118 GB, free: 41.04 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/1.716, allocations: 11.95 kB / 1.118 GB, free: 41.03 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/1.716, allocations: 8 kB / 1.118 GB, free: 41.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005008/1.716, allocations: 229.6 kB / 1.118 GB, free: 40.79 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001586/1.718, allocations: 1.034 MB / 1.119 GB, free: 39.63 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005786/1.719, allocations: 274.5 kB / 1.119 GB, free: 39.36 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001034/1.72, allocations: 0.8527 MB / 1.12 GB, free: 38.4 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003917/1.72, allocations: 167.7 kB / 1.12 GB, free: 38.23 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=25): time 3.396e-06/1.72, allocations: 0 / 1.12 GB, free: 38.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=25): time 0.001416/1.721, allocations: 0.5729 MB / 1.121 GB, free: 37.61 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/1.722, allocations: 55.41 kB / 1.121 GB, free: 37.54 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/1.722, allocations: 212 kB / 1.121 GB, free: 37.33 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/1.722, allocations: 29.7 kB / 1.121 GB, free: 37.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/1.722, allocations: 152.3 kB / 1.121 GB, free: 37.14 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.461e-05/1.722, allocations: 86.83 kB / 1.121 GB, free: 37.06 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.555e-05/1.722, allocations: 4 kB / 1.121 GB, free: 37.05 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001135/1.722, allocations: 338.8 kB / 1.122 GB, free: 36.71 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/1.722, allocations: 95.94 kB / 1.122 GB, free: 36.62 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002305/1.723, allocations: 122.7 kB / 1.122 GB, free: 36.49 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/1.723, allocations: 143.2 kB / 1.122 GB, free: 36.35 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.723, allocations: 0 / 1.122 GB, free: 36.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008328/1.724, allocations: 360.9 kB / 1.122 GB, free: 35.98 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/1.724, allocations: 29.7 kB / 1.122 GB, free: 35.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/1.724, allocations: 0 / 1.122 GB, free: 35.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/1.724, allocations: 44.77 kB / 1.123 GB, free: 35.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/1.724, allocations: 47.97 kB / 1.123 GB, free: 35.85 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/1.725, allocations: 1.421 MB / 1.124 GB, free: 34.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/1.726, allocations: 31.77 kB / 1.124 GB, free: 34.27 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/1.726, allocations: 16.06 kB / 1.124 GB, free: 34.25 MB / 0.6042 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.0001611/1.726, allocations: 145.7 kB / 1.124 GB, free: 34.1 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.208e-05/1.726, allocations: 27.91 kB / 1.124 GB, free: 34.07 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007649/1.727, allocations: 362.7 kB / 1.125 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.056e-06/1.727, allocations: 7.984 kB / 1.125 GB, free: 33.7 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.727, allocations: 3.953 kB / 1.125 GB, free: 33.69 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/1.727, allocations: 3.984 kB / 1.125 GB, free: 33.69 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/1.728, allocations: 0.7691 MB / 1.125 GB, free: 32.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/1.728, allocations: 7.922 kB / 1.125 GB, free: 32.85 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/1.728, allocations: 40.02 kB / 1.125 GB, free: 32.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001368/1.728, allocations: 40.81 kB / 1.125 GB, free: 32.77 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/1.728, allocations: 8 kB / 1.125 GB, free: 32.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008973/1.729, allocations: 1.433 MB / 1.127 GB, free: 31.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.729, allocations: 0 / 1.127 GB, free: 31.19 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008909/1.73, allocations: 0.5415 MB / 1.127 GB, free: 30.62 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.933e-05/1.73, allocations: 104.8 kB / 1.127 GB, free: 30.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/1.73, allocations: 4 kB / 1.127 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/1.73, allocations: 31.89 kB / 1.127 GB, free: 30.46 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-05/1.731, allocations: 28.23 kB / 1.127 GB, free: 30.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/1.731, allocations: 11.98 kB / 1.127 GB, free: 30.42 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001353/1.731, allocations: 168.4 kB / 1.128 GB, free: 30.26 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.01e-07/1.731, allocations: 0 / 1.128 GB, free: 30.26 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005957/1.731, allocations: 127.9 kB / 1.128 GB, free: 30.14 MB / 0.6042 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.0006058/1.732, allocations: 308 kB / 1.128 GB, free: 29.82 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0009118/1.733, allocations: 463.4 kB / 1.129 GB, free: 29.34 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.733, allocations: 0 / 1.129 GB, free: 29.34 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004724/1.733, allocations: 292.3 kB / 1.129 GB, free: 29.03 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/1.734, allocations: 76.06 kB / 1.129 GB, free: 28.96 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001463/1.735, allocations: 0.7139 MB / 1.13 GB, free: 28.23 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003003/1.736, allocations: 0.7718 MB / 1.13 GB, free: 27.43 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0002195/1.736, allocations: 42.14 kB / 1.13 GB, free: 27.39 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.484e-05/1.736, allocations: 27.42 kB / 1.13 GB, free: 27.36 MB / 0.6042 GB Notification: Performance of SimCode: time 9.71e-07/1.736, allocations: 0 / 1.13 GB, free: 27.36 MB / 0.6042 GB Notification: Performance of Templates: time 0.01196/1.748, allocations: 6.543 MB / 1.137 GB, free: 20.86 MB / 0.6042 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