Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.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.Validation.FallingEdge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falEdg.u|falEdg.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|falEdg.u|falEdg.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001586/0.001586, allocations: 194.1 kB / 16.14 MB, free: 6.637 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.58/1.58, allocations: 222.9 MB / 239.8 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.1/3.1, allocations: 474.4 MB / 0.7465 GB, free: 3.172 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 72.97 kB / 0.9135 GB, free: 32.89 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4953/0.4967, allocations: 160.3 MB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge): time 0.00265/0.4995, allocations: 0.8089 MB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.5012, allocations: 1.17 MB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.211e-05/0.5013, allocations: 4 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.425e-05/0.5014, allocations: 0 / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.234e-05/0.5015, allocations: 11.86 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004974/0.502, allocations: 123.2 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.5021, allocations: 107.8 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.5022, allocations: 23.89 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.722e-05/0.5023, allocations: 39.91 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.527e-05/0.5024, allocations: 39.83 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.5025, allocations: 8 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.495e-05/0.5026, allocations: 19.98 kB / 1.072 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.091e-05/0.5026, allocations: 11.92 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.658e-05/0.5027, allocations: 43.84 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.5029, allocations: 103.7 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.5029, allocations: 0 / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5029, allocations: 0 / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.5029, allocations: 0 / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007455/0.5037, allocations: 417.2 kB / 1.073 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.5037, allocations: 12.03 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/0.5038, allocations: 8.844 kB / 1.073 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.5039, allocations: 176.3 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.504, allocations: 8.375 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/0.504, allocations: 8.359 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000213/0.5042, allocations: 62.23 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.5042, allocations: 192 / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.5043, allocations: 7.922 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.5043, allocations: 4 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.5045, allocations: 43.95 kB / 1.073 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005646/0.505, allocations: 344.5 kB / 1.074 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.5052, allocations: 58.61 kB / 1.074 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.5054, allocations: 32.95 kB / 1.074 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.5054, allocations: 4 kB / 1.074 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/0.5057, allocations: 95.36 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.5057, allocations: 0 / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0004744/0.5062, allocations: 137.5 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.5062, allocations: 59.39 kB / 1.074 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.488e-05/0.5063, allocations: 117.8 kB / 1.074 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.5064, allocations: 25.7 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.94e-05/0.5064, allocations: 100 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.5065, allocations: 11.81 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.847e-05/0.5065, allocations: 37.7 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.5067, allocations: 326.8 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.5069, allocations: 59.84 kB / 1.075 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.5071, allocations: 88.19 kB / 1.075 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.5073, allocations: 149.9 kB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.5074, allocations: 4 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004441/0.5078, allocations: 207.1 kB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.496e-05/0.5079, allocations: 37.7 kB / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.5079, allocations: 0 / 1.075 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.5079, allocations: 4.125 kB / 1.075 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.819e-05/0.508, allocations: 11.98 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.128e-06/0.508, allocations: 4 kB / 1.075 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.5082, allocations: 35.89 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.326e-05/0.5083, allocations: 8 kB / 1.075 GB, free: 3.121 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,falEdg.not_u,$PRE.falEdg.not_u,falEdg.y,booPul.y,$PRE.booPul.y,$whenCondition3) * 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 0.0001083/0.5084, allocations: 129.7 kB / 1.075 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.5084, allocations: 11.91 kB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.5084, allocations: 8.375 kB / 1.075 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.5085, allocations: 4 kB / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5085, allocations: 0 / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.5085, allocations: 0 / 1.075 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004785/0.509, allocations: 370.5 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.509, allocations: 0 / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.706e-05/0.509, allocations: 19.92 kB / 1.076 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.509, allocations: 0 / 1.076 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.5091, allocations: 4 kB / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.5091, allocations: 400 / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5091, allocations: 4 kB / 1.076 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.5094, allocations: 207.3 kB / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.174e-05/0.5095, allocations: 85.02 kB / 1.076 GB, free: 2.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.5095, allocations: 4 kB / 1.076 GB, free: 2.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.874e-05/0.5096, allocations: 11.98 kB / 1.076 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.78e-05/0.5096, allocations: 11.92 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.5097, allocations: 0 / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.441e-05/0.5097, allocations: 91.27 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.964e-06/0.5097, allocations: 0 / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002685/0.51, allocations: 27.94 kB / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (falEdg.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,falEdg.not_u,triggeredSampler.y) * Number of discrete states: 1 (falEdg.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0001993/0.5102, allocations: 117.1 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003888/0.5106, allocations: 175.3 kB / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.5106, allocations: 0 / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.5107, allocations: 39.97 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.5111, allocations: 17.72 kB / 1.076 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004073/0.5115, allocations: 176.2 kB / 1.077 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.5118, allocations: 0.6926 MB / 1.077 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.057e-05/0.5118, allocations: 11.78 kB / 1.077 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.448e-05/0.5119, allocations: 11.44 kB / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.5119, allocations: 0 / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of Templates: time 0.004263/0.5161, allocations: 1.35 MB / 1.079 GB, free: 15.42 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches