Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.0008696/0.0008696, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0008574/0.0008574, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.9116/0.9116, allocations: 177.1 MB / 203.5 MB, free: 5.684 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.735/1.735, allocations: 377.8 MB / 0.6228 GB, free: 8.672 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.294e-06/2.294e-06, allocations: 0 / 0.9822 GB, free: 2.125 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.451e-05/2.68e-05, allocations: 9.312 kB / 0.9822 GB, free: 2.117 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001266/0.001293, allocations: 0.6687 MB / 0.9828 GB, free: 1.453 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.00108/0.002372, allocations: 1.085 MB / 0.9839 GB, free: 364 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.071e-05/0.002413, allocations: 4 kB / 0.9839 GB, free: 360 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.86e-05/0.002442, allocations: 3.938 kB / 0.9839 GB, free: 356 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 6.73e-05/0.002509, allocations: 11.86 kB / 0.9839 GB, free: 344 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002907/0.0028, allocations: 47.83 kB / 0.9839 GB, free: 296 kB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 9.227e-05/0.002892, allocations: 43.86 kB / 0.984 GB, free: 252 kB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 9.642e-05/0.002988, allocations: 11.97 kB / 0.984 GB, free: 240 kB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 8.013e-05/0.003069, allocations: 27.92 kB / 0.984 GB, free: 212 kB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.352e-05/0.003112, allocations: 15.97 kB / 0.984 GB, free: 196 kB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.003128, allocations: 4 kB / 0.984 GB, free: 192 kB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.503e-05/0.003183, allocations: 19.94 kB / 0.9841 GB, free: 172 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.061e-05/0.003203, allocations: 11.97 kB / 0.9841 GB, free: 160 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.704e-05/0.00323, allocations: 15.92 kB / 0.9841 GB, free: 144 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.00336, allocations: 63.84 kB / 0.9842 GB, free: 80 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.003362, allocations: 4 kB / 0.9842 GB, free: 76 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.203e-06/0.003363, allocations: 3.938 kB / 0.9842 GB, free: 72 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.003367, allocations: 0 / 0.9842 GB, free: 72 kB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004339/0.003801, allocations: 298.1 kB / 0.9844 GB, free: 15.75 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.003832, allocations: 12.03 kB / 0.9845 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.976e-05/0.003902, allocations: 0.9375 kB / 0.9845 GB, free: 15.73 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.257e-05/0.003975, allocations: 113.7 kB / 0.9846 GB, free: 15.6 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.003985, allocations: 4.375 kB / 0.9846 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.757e-06/0.003993, allocations: 4.375 kB / 0.9846 GB, free: 15.59 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.004145, allocations: 74.14 kB / 0.9846 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.004152, allocations: 192 / 0.9846 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.004162, allocations: 4.375 kB / 0.9847 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.004166, allocations: 384 / 0.9847 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.004269, allocations: 47.88 kB / 0.9847 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002974/0.004566, allocations: 208.6 kB / 0.9849 GB, free: 15.23 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.004669, allocations: 54.55 kB / 0.9849 GB, free: 15.16 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.004e-05/0.004719, allocations: 28.91 kB / 0.985 GB, free: 15.13 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.004737, allocations: 4 kB / 0.985 GB, free: 15.13 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/0.004871, allocations: 75.31 kB / 0.9851 GB, free: 15.04 MB / 0.948 GB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.004872, allocations: 0 / 0.9851 GB, free: 15.04 MB / 0.948 GB Notification: Performance of matching and sorting (n=6): time 0.0002529/0.005125, allocations: 121.6 kB / 0.9852 GB, free: 14.92 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.005157, allocations: 59.41 kB / 0.9852 GB, free: 14.85 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.469e-05/0.005211, allocations: 109.8 kB / 0.9853 GB, free: 14.73 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.005223, allocations: 25.7 kB / 0.9854 GB, free: 14.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.263e-05/0.005256, allocations: 84.14 kB / 0.9854 GB, free: 14.61 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.005272, allocations: 15.84 kB / 0.9854 GB, free: 14.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.005304, allocations: 29.7 kB / 0.9855 GB, free: 14.56 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.563e-05/0.00538, allocations: 310.8 kB / 0.9858 GB, free: 14.25 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.947e-05/0.005429, allocations: 23.97 kB / 0.9858 GB, free: 14.23 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.058e-05/0.00549, allocations: 59.48 kB / 0.9859 GB, free: 14.16 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.005638, allocations: 75.34 kB / 0.9859 GB, free: 14.07 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.005642, allocations: 7.984 kB / 0.9859 GB, free: 14.06 MB / 0.948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000142/0.005784, allocations: 97.55 kB / 0.986 GB, free: 13.96 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.005795, allocations: 8.031 kB / 0.986 GB, free: 13.95 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.005799, allocations: 8 kB / 0.986 GB, free: 13.95 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.005809, allocations: 4.438 kB / 0.986 GB, free: 13.94 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.168e-05/0.00587, allocations: 19.92 kB / 0.9861 GB, free: 13.92 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.005875, allocations: 0 / 0.9861 GB, free: 13.92 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.185e-05/0.005906, allocations: 7.984 kB / 0.9861 GB, free: 13.91 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.005917, allocations: 12 kB / 0.9861 GB, free: 13.9 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.256e-05/0.005979, allocations: 109.8 kB / 0.9862 GB, free: 13.79 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.658e-06/0.005989, allocations: 15.88 kB / 0.9862 GB, free: 13.77 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.006151, allocations: 106.1 kB / 0.9863 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.006153, allocations: 0 / 0.9863 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.006157, allocations: 4 kB / 0.9863 GB, free: 13.66 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.00616, allocations: 7.875 kB / 0.9863 GB, free: 13.65 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/0.006401, allocations: 286.2 kB / 0.9866 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.006402, allocations: 0 / 0.9866 GB, free: 13.33 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.637e-05/0.006428, allocations: 11.98 kB / 0.9866 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.00643, allocations: 0 / 0.9866 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.006436, allocations: 4 kB / 0.9866 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.006437, allocations: 0 / 0.9866 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.006438, allocations: 0 / 0.9866 GB, free: 13.32 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.006584, allocations: 207.3 kB / 0.9868 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-06/0.006589, allocations: 0 / 0.9868 GB, free: 13.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.004e-05/0.006599, allocations: 4 kB / 0.9868 GB, free: 13.09 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.966e-05/0.006648, allocations: 11.98 kB / 0.9868 GB, free: 13.08 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.923e-05/0.006678, allocations: 7.984 kB / 0.9868 GB, free: 13.07 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.006687, allocations: 4 kB / 0.9868 GB, free: 13.07 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.821e-05/0.006715, allocations: 87.47 kB / 0.9869 GB, free: 12.98 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.006715, allocations: 0 / 0.9869 GB, free: 12.98 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001557/0.006871, allocations: 15.94 kB / 0.9869 GB, free: 12.97 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001031/0.006974, allocations: 99.81 kB / 0.987 GB, free: 12.86 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001428/0.007116, allocations: 67.88 kB / 0.9871 GB, free: 12.8 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.007118, allocations: 0 / 0.9871 GB, free: 12.8 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 5.675e-05/0.007175, allocations: 40.09 kB / 0.9871 GB, free: 12.76 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000172/0.007347, allocations: 11.94 kB / 0.9871 GB, free: 12.75 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00024/0.007587, allocations: 154.6 kB / 0.9873 GB, free: 12.56 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.167e-05/0.007628, allocations: 67.28 kB / 0.9873 GB, free: 12.48 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.23e-05/0.007651, allocations: 12.5 kB / 0.9874 GB, free: 12.46 MB / 0.948 GB Notification: Performance of SimCode: time 4.51e-07/0.007651, allocations: 0 / 0.9874 GB, free: 12.46 MB / 0.948 GB Notification: Performance of Templates: time 0.001666/0.009318, allocations: 0.8788 MB / 0.9882 GB, free: 11.59 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.816075276583433]