Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008031/0.0008031, allocations: 76.5 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.0007852/0.0007852, allocations: 174.3 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.8858/0.8858, allocations: 177.1 MB / 203.5 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.777/1.777, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 1.001 GB, free: 13.02 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.772e-05/2.973e-05, allocations: 2.281 kB / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001331/0.001361, allocations: 0.6644 MB / 1.002 GB, free: 12.35 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.002489, allocations: 1.081 MB / 1.003 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.57e-05/0.002535, allocations: 4 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.771e-05/0.002563, allocations: 3.938 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 6.334e-05/0.002626, allocations: 7.938 kB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003081/0.002934, allocations: 47.77 kB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 9.264e-05/0.003027, allocations: 47.84 kB / 1.003 GB, free: 11.15 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.245e-05/0.003119, allocations: 7.984 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.206e-05/0.003201, allocations: 27.97 kB / 1.003 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 4.469e-05/0.003246, allocations: 15.92 kB / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.62e-05/0.003262, allocations: 4 kB / 1.003 GB, free: 11.09 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.693e-05/0.003329, allocations: 27.92 kB / 1.003 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.007e-05/0.003349, allocations: 7.984 kB / 1.003 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.822e-05/0.003377, allocations: 15.92 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001349/0.003512, allocations: 71.77 kB / 1.003 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.003515, allocations: 4 kB / 1.003 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of FrontEnd: time 9.82e-07/0.003516, allocations: 0 / 1.003 GB, free: 10.97 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.00352, allocations: 0 / 1.003 GB, free: 10.97 MB / 0.9636 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.0004588/0.003979, allocations: 282.2 kB / 1.003 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.004019, allocations: 12.75 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.628e-05/0.004095, allocations: 4.891 kB / 1.003 GB, free: 10.64 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.341e-05/0.004179, allocations: 117.8 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.004192, allocations: 16.3 kB / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-06/0.004201, allocations: 384 / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001456/0.004347, allocations: 66.23 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.004355, allocations: 192 / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.004366, allocations: 384 / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.00437, allocations: 384 / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/0.004475, allocations: 51.83 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003357/0.004811, allocations: 212.5 kB / 1.004 GB, free: 10.13 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.004928, allocations: 54.55 kB / 1.004 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.485e-05/0.004983, allocations: 28.95 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.005002, allocations: 4 kB / 1.004 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001496/0.005151, allocations: 75.27 kB / 1.004 GB, free: 9.945 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.005153, allocations: 0 / 1.004 GB, free: 9.945 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002692/0.005422, allocations: 117.6 kB / 1.004 GB, free: 9.824 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.00546, allocations: 51.41 kB / 1.004 GB, free: 9.762 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.861e-05/0.005529, allocations: 113.8 kB / 1.004 GB, free: 9.641 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.005541, allocations: 25.7 kB / 1.004 GB, free: 9.609 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.694e-05/0.005578, allocations: 88.08 kB / 1.004 GB, free: 9.52 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.0056, allocations: 23.84 kB / 1.004 GB, free: 9.496 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.358e-05/0.005634, allocations: 21.72 kB / 1.004 GB, free: 9.469 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.389e-05/0.005717, allocations: 322.8 kB / 1.004 GB, free: 9.145 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.816e-05/0.005776, allocations: 24 kB / 1.004 GB, free: 9.121 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.883e-05/0.005844, allocations: 55.39 kB / 1.005 GB, free: 9.055 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.005962, allocations: 83.33 kB / 1.005 GB, free: 8.961 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.005965, allocations: 0 / 1.005 GB, free: 8.961 MB / 0.9636 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001508/0.006115, allocations: 101.6 kB / 1.005 GB, free: 8.855 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.006129, allocations: 11.94 kB / 1.005 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.006135, allocations: 4.094 kB / 1.005 GB, free: 8.84 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.006145, allocations: 0 / 1.005 GB, free: 8.84 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.335e-05/0.006219, allocations: 15.98 kB / 1.005 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.006225, allocations: 4.141 kB / 1.005 GB, free: 8.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.345e-05/0.006258, allocations: 4 kB / 1.005 GB, free: 8.816 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.006267, allocations: 7.938 kB / 1.005 GB, free: 8.809 MB / 0.9636 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.936e-05/0.006337, allocations: 117.8 kB / 1.005 GB, free: 8.684 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.006346, allocations: 7.891 kB / 1.005 GB, free: 8.676 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001853/0.006531, allocations: 106.6 kB / 1.005 GB, free: 8.566 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.006533, allocations: 3.938 kB / 1.005 GB, free: 8.562 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.006539, allocations: 8.062 kB / 1.005 GB, free: 8.555 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.006543, allocations: 0 / 1.005 GB, free: 8.555 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/0.006821, allocations: 294.1 kB / 1.005 GB, free: 8.23 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.006825, allocations: 3.984 kB / 1.005 GB, free: 8.227 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.274e-05/0.006857, allocations: 8.047 kB / 1.005 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.006861, allocations: 3.984 kB / 1.005 GB, free: 8.215 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.273e-06/0.006868, allocations: 4 kB / 1.005 GB, free: 8.211 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.006871, allocations: 3.984 kB / 1.005 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.006872, allocations: 0 / 1.005 GB, free: 8.207 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.007034, allocations: 199.3 kB / 1.005 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.714e-06/0.007042, allocations: 3.938 kB / 1.006 GB, free: 7.992 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.007054, allocations: 7.984 kB / 1.006 GB, free: 7.984 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.971e-05/0.007104, allocations: 4 kB / 1.006 GB, free: 7.98 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-05/0.007139, allocations: 7.984 kB / 1.006 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.00715, allocations: 0 / 1.006 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.22e-05/0.007182, allocations: 91.27 kB / 1.006 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8.1e-08/0.007182, allocations: 0 / 1.006 GB, free: 7.883 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001764/0.007358, allocations: 19.95 kB / 1.006 GB, free: 7.863 MB / 0.9636 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.000115/0.007473, allocations: 95.25 kB / 1.006 GB, free: 7.758 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001572/0.00763, allocations: 59.89 kB / 1.006 GB, free: 7.699 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.007632, allocations: 0 / 1.006 GB, free: 7.699 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.014e-05/0.007702, allocations: 44.09 kB / 1.006 GB, free: 7.656 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.007899, allocations: 14.72 kB / 1.006 GB, free: 7.645 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002887/0.008188, allocations: 154.6 kB / 1.006 GB, free: 7.461 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.437e-05/0.008232, allocations: 63.34 kB / 1.006 GB, free: 7.379 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.00826, allocations: 16.5 kB / 1.006 GB, free: 7.363 MB / 0.9636 GB Notification: Performance of SimCode: time 5.01e-07/0.008261, allocations: 0 / 1.006 GB, free: 7.363 MB / 0.9636 GB Notification: Performance of Templates: time 0.001968/0.01023, allocations: 0.8766 MB / 1.007 GB, free: 6.488 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.36215213034302]