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.001137/0.001137, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001201/0.001202, allocations: 189.6 kB / 16.25 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.6/1.6, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.12/3.12, allocations: 472.6 MB / 0.7448 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 72.58 kB / 0.9116 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.424/0.4259, allocations: 159.9 MB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge): time 0.003223/0.4292, allocations: 0.8009 MB / 1.069 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00229/0.4316, allocations: 1.151 MB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.996e-05/0.4317, allocations: 3.938 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.727e-05/0.4318, allocations: 0 / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.4319, allocations: 11.92 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007322/0.4326, allocations: 123 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.4329, allocations: 115.8 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.4331, allocations: 23.97 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001717/0.4332, allocations: 51.89 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001244/0.4334, allocations: 43.83 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.431e-05/0.4334, allocations: 8 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.4335, allocations: 31.92 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.564e-05/0.4336, allocations: 19.91 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.346e-05/0.4337, allocations: 39.84 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002401/0.4339, allocations: 107.7 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.4339, allocations: 0 / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.624e-06/0.4339, allocations: 0 / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.102e-05/0.434, allocations: 0 / 1.07 GB, free: 8.211 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.0008656/0.4348, allocations: 425.2 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.4349, allocations: 15.97 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.514e-05/0.435, allocations: 8.844 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.4352, allocations: 164.4 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.4352, allocations: 12.38 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.4352, allocations: 4.375 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002376/0.4355, allocations: 74.14 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4355, allocations: 4.188 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.4355, allocations: 3.938 kB / 1.071 GB, free: 7.414 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.4355, allocations: 4 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.4357, allocations: 43.95 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.4364, allocations: 340.6 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.4367, allocations: 66.5 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.4368, allocations: 32.95 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.4368, allocations: 0 / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002555/0.4371, allocations: 87.36 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 2.064e-06/0.4371, allocations: 0 / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0005443/0.4376, allocations: 145.5 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.4377, allocations: 55.41 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.4378, allocations: 125.8 kB / 1.072 GB, free: 6.43 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.4379, allocations: 25.7 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.976e-05/0.438, allocations: 96.05 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.438, allocations: 19.8 kB / 1.072 GB, free: 6.281 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.4381, allocations: 37.7 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.4383, allocations: 326.8 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.4385, allocations: 43.97 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.4387, allocations: 88.25 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.439, allocations: 141.8 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/0.439, allocations: 0 / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005195/0.4395, allocations: 219.1 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.363e-05/0.4396, allocations: 41.69 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.4396, allocations: 0 / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.4396, allocations: 0 / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.4398, allocations: 15.92 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.4398, allocations: 4 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.44, allocations: 40.02 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.4401, allocations: 4 kB / 1.073 GB, free: 5.27 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.0001402/0.4402, allocations: 127.3 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.4402, allocations: 7.906 kB / 1.073 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.208e-05/0.4403, allocations: 12.36 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.4403, allocations: 4 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4403, allocations: 0 / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.4403, allocations: 0 / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005519/0.4409, allocations: 382.7 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4409, allocations: 0 / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.688e-05/0.4409, allocations: 11.98 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.441, allocations: 3.984 kB / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.441, allocations: 0 / 1.073 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.441, allocations: 4.062 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.441, allocations: 8 kB / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003544/0.4414, allocations: 211.3 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.03e-05/0.4414, allocations: 81.02 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.4415, allocations: 7.938 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.4416, allocations: 7.984 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.554e-05/0.4416, allocations: 15.92 kB / 1.074 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.4417, allocations: 4 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.693e-05/0.4417, allocations: 91.27 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.4417, allocations: 0 / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002833/0.442, allocations: 24 kB / 1.074 GB, free: 4.188 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.0002736/0.4423, allocations: 110.8 kB / 1.074 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000511/0.4428, allocations: 187.3 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4428, allocations: 0 / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.443, allocations: 39.97 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4433, allocations: 14.09 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004574/0.4437, allocations: 178.5 kB / 1.074 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.4441, allocations: 0.6924 MB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.398e-05/0.4441, allocations: 7.781 kB / 1.075 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.947e-05/0.4442, allocations: 11.44 kB / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.4442, allocations: 0 / 1.075 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of Templates: time 0.004789/0.449, allocations: 1.381 MB / 1.076 GB, free: 1.527 MB / 0.8262 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