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.001017/0.001017, allocations: 80.81 kB / 19.94 MB, free: 4.547 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.001074/0.001074, allocations: 177 kB / 23.36 MB, free: 1.133 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.9071/0.9071, allocations: 177.1 MB / 203.8 MB, free: 5.453 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.439/2.439, allocations: 438.8 MB / 0.6827 GB, free: 13.63 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.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.443e-06/1.443e-06, allocations: 0 / 0.8386 GB, free: 14.28 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.532e-05/1.676e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.001228/0.001244, allocations: 0.755 MB / 0.8393 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.002503, allocations: 1.232 MB / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.442e-05/0.002548, allocations: 0 / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.002575, allocations: 3.938 kB / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.232e-05/0.002647, allocations: 19.84 kB / 0.8405 GB, free: 12.25 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003617/0.003009, allocations: 131.6 kB / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0001345/0.003143, allocations: 123.7 kB / 0.8408 GB, free: 12 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.189e-05/0.003225, allocations: 20.11 kB / 0.8408 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.003326, allocations: 75.88 kB / 0.8409 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 6.985e-05/0.003396, allocations: 35.94 kB / 0.8409 GB, free: 11.87 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.003415, allocations: 12 kB / 0.8409 GB, free: 11.86 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.928e-05/0.003475, allocations: 35.91 kB / 0.8409 GB, free: 11.82 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.033e-05/0.003495, allocations: 11.94 kB / 0.8409 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.003535, allocations: 39.89 kB / 0.841 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.003672, allocations: 103.7 kB / 0.8411 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.003674, allocations: 0 / 0.8411 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.31e-07/0.003675, allocations: 0 / 0.8411 GB, free: 11.67 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.066e-06/0.003678, allocations: 0 / 0.8411 GB, free: 11.67 MB / 0.8073 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.0003632/0.004041, allocations: 314.4 kB / 0.8414 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.00407, allocations: 8.031 kB / 0.8414 GB, free: 11.32 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.143e-05/0.004151, allocations: 20.86 kB / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.664e-05/0.004228, allocations: 133.6 kB / 0.8415 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.00424, allocations: 4.375 kB / 0.8415 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.004256, allocations: 8.375 kB / 0.8416 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.286e-05/0.004349, allocations: 66.92 kB / 0.8416 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.483e-06/0.004356, allocations: 192 / 0.8416 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-06/0.004363, allocations: 4.375 kB / 0.8416 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.004369, allocations: 8.125 kB / 0.8416 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.45e-05/0.004394, allocations: 15.92 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002555/0.004649, allocations: 180.3 kB / 0.8418 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.336e-05/0.004712, allocations: 46.59 kB / 0.8419 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.389e-05/0.004726, allocations: 8.859 kB / 0.8419 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.14e-05/0.004738, allocations: 0 / 0.8419 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.827e-05/0.004816, allocations: 75.25 kB / 0.8419 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 7.72e-07/0.004817, allocations: 0 / 0.8419 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8): time 0.000138/0.004955, allocations: 77.95 kB / 0.842 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.757e-05/0.004992, allocations: 55.41 kB / 0.8421 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.507e-05/0.005057, allocations: 126.6 kB / 0.8422 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.005076, allocations: 33.7 kB / 0.8422 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.683e-05/0.005113, allocations: 100 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.00513, allocations: 19.84 kB / 0.8423 GB, free: 10.25 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.454e-05/0.005174, allocations: 33.69 kB / 0.8424 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.179e-05/0.005246, allocations: 322.8 kB / 0.8427 GB, free: 9.883 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.665e-05/0.005293, allocations: 49.69 kB / 0.8427 GB, free: 9.828 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.44e-05/0.005357, allocations: 94.81 kB / 0.8428 GB, free: 9.711 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.955e-05/0.005437, allocations: 114.7 kB / 0.8429 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.005439, allocations: 0 / 0.8429 GB, free: 9.574 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001345/0.005573, allocations: 168.9 kB / 0.8431 GB, free: 9.391 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.005601, allocations: 41.69 kB / 0.8431 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.005605, allocations: 80 / 0.8431 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.005617, allocations: 4 kB / 0.8431 GB, free: 9.34 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.274e-05/0.00568, allocations: 12.16 kB / 0.8431 GB, free: 9.328 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.005684, allocations: 7.984 kB / 0.8431 GB, free: 9.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.302e-05/0.005757, allocations: 27.92 kB / 0.8432 GB, free: 9.293 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.005772, allocations: 15.94 kB / 0.8432 GB, free: 9.277 MB / 0.8073 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 5.94e-05/0.005831, allocations: 120.1 kB / 0.8433 GB, free: 9.152 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.108e-05/0.005842, allocations: 11.94 kB / 0.8433 GB, free: 9.141 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.272e-05/0.005915, allocations: 62.11 kB / 0.8434 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.005917, allocations: 0 / 0.8434 GB, free: 9.078 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.005918, allocations: 4 kB / 0.8434 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.005921, allocations: 4 kB / 0.8434 GB, free: 9.07 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.006049, allocations: 214.7 kB / 0.8436 GB, free: 8.836 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.006051, allocations: 4 kB / 0.8436 GB, free: 8.832 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.006074, allocations: 11.92 kB / 0.8436 GB, free: 8.82 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.006075, allocations: 0 / 0.8436 GB, free: 8.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.006081, allocations: 4 kB / 0.8436 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.006081, allocations: 0 / 0.8436 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.006082, allocations: 0 / 0.8436 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.4e-05/0.006156, allocations: 159.5 kB / 0.8438 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.753e-06/0.006163, allocations: 7.891 kB / 0.8438 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.316e-06/0.006171, allocations: 11.94 kB / 0.8438 GB, free: 8.625 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.171e-05/0.006203, allocations: 3.984 kB / 0.8438 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.632e-05/0.006229, allocations: 15.97 kB / 0.8438 GB, free: 8.605 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.006232, allocations: 0 / 0.8438 GB, free: 8.605 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.188e-05/0.006244, allocations: 12.86 kB / 0.8438 GB, free: 8.59 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.006244, allocations: 0 / 0.8438 GB, free: 8.59 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001402/0.006384, allocations: 31.98 kB / 0.8438 GB, free: 8.559 MB / 0.8073 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 8.824e-05/0.006473, allocations: 76.42 kB / 0.8439 GB, free: 8.473 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001454/0.006618, allocations: 158 kB / 0.8441 GB, free: 8.297 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.00662, allocations: 0 / 0.8441 GB, free: 8.297 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.035e-05/0.006651, allocations: 28.8 kB / 0.8441 GB, free: 8.266 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001234/0.006774, allocations: 7.984 kB / 0.8441 GB, free: 8.258 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000369/0.007143, allocations: 180.8 kB / 0.8443 GB, free: 8.055 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.606e-05/0.007179, allocations: 63.95 kB / 0.8443 GB, free: 7.973 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.033e-05/0.007199, allocations: 7.984 kB / 0.8443 GB, free: 7.965 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.078e-05/0.00727, allocations: 67.36 kB / 0.8444 GB, free: 7.898 MB / 0.8073 GB Notification: Performance of SimCode: time 6.51e-07/0.007271, allocations: 0 / 0.8444 GB, free: 7.898 MB / 0.8073 GB Notification: Performance of Templates: time 0.002972/0.01024, allocations: 1.658 MB / 0.846 GB, free: 6.277 MB / 0.8073 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.323996500112116]