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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001303/0.001303, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001638/0.001638, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 436.5 MB / 0.7104 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003797, allocations: 12 kB / 0.8708 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8837/0.8841, allocations: 153.6 MB / 1.021 GB, free: 1.27 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge): time 0.001052/0.8852, allocations: 470.2 kB / 1.021 GB, free: 0.8086 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00137/0.8866, allocations: 1.113 MB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.18e-05/0.8867, allocations: 4 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.058e-05/0.8867, allocations: 7.922 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.577e-05/0.8868, allocations: 3.984 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004553/0.8872, allocations: 118.8 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.706e-05/0.8873, allocations: 63.86 kB / 1.023 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.243e-05/0.8874, allocations: 19.97 kB / 1.023 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.157e-05/0.8875, allocations: 35.91 kB / 1.023 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.089e-05/0.8876, allocations: 43.83 kB / 1.023 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.8877, allocations: 4 kB / 1.023 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.862e-05/0.8877, allocations: 19.97 kB / 1.023 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.8877, allocations: 11.98 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.574e-05/0.8878, allocations: 41.64 kB / 1.023 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.8879, allocations: 71.81 kB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.8879, allocations: 0 / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.242e-06/0.8879, allocations: 0 / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.888, allocations: 4 kB / 1.023 GB, free: 15.23 MB / 0.7794 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.0005198/0.8885, allocations: 403 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.8885, allocations: 11.98 kB / 1.023 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.763e-05/0.8886, allocations: 7.906 kB / 1.023 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.8887, allocations: 167 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.8887, allocations: 11.98 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.8888, allocations: 11.95 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.889, allocations: 81.59 kB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.889, allocations: 3.984 kB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.889, allocations: 0 / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.889, allocations: 0 / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.8892, allocations: 55.95 kB / 1.024 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006405/0.8899, allocations: 340.6 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.8901, allocations: 70.55 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.229e-05/0.8901, allocations: 0 / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.8904, allocations: 91.48 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 3.286e-06/0.8904, allocations: 0 / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0005074/0.8909, allocations: 161.4 kB / 1.024 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.891, allocations: 51.41 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.8911, allocations: 121.8 kB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.8912, allocations: 29.7 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.903e-05/0.8913, allocations: 92.14 kB / 1.024 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.8913, allocations: 27.72 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.8913, allocations: 4 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001842/0.8915, allocations: 322.8 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.8917, allocations: 59.95 kB / 1.025 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.8919, allocations: 95.25 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.8921, allocations: 81.62 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.8921, allocations: 8 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004308/0.8925, allocations: 207.2 kB / 1.025 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.8926, allocations: 41.69 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.8926, allocations: 4.125 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.8926, allocations: 4 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.8927, allocations: 19.92 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.8927, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.893, allocations: 51.86 kB / 1.025 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.328e-05/0.893, allocations: 12 kB / 1.025 GB, free: 12.39 MB / 0.7794 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul.y,booPul.y,falEdg.y,$PRE.falEdg.not_u,falEdg.not_u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.8931, allocations: 123.3 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.338e-05/0.8931, allocations: 3.906 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.391e-05/0.8932, allocations: 16.36 kB / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.8932, allocations: 0 / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.8932, allocations: 0 / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.8932, allocations: 0 / 1.025 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004998/0.8937, allocations: 398.7 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.8937, allocations: 0 / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.437e-05/0.8938, allocations: 8 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.8938, allocations: 7.984 kB / 1.026 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.8938, allocations: 11.94 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.8938, allocations: 0 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.8938, allocations: 80 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003131/0.8941, allocations: 227.3 kB / 1.026 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.8942, allocations: 85.02 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/0.8942, allocations: 0 / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.065e-05/0.8943, allocations: 15.98 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.8944, allocations: 7.984 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-06/0.8944, allocations: 0 / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.175e-05/0.8944, allocations: 91.81 kB / 1.026 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8944, allocations: 4 kB / 1.026 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002625/0.8947, allocations: 28 kB / 1.026 GB, free: 11.28 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001692/0.8949, allocations: 99.25 kB / 1.026 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004034/0.8953, allocations: 187.3 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.8953, allocations: 0 / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.8954, allocations: 47.91 kB / 1.027 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.8957, allocations: 20.27 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003767/0.8961, allocations: 167.3 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002796/0.8964, allocations: 0.6965 MB / 1.027 GB, free: 10 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.617e-05/0.8964, allocations: 7.859 kB / 1.027 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.564e-05/0.8964, allocations: 15.38 kB / 1.028 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of SimCode: time 5.01e-07/0.8964, allocations: 3.938 kB / 1.028 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of Templates: time 0.004309/0.9008, allocations: 1.271 MB / 1.029 GB, free: 8.719 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches