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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 102.2 kB / 16.27 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 191 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.662/2.662, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 68.69 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6952/0.697, allocations: 162.2 MB / 1.083 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002377/0.6994, allocations: 0.7418 MB / 1.084 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00139/0.7009, allocations: 1.073 MB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.426e-05/0.7009, allocations: 1.594 kB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.701, allocations: 8.531 kB / 1.085 GB, free: 396 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.505e-05/0.7011, allocations: 6.406 kB / 1.085 GB, free: 392 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.7013, allocations: 55.94 kB / 1.085 GB, free: 360 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.679e-05/0.7014, allocations: 65.53 kB / 1.085 GB, free: 332 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.7016, allocations: 30.75 kB / 1.085 GB, free: 308 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.01e-05/0.7016, allocations: 30.38 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.174e-05/0.7017, allocations: 33.09 kB / 1.085 GB, free: 276 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.081e-05/0.7017, allocations: 9.812 kB / 1.085 GB, free: 272 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-05/0.7018, allocations: 20.28 kB / 1.085 GB, free: 268 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.185e-05/0.7018, allocations: 17.11 kB / 1.085 GB, free: 256 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.121e-05/0.7019, allocations: 31.97 kB / 1.085 GB, free: 236 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.702, allocations: 69.02 kB / 1.085 GB, free: 212 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.702, allocations: 1.203 kB / 1.085 GB, free: 212 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.702, allocations: 5.188 kB / 1.085 GB, free: 208 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.702, allocations: 0 / 1.085 GB, free: 208 kB / 0.8262 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.0005737/0.7026, allocations: 381.2 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.7027, allocations: 9.281 kB / 1.085 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.456e-05/0.7027, allocations: 17.28 kB / 1.085 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.7029, allocations: 176.9 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.786e-05/0.7029, allocations: 3.312 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.404e-05/0.7029, allocations: 8.625 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.7031, allocations: 75.88 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.7032, allocations: 4.844 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.7032, allocations: 0 / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.7032, allocations: 2.859 kB / 1.086 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.7034, allocations: 43.12 kB / 1.086 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006534/0.704, allocations: 326.8 kB / 1.086 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.7042, allocations: 59.64 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.854e-05/0.7043, allocations: 30.2 kB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.7044, allocations: 2.109 kB / 1.086 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.7046, allocations: 85.48 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.7046, allocations: 1.094 kB / 1.086 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004354/0.7051, allocations: 126.8 kB / 1.086 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.072e-05/0.7051, allocations: 53.98 kB / 1.086 GB, free: 15 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.7052, allocations: 127.2 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.7053, allocations: 30.42 kB / 1.087 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.809e-05/0.7053, allocations: 89.42 kB / 1.087 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.7054, allocations: 19.77 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.362e-05/0.7054, allocations: 29.56 kB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.7056, allocations: 319.9 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.7057, allocations: 30.59 kB / 1.087 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.7058, allocations: 82.56 kB / 1.087 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.7061, allocations: 111.2 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.7061, allocations: 0 / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003329/0.7065, allocations: 135.4 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.7065, allocations: 5.938 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.7065, allocations: 1.125 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.7065, allocations: 3.516 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.7066, allocations: 20.97 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.7067, allocations: 2.75 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.034e-05/0.7067, allocations: 11.16 kB / 1.087 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.7068, allocations: 6.453 kB / 1.087 GB, free: 14.18 MB / 0.8419 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 9.904e-05/0.7069, allocations: 127.1 kB / 1.088 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.456e-05/0.7069, allocations: 12.2 kB / 1.088 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.592e-05/0.7069, allocations: 6.203 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.7069, allocations: 2.078 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.7069, allocations: 0 / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.7069, allocations: 0.6562 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004859/0.7074, allocations: 375.8 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.7075, allocations: 5.344 kB / 1.088 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.46e-05/0.7075, allocations: 15.08 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.7075, allocations: 1.156 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.7075, allocations: 1.859 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.78e-06/0.7075, allocations: 7.938 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7076, allocations: 1.938 kB / 1.088 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003058/0.7079, allocations: 195.3 kB / 1.088 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.842e-05/0.7079, allocations: 87.36 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.7079, allocations: 1.672 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-05/0.708, allocations: 10.83 kB / 1.088 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.7081, allocations: 9.078 kB / 1.088 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.7081, allocations: 1.547 kB / 1.088 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.425e-05/0.7082, allocations: 92.58 kB / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.394e-06/0.7082, allocations: 0 / 1.088 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002577/0.7084, allocations: 21.12 kB / 1.088 GB, free: 13.33 MB / 0.8419 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.0001613/0.7086, allocations: 107.5 kB / 1.088 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002822/0.7089, allocations: 74.39 kB / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.7089, allocations: 1.219 kB / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.709, allocations: 38.92 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.7093, allocations: 14.97 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003919/0.7097, allocations: 200 kB / 1.089 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.71, allocations: 0.6881 MB / 1.089 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.451e-05/0.7101, allocations: 16.59 kB / 1.089 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of SimCode: time 1.91e-07/0.7101, allocations: 0 / 1.089 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of Templates: time 0.002909/0.713, allocations: 1.042 MB / 1.09 GB, free: 12.24 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y