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.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.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.00178/0.00178, allocations: 182.2 kB / 15.98 MB, free: 5.77 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.341/1.341, allocations: 205.1 MB / 221.8 MB, free: 8.484 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.0009697/0.0009697, allocations: 102.1 kB / 269.2 MB, free: 8.449 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.647/0.647, allocations: 91.22 MB / 407.8 MB, free: 2.551 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 55.86 kB / 483.5 MB, free: 6.613 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2988, allocations: 64.97 MB / 0.5356 GB, free: 33.66 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1383/0.4371, allocations: 141.7 MB / 0.6741 GB, free: 7.445 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004124/0.4413, allocations: 3.603 MB / 0.6776 GB, free: 3.832 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002606/0.4416, allocations: 7.938 kB / 0.6776 GB, free: 3.824 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0005399/0.4421, allocations: 143.3 kB / 0.6777 GB, free: 3.684 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.000693/0.4429, allocations: 326.3 kB / 0.678 GB, free: 3.363 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000581/0.4435, allocations: 243.2 kB / 0.6783 GB, free: 3.125 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0004907/0.444, allocations: 0.5564 MB / 0.6788 GB, free: 2.566 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.4441, allocations: 67.36 kB / 0.6789 GB, free: 2.504 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003454/0.4445, allocations: 183.2 kB / 0.6791 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.4447, allocations: 223.1 kB / 0.6793 GB, free: 2.105 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.4448, allocations: 16 kB / 0.6793 GB, free: 2.09 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008332/0.4456, allocations: 0.5146 MB / 0.6798 GB, free: 1.574 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 5.637e-05/0.4457, allocations: 43.78 kB / 0.6798 GB, free: 1.531 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.4458, allocations: 147.2 kB / 0.68 GB, free: 1.387 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0006439/0.4465, allocations: 494.6 kB / 0.6804 GB, free: 0.9023 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4465, allocations: 0 / 0.6804 GB, free: 0.9023 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.102e-06/0.4465, allocations: 0 / 0.6804 GB, free: 0.9023 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.99e-06/0.4465, allocations: 3.938 kB / 0.6804 GB, free: 0.8984 MB / 0.4948 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.0011/0.4476, allocations: 0.6529 MB / 0.6811 GB, free: 192 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.4477, allocations: 8.031 kB / 0.6811 GB, free: 184 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.958e-05/0.4477, allocations: 36.56 kB / 0.6811 GB, free: 148 kB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2413/0.6891, allocations: 262 kB / 0.6814 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.6892, allocations: 16.97 kB / 0.6814 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.271e-05/0.6893, allocations: 22.81 kB / 0.6814 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000623/0.6899, allocations: 231.6 kB / 0.6816 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.6899, allocations: 0.625 kB / 0.6816 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.6899, allocations: 10.31 kB / 0.6816 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.69, allocations: 5.719 kB / 0.6816 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005407/0.6905, allocations: 230.8 kB / 0.6819 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.692, allocations: 1.041 MB / 0.6829 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005853/0.6926, allocations: 251.4 kB / 0.6831 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002701/0.6929, allocations: 128.2 kB / 0.6832 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008158/0.6937, allocations: 0.8405 MB / 0.6841 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004596/0.6942, allocations: 163.7 kB / 0.6842 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=25): time 2.695e-06/0.6942, allocations: 0 / 0.6842 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=25): time 0.001455/0.6956, allocations: 486.3 kB / 0.6847 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/0.6957, allocations: 55.16 kB / 0.6847 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003201/0.696, allocations: 228.7 kB / 0.685 GB, free: 141.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.6961, allocations: 31.3 kB / 0.685 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.6962, allocations: 159.3 kB / 0.6851 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.534e-05/0.6962, allocations: 82.72 kB / 0.6852 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.461e-05/0.6963, allocations: 49.62 kB / 0.6853 GB, free: 141.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.267e-05/0.6964, allocations: 336.6 kB / 0.6856 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/0.6967, allocations: 87.55 kB / 0.6857 GB, free: 140.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002614/0.6969, allocations: 131.4 kB / 0.6858 GB, free: 140.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004824/0.6974, allocations: 241.7 kB / 0.686 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.6974, allocations: 3.156 kB / 0.686 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007727/0.6982, allocations: 354.6 kB / 0.6864 GB, free: 140.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.649e-05/0.6983, allocations: 36.95 kB / 0.6864 GB, free: 140.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.6983, allocations: 0.5625 kB / 0.6864 GB, free: 140.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002257/0.6985, allocations: 39 kB / 0.6864 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.6987, allocations: 46.62 kB / 0.6865 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.6998, allocations: 1.423 MB / 0.6879 GB, free: 139 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001967/0.7, allocations: 22.33 kB / 0.6879 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.7, allocations: 12.12 kB / 0.6879 GB, free: 138.9 MB / 0.4948 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 (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 (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0001437/0.7002, allocations: 146.9 kB / 0.688 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.803e-05/0.7002, allocations: 25.42 kB / 0.6881 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008426/0.7011, allocations: 356.2 kB / 0.6884 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.7011, allocations: 2.75 kB / 0.6884 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.7011, allocations: 4.625 kB / 0.6884 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.7011, allocations: 1.5 kB / 0.6884 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.7023, allocations: 0.7561 MB / 0.6892 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.7023, allocations: 0.7188 kB / 0.6892 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.7025, allocations: 35.88 kB / 0.6892 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001422/0.7026, allocations: 43.19 kB / 0.6892 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.7026, allocations: 8.766 kB / 0.6892 GB, free: 138.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008686/0.7035, allocations: 1.42 MB / 0.6906 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7035, allocations: 4.688 kB / 0.6906 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00923/0.7128, allocations: 4.861 MB / 0.6954 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.65e-05/0.7129, allocations: 110.3 kB / 0.6955 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.7129, allocations: 7.266 kB / 0.6955 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.7131, allocations: 14.58 kB / 0.6955 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.7132, allocations: 26.73 kB / 0.6955 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.7132, allocations: 9.562 kB / 0.6955 GB, free: 133 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000141/0.7134, allocations: 170.5 kB / 0.6957 GB, free: 132.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7134, allocations: 0 / 0.6957 GB, free: 132.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0007831/0.7142, allocations: 220.8 kB / 0.6959 GB, free: 132.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.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 (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.0005281/0.7147, allocations: 263 kB / 0.6962 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0008684/0.7156, allocations: 450.8 kB / 0.6966 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.7156, allocations: 4.125 kB / 0.6966 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000442/0.7161, allocations: 292.6 kB / 0.6969 GB, free: 132.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005961/0.7167, allocations: 79.38 kB / 0.697 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.718, allocations: 1.027 MB / 0.698 GB, free: 131.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001948/0.7182, allocations: 0.7737 MB / 0.6987 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001864/0.7184, allocations: 48.23 kB / 0.6988 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.961e-05/0.7185, allocations: 30.31 kB / 0.6988 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.01e-07/0.7185, allocations: 0 / 0.6988 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.0121/0.7306, allocations: 8.068 MB / 0.7067 GB, free: 125.6 MB / 0.4948 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) "" Variables in the reference:Time,pulse.T_start,pulse.count,source.outlet.m_flow Variables in the result:checkValve.L,checkValve.clip_p_out,checkValve.initM_flow,checkValve.m_acceleraton_0,checkValve.m_flowStateSelect,checkValve.m_flow_0,checkValve.m_flow_ref,checkValve.p_min,checkValve.p_ref,dropOfCommons.L,dropOfCommons.assertionLevel,dropOfCommons.g,dropOfCommons.k_volume_damping,dropOfCommons.m_flow_reg,dropOfCommons.omega_reg,dropOfCommons.p_min,dropOfCommons.rho_min,flowResistance.L,flowResistance.L_value,flowResistance.clip_p_out,flowResistance.computeL,flowResistance.initM_flow,flowResistance.inlet.m_flow,flowResistance.l,flowResistance.m_acceleraton_0,flowResistance.m_flowStateSelect,flowResistance.m_flow_0,flowResistance.p_min,flowResistance.r,flowResistance.rho_min,pulse.T_start,pulse.amplitude,pulse.count,pulse.nperiod,pulse.offset,pulse.period,pulse.startTime,pulse.width,sink.L,sink.p0,sink.p0_par,sink.pressureFromInput,source.L,source.T0,source.T0_par,source.enthalpyFromInput,source.h0,source.h0_par,source.outlet.m_flow,source.p0_par,source.pressureFromInput,source.setEnthalpy,source.temperatureFromInput,source.xiFromInput,time