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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007927/0.007927, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.00203/0.00203, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.927/2.927, allocations: 482.4 MB / 0.7548 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 63.91 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3017, allocations: 162.2 MB / 1.241 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge): time 0.001967/0.3037, allocations: 0.7399 MB / 1.242 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.3052, allocations: 1.143 MB / 1.243 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.187e-05/0.3053, allocations: 0 / 1.243 GB, free: 8.281 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.048e-05/0.3053, allocations: 3.938 kB / 1.243 GB, free: 8.277 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.31e-05/0.3054, allocations: 23.84 kB / 1.243 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004612/0.3059, allocations: 125.8 kB / 1.243 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.3061, allocations: 131.7 kB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.649e-05/0.3062, allocations: 19.95 kB / 1.244 GB, free: 7.984 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.879e-05/0.3063, allocations: 47.91 kB / 1.244 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.851e-05/0.3064, allocations: 43.81 kB / 1.244 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.3064, allocations: 12 kB / 1.244 GB, free: 7.883 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.541e-05/0.3065, allocations: 27.98 kB / 1.244 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.276e-05/0.3065, allocations: 15.98 kB / 1.244 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.095e-05/0.3066, allocations: 43.84 kB / 1.244 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.3068, allocations: 119.5 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3068, allocations: 0 / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3068, allocations: 0 / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.108e-06/0.3068, allocations: 0 / 1.244 GB, free: 7.68 MB / 0.9981 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.0006488/0.3075, allocations: 416.8 kB / 1.244 GB, free: 7.215 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3075, allocations: 15.95 kB / 1.244 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.593e-05/0.3076, allocations: 38.75 kB / 1.244 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.956e-05/0.3076, allocations: 8.938 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001492/0.3078, allocations: 172.3 kB / 1.245 GB, free: 6.938 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.3078, allocations: 12.31 kB / 1.245 GB, free: 6.926 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.766e-05/0.3078, allocations: 12.36 kB / 1.245 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.308, allocations: 62.17 kB / 1.245 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.3081, allocations: 3.938 kB / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.3081, allocations: 7.984 kB / 1.245 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.3081, allocations: 0 / 1.245 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.3083, allocations: 43.97 kB / 1.245 GB, free: 6.793 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005056/0.3088, allocations: 348.6 kB / 1.245 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.309, allocations: 62.55 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.3091, allocations: 32.97 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.995e-06/0.3091, allocations: 0 / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002386/0.3094, allocations: 83.36 kB / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.3094, allocations: 0 / 1.245 GB, free: 6.203 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0004658/0.3099, allocations: 145.5 kB / 1.245 GB, free: 6.055 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.3099, allocations: 55.41 kB / 1.245 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.31, allocations: 121.8 kB / 1.245 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.3101, allocations: 25.7 kB / 1.245 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.473e-05/0.3101, allocations: 96.16 kB / 1.246 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.3102, allocations: 19.89 kB / 1.246 GB, free: 5.711 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.448e-05/0.3103, allocations: 37.7 kB / 1.246 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.3104, allocations: 326.8 kB / 1.246 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3106, allocations: 51.97 kB / 1.246 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.3108, allocations: 89.94 kB / 1.246 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.3111, allocations: 150.2 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3111, allocations: 0 / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004713/0.3116, allocations: 203.2 kB / 1.246 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.678e-05/0.3117, allocations: 41.69 kB / 1.246 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3117, allocations: 0 / 1.246 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.3117, allocations: 4.125 kB / 1.246 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.3118, allocations: 15.92 kB / 1.246 GB, free: 4.742 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3118, allocations: 4 kB / 1.246 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.312, allocations: 39.84 kB / 1.247 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.3121, allocations: 12 kB / 1.247 GB, free: 4.688 MB / 0.9981 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.000102/0.3122, allocations: 120.4 kB / 1.247 GB, free: 4.562 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.575e-05/0.3122, allocations: 8 kB / 1.247 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.083e-05/0.3122, allocations: 12.36 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3122, allocations: 4 kB / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3122, allocations: 0 / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3123, allocations: 0 / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005249/0.3128, allocations: 378.4 kB / 1.247 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3128, allocations: 0 / 1.247 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.827e-05/0.3129, allocations: 15.98 kB / 1.247 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3129, allocations: 4 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.3129, allocations: 4 kB / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3129, allocations: 0 / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3129, allocations: 7.938 kB / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003308/0.3132, allocations: 215.4 kB / 1.247 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.135e-05/0.3133, allocations: 77.11 kB / 1.247 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.3133, allocations: 8 kB / 1.247 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.223e-05/0.3134, allocations: 11.98 kB / 1.247 GB, free: 3.738 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.326e-05/0.3135, allocations: 11.92 kB / 1.247 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.3135, allocations: 0 / 1.247 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.739e-05/0.3135, allocations: 91.27 kB / 1.247 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.154e-06/0.3136, allocations: 0 / 1.247 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002702/0.3138, allocations: 35.83 kB / 1.247 GB, free: 3.602 MB / 0.9981 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.0006903/0.3145, allocations: 0.7398 MB / 1.248 GB, free: 2.836 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004229/0.315, allocations: 175.3 kB / 1.248 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.315, allocations: 256 / 1.248 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.3151, allocations: 43.97 kB / 1.248 GB, free: 2.609 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.3154, allocations: 15.92 kB / 1.248 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002218/0.3176, allocations: 1.691 MB / 1.25 GB, free: 0.793 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.318, allocations: 0.6924 MB / 1.251 GB, free: 76 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.318, allocations: 8 kB / 1.251 GB, free: 68 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.841e-05/0.3181, allocations: 23.42 kB / 1.251 GB, free: 44 kB / 0.9981 GB Notification: Performance of SimCode: time 3.41e-07/0.3181, allocations: 0 / 1.251 GB, free: 44 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5447/0.8628, allocations: 2.548 MB / 1.253 GB, free: 14.68 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/8.653, allocations: 20.23 kB / 1.253 GB, free: 14.67 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_FallingEdge.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge_res.csv","/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