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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007822/0.0007822, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007933/0.0007933, allocations: 181.9 kB / 23.22 MB, free: 1.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8674/0.8674, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6227/0.6227, allocations: 116 MB / 376 MB, free: 4.215 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.617e-05/1.753e-05, allocations: 2.281 kB / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.3633/0.3633, allocations: 125.7 MB / 0.6772 GB, free: 7.484 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.002825/0.3661, allocations: 3.102 MB / 0.6802 GB, free: 7.23 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.3664, allocations: 21.91 kB / 0.6802 GB, free: 7.219 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0004791/0.3668, allocations: 207.8 kB / 0.6804 GB, free: 7.152 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0008801/0.3677, allocations: 0.5302 MB / 0.681 GB, free: 7.086 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007329/0.3685, allocations: 418.7 kB / 0.6814 GB, free: 7.043 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0007578/0.3692, allocations: 0.8146 MB / 0.6821 GB, free: 6.977 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001587/0.3694, allocations: 77.86 kB / 0.6822 GB, free: 6.957 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006383/0.37, allocations: 0.5019 MB / 0.6827 GB, free: 6.879 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.3703, allocations: 324.2 kB / 0.683 GB, free: 6.848 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.467e-05/0.3704, allocations: 33 kB / 0.6831 GB, free: 6.848 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006356/0.371, allocations: 0.5 MB / 0.6835 GB, free: 6.805 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.3711, allocations: 93.31 kB / 0.6836 GB, free: 6.781 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001361/0.3712, allocations: 172.3 kB / 0.6838 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0007715/0.372, allocations: 0.7578 MB / 0.6845 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.372, allocations: 1.5 kB / 0.6845 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.473e-06/0.372, allocations: 5.812 kB / 0.6845 GB, free: 6.668 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.144e-05/0.372, allocations: 3.938 kB / 0.6845 GB, free: 6.664 MB / 0.5573 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.00104/0.3731, allocations: 0.7771 MB / 0.6853 GB, free: 6.164 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.3731, allocations: 8.875 kB / 0.6853 GB, free: 6.164 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.3732, allocations: 63.45 kB / 0.6854 GB, free: 6.137 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.3737, allocations: 365 kB / 0.6857 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.3737, allocations: 28.72 kB / 0.6857 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.53e-05/0.3737, allocations: 32.97 kB / 0.6858 GB, free: 5.926 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.3742, allocations: 429.5 kB / 0.6862 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.3742, allocations: 192 / 0.6862 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.164e-05/0.3742, allocations: 17.75 kB / 0.6862 GB, free: 5.832 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.3743, allocations: 12.66 kB / 0.6862 GB, free: 5.828 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.3747, allocations: 376.5 kB / 0.6866 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.3758, allocations: 1.232 MB / 0.6878 GB, free: 5.207 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004993/0.3763, allocations: 318.5 kB / 0.6881 GB, free: 5.176 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000182/0.3765, allocations: 155.2 kB / 0.6882 GB, free: 5.164 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008592/0.3774, allocations: 0.7007 MB / 0.6889 GB, free: 4.898 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.3776, allocations: 209.3 kB / 0.6891 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=37): time 1.322e-06/0.3776, allocations: 0 / 0.6891 GB, free: 4.844 MB / 0.5573 GB Notification: Performance of matching and sorting (n=37): time 0.0008361/0.3785, allocations: 0.5312 MB / 0.6896 GB, free: 4.762 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.3785, allocations: 59.86 kB / 0.6897 GB, free: 4.699 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.3787, allocations: 332.7 kB / 0.69 GB, free: 4.582 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.3787, allocations: 34.39 kB / 0.69 GB, free: 4.551 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 9.367e-05/0.3788, allocations: 232.8 kB / 0.6903 GB, free: 4.418 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 5.367e-05/0.3789, allocations: 127.1 kB / 0.6904 GB, free: 4.336 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.648e-05/0.379, allocations: 74.5 kB / 0.6905 GB, free: 4.316 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.552e-05/0.379, allocations: 348.1 kB / 0.6908 GB, free: 4.004 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001804/0.3792, allocations: 154.6 kB / 0.6909 GB, free: 3.969 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.3794, allocations: 202.7 kB / 0.6911 GB, free: 3.887 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.3797, allocations: 327.9 kB / 0.6914 GB, free: 3.801 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3797, allocations: 4 kB / 0.6914 GB, free: 3.797 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005467/0.3803, allocations: 0.4948 MB / 0.6919 GB, free: 3.648 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3803, allocations: 35.95 kB / 0.692 GB, free: 3.617 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3803, allocations: 0.9375 kB / 0.692 GB, free: 3.617 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001496/0.3805, allocations: 44.77 kB / 0.692 GB, free: 3.605 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3806, allocations: 75.14 kB / 0.6921 GB, free: 3.602 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006204/0.3812, allocations: 1.394 MB / 0.6934 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.3814, allocations: 40.02 kB / 0.6935 GB, free: 2.391 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.3814, allocations: 16.94 kB / 0.6935 GB, free: 2.391 MB / 0.5573 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.0001115/0.3815, allocations: 164.7 kB / 0.6937 GB, free: 2.266 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.712e-05/0.3816, allocations: 50.36 kB / 0.6937 GB, free: 2.238 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006235/0.3822, allocations: 0.5181 MB / 0.6942 GB, free: 2.141 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3822, allocations: 3.812 kB / 0.6942 GB, free: 2.141 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3822, allocations: 2.25 kB / 0.6942 GB, free: 2.141 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.3822, allocations: 6.672 kB / 0.6942 GB, free: 2.137 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008027/0.383, allocations: 0.8505 MB / 0.695 GB, free: 1.844 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.383, allocations: 2 kB / 0.695 GB, free: 1.844 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.3831, allocations: 67.25 kB / 0.6951 GB, free: 1.832 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-05/0.3832, allocations: 42.23 kB / 0.6952 GB, free: 1.816 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.3832, allocations: 19.56 kB / 0.6952 GB, free: 1.809 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004917/0.3837, allocations: 1.386 MB / 0.6965 GB, free: 0.4961 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3837, allocations: 0 / 0.6965 GB, free: 0.4961 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006681/0.3844, allocations: 0.6466 MB / 0.6972 GB, free: 144 kB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.952e-05/0.3845, allocations: 90.22 kB / 0.6972 GB, free: 88 kB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.789e-05/0.3845, allocations: 7.375 kB / 0.6972 GB, free: 84 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3846, allocations: 20.2 kB / 0.6973 GB, free: 76 kB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.073e-05/0.3847, allocations: 36.78 kB / 0.6973 GB, free: 68 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.3847, allocations: 15.48 kB / 0.6973 GB, free: 64 kB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001847/0.3849, allocations: 248.5 kB / 0.6976 GB, free: 15.93 MB / 0.573 GB Notification: Performance of sort global known variables: time 3e-08/0.3849, allocations: 0 / 0.6976 GB, free: 15.93 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0003707/0.3853, allocations: 174 kB / 0.6977 GB, free: 15.89 MB / 0.573 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.0002794/0.3855, allocations: 240.8 kB / 0.698 GB, free: 15.76 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0006095/0.3861, allocations: 0.5118 MB / 0.6985 GB, free: 15.44 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3861, allocations: 0 / 0.6985 GB, free: 15.44 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.3864, allocations: 279 kB / 0.6987 GB, free: 15.28 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005318/0.3869, allocations: 188.7 kB / 0.6989 GB, free: 15.22 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.3881, allocations: 0.8727 MB / 0.6997 GB, free: 14.72 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.3882, allocations: 222.6 kB / 0.7 GB, free: 14.62 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.366e-05/0.3883, allocations: 51.06 kB / 0.7 GB, free: 14.61 MB / 0.573 GB Notification: Performance of SimCode: time 4.5e-07/0.3883, allocations: 3.938 kB / 0.7 GB, free: 14.61 MB / 0.573 GB Notification: Performance of Templates: time 0.008316/0.3966, allocations: 9.549 MB / 0.7093 GB, free: 10.39 MB / 0.573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (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) [Timeout 1200] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.800791485235095]