Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001803/0.001803, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 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.002009/0.002009, allocations: 173.2 kB / 22.76 MB, free: 1.664 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 1.561/1.561, allocations: 177.1 MB / 203.1 MB, free: 5.297 MB / 186.7 MB " [Timeout remaining time 178] 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 3.414/3.414, allocations: 429.5 MB / 0.6729 GB, free: 4.008 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 0 / 0.8774 GB, free: 6.668 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.306e-05, allocations: 2.906 kB / 0.8774 GB, free: 6.664 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00214/0.002173, allocations: 0.7563 MB / 0.8782 GB, free: 5.934 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001854/0.004027, allocations: 1.189 MB / 0.8793 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.728e-05/0.004075, allocations: 0.6875 kB / 0.8793 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.209e-05/0.004107, allocations: 11.88 kB / 0.8794 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.089e-05/0.004188, allocations: 12.72 kB / 0.8794 GB, free: 4.711 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004833/0.004671, allocations: 136.7 kB / 0.8795 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002216/0.004892, allocations: 127.7 kB / 0.8796 GB, free: 4.453 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.916e-05/0.004992, allocations: 17.3 kB / 0.8796 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.005139, allocations: 71.88 kB / 0.8797 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.924e-05/0.005239, allocations: 39.92 kB / 0.8797 GB, free: 4.324 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.639e-05/0.005275, allocations: 12.94 kB / 0.8798 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.122e-05/0.005356, allocations: 20 kB / 0.8798 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.086e-05/0.005387, allocations: 20.52 kB / 0.8798 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.703e-05/0.005464, allocations: 39.89 kB / 0.8798 GB, free: 4.234 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002646/0.005729, allocations: 152.4 kB / 0.88 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.005732, allocations: 0 / 0.88 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.71e-07/0.005732, allocations: 1.094 kB / 0.88 GB, free: 4.086 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.005738, allocations: 0 / 0.88 GB, free: 4.086 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007448/0.006482, allocations: 441.7 kB / 0.8804 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.00652, allocations: 9.062 kB / 0.8804 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.006661, allocations: 16.89 kB / 0.8804 GB, free: 3.59 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.006813, allocations: 120.5 kB / 0.8805 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.006835, allocations: 5.469 kB / 0.8805 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.00686, allocations: 8.375 kB / 0.8805 GB, free: 3.434 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.007062, allocations: 70.81 kB / 0.8806 GB, free: 3.359 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.007071, allocations: 4.188 kB / 0.8806 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.007082, allocations: 2.312 kB / 0.8806 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.00709, allocations: 4.125 kB / 0.8806 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.007243, allocations: 39.95 kB / 0.8807 GB, free: 3.312 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005741/0.007817, allocations: 335 kB / 0.881 GB, free: 2.953 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.00798, allocations: 59.05 kB / 0.881 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.106e-05/0.008061, allocations: 31.73 kB / 0.8811 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.008081, allocations: 0 / 0.8811 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001851/0.008266, allocations: 89.06 kB / 0.8812 GB, free: 2.746 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.008267, allocations: 0 / 0.8812 GB, free: 2.746 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0004241/0.008691, allocations: 142.5 kB / 0.8813 GB, free: 2.602 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.008746, allocations: 55.41 kB / 0.8813 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.008912, allocations: 189.8 kB / 0.8815 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.008949, allocations: 26.73 kB / 0.8816 GB, free: 2.301 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.009055, allocations: 146.9 kB / 0.8817 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/0.009084, allocations: 19.86 kB / 0.8817 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.426e-05/0.009178, allocations: 48.31 kB / 0.8818 GB, free: 2.078 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002622/0.00944, allocations: 0.4884 MB / 0.8822 GB, free: 1.578 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.00962, allocations: 86.42 kB / 0.8823 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002435/0.009864, allocations: 147.7 kB / 0.8825 GB, free: 1.312 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.01015, allocations: 163.2 kB / 0.8826 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01015, allocations: 0 / 0.8826 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005202/0.01067, allocations: 254 kB / 0.8829 GB, free: 0.8594 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/0.01071, allocations: 37.7 kB / 0.8829 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.01072, allocations: 4.828 kB / 0.8829 GB, free: 0.8125 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.01074, allocations: 4 kB / 0.8829 GB, free: 0.8086 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.01085, allocations: 20.75 kB / 0.8829 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.01086, allocations: 0 / 0.8829 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.01103, allocations: 29.44 kB / 0.8829 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.01106, allocations: 12 kB / 0.883 GB, free: 0.75 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001511/0.01121, allocations: 175.5 kB / 0.8831 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.01123, allocations: 11.89 kB / 0.8831 GB, free: 0.5586 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002866/0.01152, allocations: 118 kB / 0.8832 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.01152, allocations: 0 / 0.8832 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.01153, allocations: 4 kB / 0.8833 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.01153, allocations: 0 / 0.8833 GB, free: 440 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006955/0.01222, allocations: 369.4 kB / 0.8836 GB, free: 28 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01223, allocations: 0 / 0.8836 GB, free: 28 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.927e-05/0.01228, allocations: 11.94 kB / 0.8836 GB, free: 16 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.01229, allocations: 4 kB / 0.8836 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-06/0.0123, allocations: 0 / 0.8836 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.0123, allocations: 0 / 0.8836 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.0123, allocations: 0 / 0.8836 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003729/0.01267, allocations: 268.2 kB / 0.8839 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.416e-05/0.01269, allocations: 7.953 kB / 0.8839 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.0127, allocations: 3.984 kB / 0.8839 GB, free: 15.72 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.365e-05/0.01278, allocations: 8 kB / 0.8839 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.01283, allocations: 7.984 kB / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.01283, allocations: 0 / 0.8839 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 9.617e-05/0.01293, allocations: 135.7 kB / 0.884 GB, free: 15.57 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1e-07/0.01293, allocations: 8 kB / 0.884 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002659/0.0132, allocations: 27.94 kB / 0.8841 GB, free: 15.54 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001699/0.01337, allocations: 99.19 kB / 0.8842 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0004481/0.01381, allocations: 224.7 kB / 0.8844 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01382, allocations: 0 / 0.8844 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.01393, allocations: 43.66 kB / 0.8844 GB, free: 15.14 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.01422, allocations: 28.5 kB / 0.8844 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004512/0.01467, allocations: 178.4 kB / 0.8846 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.19e-05/0.01476, allocations: 75.33 kB / 0.8847 GB, free: 14.82 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.557e-05/0.01479, allocations: 7.984 kB / 0.8847 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.68e-05/0.01483, allocations: 12.5 kB / 0.8847 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of SimCode: time 6.32e-07/0.01483, allocations: 0 / 0.8847 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.005327/0.02016, allocations: 1.565 MB / 0.8862 GB, free: 13.27 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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: 8.610896961996332]