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.0008482/0.000848, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009311/0.0009311, allocations: 187.7 kB / 16.93 MB, free: 6.773 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.445/1.445, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.874/2.874, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000324/0.0003241, allocations: 19.59 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3687, allocations: 159.6 MB / 1.059 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge): time 0.001127/0.3699, allocations: 482.8 kB / 1.06 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001822/0.3717, allocations: 1.155 MB / 1.061 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.663e-05/0.3718, allocations: 11.88 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.363e-05/0.3718, allocations: 3.938 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.964e-05/0.3719, allocations: 3.938 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005583/0.3725, allocations: 122.6 kB / 1.061 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000156/0.3727, allocations: 103.8 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.3728, allocations: 15.98 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.3729, allocations: 43.89 kB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.373, allocations: 39.83 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.3731, allocations: 4 kB / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.111e-05/0.3732, allocations: 19.98 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.917e-05/0.3732, allocations: 11.88 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.26e-05/0.3733, allocations: 69.53 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.3735, allocations: 71.83 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3735, allocations: 4 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.465e-06/0.3735, allocations: 4 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.3735, allocations: 0 / 1.061 GB, free: 2.773 MB / 0.8106 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.0006826/0.3742, allocations: 401.2 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.364e-05/0.3743, allocations: 11.97 kB / 1.062 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.871e-05/0.3743, allocations: 12.84 kB / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001558/0.3745, allocations: 172.3 kB / 1.062 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.3745, allocations: 8.359 kB / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.3746, allocations: 12.38 kB / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002309/0.3748, allocations: 66.23 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3748, allocations: 4.172 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.727e-05/0.3748, allocations: 7.938 kB / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3749, allocations: 0 / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002078/0.3751, allocations: 59.89 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005776/0.3757, allocations: 332.7 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.3759, allocations: 74.55 kB / 1.063 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.376, allocations: 32.95 kB / 1.063 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.376, allocations: 4 kB / 1.063 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002593/0.3763, allocations: 99.42 kB / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.614e-06/0.3763, allocations: 0 / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.000486/0.3768, allocations: 157.5 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.3768, allocations: 59.39 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.3769, allocations: 125.6 kB / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.377, allocations: 33.7 kB / 1.063 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.462e-05/0.3771, allocations: 92.12 kB / 1.063 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.3771, allocations: 15.8 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.482e-05/0.3772, allocations: 25.7 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3773, allocations: 326.7 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.3775, allocations: 59.95 kB / 1.064 GB, free: 408 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.3777, allocations: 92.25 kB / 1.064 GB, free: 300 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.378, allocations: 149.9 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.378, allocations: 0 / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005006/0.3785, allocations: 219.1 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.3785, allocations: 37.83 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.3786, allocations: 0 / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3786, allocations: 4 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.459e-05/0.3787, allocations: 11.98 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.3787, allocations: 7.938 kB / 1.064 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002435/0.3789, allocations: 55.89 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.207e-05/0.379, allocations: 7.984 kB / 1.064 GB, free: 15.77 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.0001152/0.3791, allocations: 121.8 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.3791, allocations: 7.906 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.191e-05/0.3792, allocations: 8.375 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3792, allocations: 4 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3792, allocations: 4 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3792, allocations: 0 / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005233/0.3797, allocations: 394.6 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.3797, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.054e-05/0.3798, allocations: 15.98 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3798, allocations: 0 / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.3798, allocations: 0 / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3798, allocations: 0 / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3798, allocations: 4.016 kB / 1.065 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003334/0.3802, allocations: 223.4 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.3802, allocations: 89 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.3802, allocations: 8.062 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.781e-05/0.3803, allocations: 8 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.738e-05/0.3804, allocations: 11.92 kB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.3804, allocations: 0 / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.393e-05/0.3805, allocations: 95.27 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3805, allocations: 0 / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002709/0.3808, allocations: 28 kB / 1.065 GB, free: 14.67 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.0001895/0.381, allocations: 107.2 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000432/0.3814, allocations: 191.2 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3814, allocations: 0 / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.3816, allocations: 43.92 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.3819, allocations: 21.12 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004201/0.3823, allocations: 212.9 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.3826, allocations: 0.6887 MB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.963e-05/0.3826, allocations: 11.44 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3826, allocations: 0 / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.003341/0.386, allocations: 1.244 MB / 1.068 GB, free: 12.09 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/jenkins1/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