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.001048/0.001048, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001107/0.001107, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.053/1.053, allocations: 177.1 MB / 204.5 MB, free: 5.504 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 2.188/2.188, allocations: 429.5 MB / 0.6743 GB, free: 3.918 MB / 0.6355 GB " [Timeout remaining time 177] 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 1.893e-06/1.893e-06, allocations: 0 / 0.8794 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/2.046e-05, allocations: 6.359 kB / 0.8794 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001314/0.001334, allocations: 0.7713 MB / 0.8801 GB, free: 5.285 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.002576, allocations: 1.212 MB / 0.8813 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.543e-05/0.002632, allocations: 4 kB / 0.8813 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.89e-05/0.002661, allocations: 8.969 kB / 0.8813 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.611e-05/0.002737, allocations: 11.86 kB / 0.8813 GB, free: 4.039 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007052/0.003442, allocations: 136.2 kB / 0.8815 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.003602, allocations: 132.7 kB / 0.8816 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.047e-05/0.003692, allocations: 12.19 kB / 0.8816 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.003804, allocations: 72.61 kB / 0.8817 GB, free: 3.691 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 8.096e-05/0.003885, allocations: 35.89 kB / 0.8817 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.299e-05/0.003908, allocations: 12.62 kB / 0.8817 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.717e-05/0.003975, allocations: 39.84 kB / 0.8818 GB, free: 3.605 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.003998, allocations: 15.42 kB / 0.8818 GB, free: 3.594 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.199e-05/0.00404, allocations: 47.89 kB / 0.8818 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.004183, allocations: 103.7 kB / 0.8819 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.004185, allocations: 0 / 0.8819 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of FrontEnd: time 5.61e-07/0.004185, allocations: 0 / 0.8819 GB, free: 3.445 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.527e-06/0.004189, allocations: 0 / 0.8819 GB, free: 3.445 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.0004011/0.00459, allocations: 438.1 kB / 0.8823 GB, free: 2.977 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.004625, allocations: 12.03 kB / 0.8823 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.677e-05/0.004722, allocations: 16.83 kB / 0.8824 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.552e-05/0.004797, allocations: 117.1 kB / 0.8825 GB, free: 2.809 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.004812, allocations: 12.95 kB / 0.8825 GB, free: 2.797 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.004829, allocations: 8.375 kB / 0.8825 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.004931, allocations: 71.88 kB / 0.8826 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.004939, allocations: 192 / 0.8826 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-06/0.004946, allocations: 1.031 kB / 0.8826 GB, free: 2.711 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.004951, allocations: 4.125 kB / 0.8826 GB, free: 2.707 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.641e-05/0.004977, allocations: 13.52 kB / 0.8826 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003122/0.005289, allocations: 308.2 kB / 0.8829 GB, free: 2.367 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.002e-05/0.005359, allocations: 43.06 kB / 0.8829 GB, free: 2.312 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.842e-05/0.005378, allocations: 15.67 kB / 0.8829 GB, free: 2.293 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.005393, allocations: 3.984 kB / 0.8829 GB, free: 2.289 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.793e-05/0.005481, allocations: 85.11 kB / 0.883 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.804e-06/0.005483, allocations: 0 / 0.883 GB, free: 2.191 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.00017/0.005653, allocations: 93.62 kB / 0.8831 GB, free: 2.094 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.112e-05/0.005684, allocations: 51.41 kB / 0.8831 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.386e-05/0.005758, allocations: 185.8 kB / 0.8833 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.005778, allocations: 33.7 kB / 0.8834 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.303e-05/0.005831, allocations: 138.9 kB / 0.8835 GB, free: 1.652 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.005851, allocations: 31.77 kB / 0.8835 GB, free: 1.621 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.005901, allocations: 39.36 kB / 0.8836 GB, free: 1.574 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.006014, allocations: 0.4884 MB / 0.884 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.61e-05/0.00607, allocations: 57.69 kB / 0.8841 GB, free: 1.012 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-05/0.006143, allocations: 114.5 kB / 0.8842 GB, free: 0.8711 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.006244, allocations: 127.7 kB / 0.8843 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.006246, allocations: 0 / 0.8843 GB, free: 0.7148 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002044/0.00645, allocations: 208.8 kB / 0.8845 GB, free: 0.4922 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.00648, allocations: 33.7 kB / 0.8846 GB, free: 464 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.006485, allocations: 4 kB / 0.8846 GB, free: 460 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.006495, allocations: 0 / 0.8846 GB, free: 460 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.264e-05/0.006568, allocations: 23.92 kB / 0.8846 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.626e-06/0.006572, allocations: 0 / 0.8846 GB, free: 436 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.981e-05/0.006661, allocations: 28.14 kB / 0.8846 GB, free: 408 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.006676, allocations: 11.98 kB / 0.8846 GB, free: 396 kB / 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 7.822e-05/0.006755, allocations: 164.6 kB / 0.8848 GB, free: 220 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.006769, allocations: 11.89 kB / 0.8848 GB, free: 208 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.00688, allocations: 90.03 kB / 0.8849 GB, free: 108 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.006883, allocations: 4 kB / 0.8849 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.006885, allocations: 0 / 0.8849 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.006889, allocations: 0 / 0.8849 GB, free: 104 kB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.007093, allocations: 314.2 kB / 0.8852 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.007095, allocations: 3.938 kB / 0.8852 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.802e-05/0.007123, allocations: 11.84 kB / 0.8852 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.007125, allocations: 0 / 0.8852 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.007131, allocations: 3.984 kB / 0.8852 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.007133, allocations: 7.938 kB / 0.8852 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.007134, allocations: 0 / 0.8852 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.007252, allocations: 232.3 kB / 0.8854 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.069e-05/0.007263, allocations: 11.83 kB / 0.8854 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.007274, allocations: 4 kB / 0.8854 GB, free: 15.47 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.494e-05/0.007309, allocations: 4 kB / 0.8854 GB, free: 15.47 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.782e-05/0.007337, allocations: 7.984 kB / 0.8854 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.007342, allocations: 0 / 0.8854 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.995e-05/0.007382, allocations: 139.2 kB / 0.8856 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.007382, allocations: 0 / 0.8856 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000192/0.007574, allocations: 24 kB / 0.8856 GB, free: 15.3 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 9.941e-05/0.007674, allocations: 107.2 kB / 0.8857 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001694/0.007843, allocations: 156.7 kB / 0.8859 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.007844, allocations: 0 / 0.8859 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.246e-05/0.007877, allocations: 27.73 kB / 0.8859 GB, free: 14.98 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.008068, allocations: 25.44 kB / 0.8859 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003833/0.008451, allocations: 186.3 kB / 0.8861 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.095e-05/0.008482, allocations: 55.36 kB / 0.8861 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.94e-05/0.008511, allocations: 7.984 kB / 0.8861 GB, free: 14.66 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.194e-05/0.008593, allocations: 86.19 kB / 0.8862 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of SimCode: time 7.92e-07/0.008594, allocations: 4 kB / 0.8862 GB, free: 14.57 MB / 0.8542 GB Notification: Performance of Templates: time 0.003395/0.01199, allocations: 1.75 MB / 0.8879 GB, free: 12.87 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.500351969152689]