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.0009412/0.0009412, allocations: 81.86 kB / 19.87 MB, free: 4.621 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.000927/0.000927, allocations: 169.7 kB / 23.28 MB, free: 1.219 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.9253/0.9253, allocations: 177.1 MB / 203.7 MB, free: 5.512 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.396/2.396, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 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 2.615e-06/2.615e-06, allocations: 0 / 0.8897 GB, free: 9.746 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.902e-05/3.164e-05, allocations: 2.312 kB / 0.8897 GB, free: 9.742 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002034/0.002065, allocations: 0.7634 MB / 0.8905 GB, free: 8.98 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001695/0.00376, allocations: 1.201 MB / 0.8916 GB, free: 7.766 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.272e-05/0.003823, allocations: 7.938 kB / 0.8917 GB, free: 7.758 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 3.524e-05/0.003858, allocations: 7.922 kB / 0.8917 GB, free: 7.75 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 8.772e-05/0.003946, allocations: 11.88 kB / 0.8917 GB, free: 7.738 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.004463, allocations: 135.6 kB / 0.8918 GB, free: 7.605 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.004657, allocations: 127.7 kB / 0.8919 GB, free: 7.48 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.004777, allocations: 20.11 kB / 0.8919 GB, free: 7.457 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.004946, allocations: 71.88 kB / 0.892 GB, free: 7.387 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.005048, allocations: 39.92 kB / 0.8921 GB, free: 7.348 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.005079, allocations: 12 kB / 0.8921 GB, free: 7.336 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 9.83e-05/0.005177, allocations: 23.98 kB / 0.8921 GB, free: 7.312 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 3.94e-05/0.005217, allocations: 19.92 kB / 0.8921 GB, free: 7.293 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.005273, allocations: 35.91 kB / 0.8921 GB, free: 7.258 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002111/0.005484, allocations: 115.7 kB / 0.8923 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.005488, allocations: 0 / 0.8923 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.372e-06/0.005489, allocations: 0 / 0.8923 GB, free: 7.145 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.005495, allocations: 0 / 0.8923 GB, free: 7.145 MB / 0.8542 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.0005544/0.006049, allocations: 438 kB / 0.8927 GB, free: 6.676 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.799e-05/0.006107, allocations: 16.02 kB / 0.8927 GB, free: 6.66 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.006244, allocations: 20.83 kB / 0.8927 GB, free: 6.641 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.774e-05/0.006341, allocations: 108.6 kB / 0.8928 GB, free: 6.508 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.006359, allocations: 4.375 kB / 0.8928 GB, free: 6.504 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.087e-05/0.00638, allocations: 12.38 kB / 0.8928 GB, free: 6.492 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.00653, allocations: 74.86 kB / 0.8929 GB, free: 6.41 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.00654, allocations: 192 / 0.8929 GB, free: 6.41 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.006551, allocations: 4.375 kB / 0.8929 GB, free: 6.406 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.006561, allocations: 12.12 kB / 0.8929 GB, free: 6.395 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.006778, allocations: 7.984 kB / 0.8929 GB, free: 6.387 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004518/0.00723, allocations: 304.2 kB / 0.8932 GB, free: 6.062 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 8.698e-05/0.007317, allocations: 43.03 kB / 0.8932 GB, free: 6.008 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.524e-05/0.007342, allocations: 19.8 kB / 0.8933 GB, free: 5.984 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.007372, allocations: 8 kB / 0.8933 GB, free: 5.977 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001234/0.007495, allocations: 72.97 kB / 0.8933 GB, free: 5.891 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.664e-06/0.007497, allocations: 4 kB / 0.8933 GB, free: 5.887 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.0002157/0.007713, allocations: 93.64 kB / 0.8934 GB, free: 5.789 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.007747, allocations: 55.41 kB / 0.8935 GB, free: 5.723 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.007859, allocations: 181.8 kB / 0.8937 GB, free: 5.527 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.007883, allocations: 29.64 kB / 0.8937 GB, free: 5.492 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.846e-05/0.007952, allocations: 142.8 kB / 0.8938 GB, free: 5.348 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.007979, allocations: 19.83 kB / 0.8938 GB, free: 5.328 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.311e-05/0.008052, allocations: 51.33 kB / 0.8939 GB, free: 5.27 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002081/0.00826, allocations: 0.4961 MB / 0.8944 GB, free: 4.762 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.008379, allocations: 53.67 kB / 0.8944 GB, free: 4.703 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.493e-05/0.008474, allocations: 108.2 kB / 0.8945 GB, free: 4.566 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.008592, allocations: 123.7 kB / 0.8947 GB, free: 4.414 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.008595, allocations: 0 / 0.8947 GB, free: 4.414 MB / 0.8542 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002502/0.008845, allocations: 208.8 kB / 0.8949 GB, free: 4.191 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.008885, allocations: 33.69 kB / 0.8949 GB, free: 4.152 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.008892, allocations: 4 kB / 0.8949 GB, free: 4.148 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.008907, allocations: 0 / 0.8949 GB, free: 4.148 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.009019, allocations: 23.92 kB / 0.8949 GB, free: 4.125 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.009023, allocations: 4 kB / 0.8949 GB, free: 4.121 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.863e-05/0.009122, allocations: 23.94 kB / 0.8949 GB, free: 4.098 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.009136, allocations: 7.984 kB / 0.8949 GB, free: 4.09 MB / 0.8542 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 9.319e-05/0.00923, allocations: 172.7 kB / 0.8951 GB, free: 3.91 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.009245, allocations: 7.938 kB / 0.8951 GB, free: 3.902 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.009378, allocations: 94.03 kB / 0.8952 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.00938, allocations: 0 / 0.8952 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.009382, allocations: 0 / 0.8952 GB, free: 3.805 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.009387, allocations: 3.984 kB / 0.8952 GB, free: 3.801 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002017/0.009589, allocations: 318 kB / 0.8955 GB, free: 3.457 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.009591, allocations: 3.938 kB / 0.8955 GB, free: 3.453 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.988e-05/0.009631, allocations: 8 kB / 0.8955 GB, free: 3.445 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.009633, allocations: 0 / 0.8955 GB, free: 3.445 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.009639, allocations: 8 kB / 0.8955 GB, free: 3.438 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.009641, allocations: 0 / 0.8955 GB, free: 3.438 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.009642, allocations: 0 / 0.8955 GB, free: 3.438 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.009765, allocations: 224.4 kB / 0.8957 GB, free: 3.199 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.144e-05/0.009776, allocations: 15.83 kB / 0.8958 GB, free: 3.184 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.009789, allocations: 11.92 kB / 0.8958 GB, free: 3.172 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.463e-05/0.009824, allocations: 0 / 0.8958 GB, free: 3.172 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.009857, allocations: 11.97 kB / 0.8958 GB, free: 3.16 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.69e-06/0.009863, allocations: 4 kB / 0.8958 GB, free: 3.156 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.814e-05/0.009911, allocations: 139.2 kB / 0.8959 GB, free: 3.02 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.009911, allocations: 0 / 0.8959 GB, free: 3.02 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000186/0.0101, allocations: 28 kB / 0.8959 GB, free: 2.992 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.0001375/0.01023, allocations: 103.2 kB / 0.896 GB, free: 2.883 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001704/0.0104, allocations: 156.7 kB / 0.8962 GB, free: 2.707 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01041, allocations: 0 / 0.8962 GB, free: 2.707 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.389e-05/0.01044, allocations: 31.73 kB / 0.8962 GB, free: 2.672 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.01064, allocations: 20.33 kB / 0.8962 GB, free: 2.656 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005392/0.01118, allocations: 186.4 kB / 0.8964 GB, free: 2.445 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.868e-05/0.01122, allocations: 59.34 kB / 0.8965 GB, free: 2.367 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.011e-05/0.01125, allocations: 11.97 kB / 0.8965 GB, free: 2.355 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.78e-05/0.01134, allocations: 94.19 kB / 0.8966 GB, free: 2.262 MB / 0.8542 GB Notification: Performance of SimCode: time 9.02e-07/0.01134, allocations: 0 / 0.8966 GB, free: 2.262 MB / 0.8542 GB Notification: Performance of Templates: time 0.00328/0.01462, allocations: 1.709 MB / 0.8983 GB, free: 0.5859 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.202358155976981]