Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.0009381/0.0009381, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009683/0.0009683, allocations: 177 kB / 23.36 MB, free: 1.129 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.9515/0.9515, allocations: 177.1 MB / 203.8 MB, free: 5.461 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.401/2.401, allocations: 438.8 MB / 0.6827 GB, free: 13.62 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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.355e-06/2.355e-06, allocations: 0 / 0.8386 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.702e-05/2.938e-05, allocations: 6.25 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.00145/0.00148, allocations: 0.7556 MB / 0.8393 GB, free: 13.48 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.002567, allocations: 1.127 MB / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.199e-05/0.002609, allocations: 0 / 0.8404 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.977e-05/0.002638, allocations: 11.86 kB / 0.8404 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 7.461e-05/0.002713, allocations: 7.875 kB / 0.8405 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.002983, allocations: 55.77 kB / 0.8405 GB, free: 12.26 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 9.719e-05/0.00308, allocations: 75.75 kB / 0.8406 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.401e-05/0.003164, allocations: 12.12 kB / 0.8406 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 8.398e-05/0.003248, allocations: 43.89 kB / 0.8406 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.441e-05/0.003292, allocations: 19.97 kB / 0.8406 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.003308, allocations: 8 kB / 0.8407 GB, free: 12.1 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.433e-05/0.003363, allocations: 23.98 kB / 0.8407 GB, free: 12.08 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 2.018e-05/0.003383, allocations: 19.84 kB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.472e-05/0.003408, allocations: 23.92 kB / 0.8407 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001098/0.003517, allocations: 63.78 kB / 0.8408 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.00352, allocations: 4 kB / 0.8408 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.61e-07/0.003521, allocations: 0 / 0.8408 GB, free: 11.97 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.256e-06/0.003524, allocations: 0 / 0.8408 GB, free: 11.97 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003248/0.003849, allocations: 268.7 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.003881, allocations: 8.625 kB / 0.841 GB, free: 11.68 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.003909, allocations: 12.92 kB / 0.8411 GB, free: 11.66 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.691e-05/0.003996, allocations: 125.6 kB / 0.8412 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.004006, allocations: 384 / 0.8412 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.004018, allocations: 4.375 kB / 0.8412 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.953e-05/0.004118, allocations: 70.92 kB / 0.8413 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.004125, allocations: 192 / 0.8413 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-06/0.004132, allocations: 4.375 kB / 0.8413 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.004138, allocations: 4.125 kB / 0.8413 GB, free: 11.43 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.127e-05/0.004159, allocations: 15.92 kB / 0.8413 GB, free: 11.41 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002876/0.004447, allocations: 176.3 kB / 0.8414 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.086e-05/0.004518, allocations: 34.56 kB / 0.8415 GB, free: 11.18 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.729e-05/0.004535, allocations: 12.98 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.004553, allocations: 4.094 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.377e-05/0.004627, allocations: 67.2 kB / 0.8416 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.004628, allocations: 0 / 0.8416 GB, free: 11.08 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001223/0.00475, allocations: 61.67 kB / 0.8416 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.004796, allocations: 51.41 kB / 0.8417 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.727e-05/0.004863, allocations: 122.7 kB / 0.8418 GB, free: 10.82 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.004876, allocations: 29.64 kB / 0.8418 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.87e-05/0.004915, allocations: 104.1 kB / 0.8419 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.004932, allocations: 15.84 kB / 0.8419 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.004969, allocations: 33.62 kB / 0.842 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.963e-05/0.005048, allocations: 322.8 kB / 0.8423 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.573e-05/0.005064, allocations: 4 kB / 0.8423 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.915e-05/0.005103, allocations: 61.98 kB / 0.8423 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.226e-05/0.005166, allocations: 65.94 kB / 0.8424 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.005168, allocations: 0 / 0.8424 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 8.95e-05/0.005257, allocations: 85.47 kB / 0.8425 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.005272, allocations: 10.12 kB / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.005277, allocations: 4.312 kB / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.005291, allocations: 0 / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.094e-05/0.005382, allocations: 20.14 kB / 0.8425 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.005387, allocations: 8 kB / 0.8425 GB, free: 10 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.17e-05/0.005418, allocations: 4 kB / 0.8425 GB, free: 9.996 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.258e-05/0.005431, allocations: 7.984 kB / 0.8425 GB, free: 9.988 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * 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 7.381e-05/0.005505, allocations: 121.8 kB / 0.8426 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.022e-05/0.005515, allocations: 7.938 kB / 0.8426 GB, free: 9.852 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.486e-05/0.00554, allocations: 8.438 kB / 0.8427 GB, free: 9.848 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.005542, allocations: 4 kB / 0.8427 GB, free: 9.844 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.005544, allocations: 0 / 0.8427 GB, free: 9.844 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.005549, allocations: 3.984 kB / 0.8427 GB, free: 9.84 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.005758, allocations: 222.7 kB / 0.8429 GB, free: 9.598 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.005761, allocations: 3.938 kB / 0.8429 GB, free: 9.594 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.912e-05/0.00579, allocations: 7.984 kB / 0.8429 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.005792, allocations: 0 / 0.8429 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-06/0.005797, allocations: 0 / 0.8429 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.005799, allocations: 0 / 0.8429 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.0058, allocations: 0 / 0.8429 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.644e-05/0.005887, allocations: 155.5 kB / 0.843 GB, free: 9.418 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.168e-05/0.005898, allocations: 11.89 kB / 0.843 GB, free: 9.406 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.466e-06/0.005907, allocations: 0 / 0.843 GB, free: 9.406 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.189e-05/0.005939, allocations: 7.938 kB / 0.8431 GB, free: 9.398 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.251e-05/0.005971, allocations: 11.98 kB / 0.8431 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.005975, allocations: 0 / 0.8431 GB, free: 9.387 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.278e-05/0.005998, allocations: 25.48 kB / 0.8431 GB, free: 9.359 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.005998, allocations: 0 / 0.8431 GB, free: 9.359 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001509/0.006149, allocations: 12 kB / 0.8431 GB, free: 9.348 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0002191/0.006368, allocations: 88.27 kB / 0.8432 GB, free: 9.254 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001297/0.006497, allocations: 44.7 kB / 0.8432 GB, free: 9.207 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.006502, allocations: 448 / 0.8432 GB, free: 9.207 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.192e-05/0.006544, allocations: 24.84 kB / 0.8433 GB, free: 9.18 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.006773, allocations: 23.86 kB / 0.8433 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003777/0.007151, allocations: 157.1 kB / 0.8434 GB, free: 8.973 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.853e-05/0.007199, allocations: 59.34 kB / 0.8435 GB, free: 8.895 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.028e-05/0.007229, allocations: 7.938 kB / 0.8435 GB, free: 8.887 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.958e-05/0.007299, allocations: 63.36 kB / 0.8436 GB, free: 8.824 MB / 0.8073 GB Notification: Performance of SimCode: time 1.303e-06/0.0073, allocations: 0 / 0.8436 GB, free: 8.824 MB / 0.8073 GB Notification: Performance of Templates: time 0.003293/0.01059, allocations: 1.062 MB / 0.8446 GB, free: 7.777 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.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.31711082207039]