Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Edge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",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.007296/0.007296, allocations: 99.31 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.001945/0.001945, allocations: 187.4 kB / 16.67 MB, free: 5.977 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.756/2.756, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 63.91 kB / 1.054 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2998, allocations: 157.4 MB / 1.207 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.001897/0.3017, allocations: 0.7438 MB / 1.208 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3032, allocations: 1.143 MB / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.28e-05/0.3032, allocations: 4 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.923e-05/0.3033, allocations: 7.938 kB / 1.209 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.843e-05/0.3034, allocations: 7.875 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.3039, allocations: 129.9 kB / 1.209 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.3041, allocations: 135.7 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.359e-05/0.3042, allocations: 15.97 kB / 1.209 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.473e-05/0.3043, allocations: 47.91 kB / 1.209 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.444e-05/0.3044, allocations: 43.81 kB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.3044, allocations: 12 kB / 1.21 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.165e-05/0.3045, allocations: 23.98 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.237e-05/0.3045, allocations: 11.98 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.968e-05/0.3046, allocations: 51.83 kB / 1.21 GB, free: 7.723 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.3047, allocations: 107.6 kB / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3048, allocations: 0 / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3048, allocations: 0 / 1.21 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3048, allocations: 4 kB / 1.21 GB, free: 7.613 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000582/0.3054, allocations: 417.2 kB / 1.21 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3054, allocations: 8.625 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.237e-05/0.3054, allocations: 34.73 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.921e-05/0.3055, allocations: 12.84 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.3056, allocations: 168.4 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.3056, allocations: 384 / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.3057, allocations: 12.38 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001868/0.3059, allocations: 62.22 kB / 1.21 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.3059, allocations: 11.88 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.3059, allocations: 3.938 kB / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3059, allocations: 0 / 1.21 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.3061, allocations: 39.95 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004918/0.3066, allocations: 340.6 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.3068, allocations: 62.55 kB / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.3069, allocations: 32.91 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.3069, allocations: 8 kB / 1.211 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.3072, allocations: 91.36 kB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.3072, allocations: 0 / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.000432/0.3076, allocations: 137.5 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.3077, allocations: 67.38 kB / 1.211 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.3078, allocations: 113.8 kB / 1.211 GB, free: 5.812 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.3078, allocations: 29.7 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.717e-05/0.3079, allocations: 100 kB / 1.211 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.3079, allocations: 11.81 kB / 1.211 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.058e-05/0.308, allocations: 37.7 kB / 1.211 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.3081, allocations: 322.8 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.3083, allocations: 51.97 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.3084, allocations: 90.88 kB / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.3087, allocations: 145.9 kB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3087, allocations: 0 / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000411/0.3091, allocations: 203.4 kB / 1.212 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.689e-05/0.3092, allocations: 39.27 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3092, allocations: 3.984 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3092, allocations: 4.125 kB / 1.212 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.174e-05/0.3093, allocations: 15.98 kB / 1.212 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.3093, allocations: 3.938 kB / 1.212 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.3096, allocations: 35.89 kB / 1.212 GB, free: 4.664 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.3096, allocations: 16.06 kB / 1.212 GB, free: 4.648 MB / 0.9669 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,edge1.y,edge1.u,$PRE.edge1.u,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 9.447e-05/0.3097, allocations: 123.2 kB / 1.212 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.3097, allocations: 7.906 kB / 1.212 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.3098, allocations: 16.36 kB / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.3098, allocations: 0 / 1.212 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3098, allocations: 3.938 kB / 1.212 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3098, allocations: 0 / 1.212 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005614/0.3104, allocations: 378.4 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3104, allocations: 0 / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.094e-05/0.3104, allocations: 4 kB / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3104, allocations: 4 kB / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.3104, allocations: 7.984 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3105, allocations: 0 / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3105, allocations: 0 / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.3107, allocations: 219.2 kB / 1.213 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.688e-05/0.3108, allocations: 89 kB / 1.213 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.3108, allocations: 4 kB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.339e-05/0.3109, allocations: 7.984 kB / 1.213 GB, free: 3.699 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.311, allocations: 15.92 kB / 1.213 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.142e-06/0.311, allocations: 0 / 1.213 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.925e-05/0.311, allocations: 91.28 kB / 1.213 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3111, allocations: 0 / 1.213 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002719/0.3113, allocations: 27.98 kB / 1.213 GB, free: 3.566 MB / 0.9669 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 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.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.0005987/0.3119, allocations: 0.7412 MB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003693/0.3123, allocations: 175.3 kB / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3123, allocations: 0 / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001141/0.3125, allocations: 44.2 kB / 1.214 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.3128, allocations: 19.92 kB / 1.214 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.3149, allocations: 1.689 MB / 1.216 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.3151, allocations: 0.6885 MB / 1.217 GB, free: 36 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.581e-05/0.3152, allocations: 8 kB / 1.217 GB, free: 28 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.625e-05/0.3152, allocations: 23.42 kB / 1.217 GB, free: 4 kB / 0.9669 GB Notification: Performance of SimCode: time 3.71e-07/0.3152, allocations: 0 / 1.217 GB, free: 4 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.335, allocations: 2.596 MB / 1.219 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.631/7.966, allocations: 10.31 kB / 1.219 GB, free: 13.51 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches