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.001437/0.001437, allocations: 108 kB / 15.6 MB, free: 132 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.0017/0.0017, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.294/1.294, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.579/2.579, allocations: 461.9 MB / 0.7347 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 71.12 kB / 0.8992 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2657, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.001966/0.2677, allocations: 0.7533 MB / 1.054 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.2691, allocations: 1.151 MB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.297e-05/0.2692, allocations: 4 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.279e-05/0.2693, allocations: 11.88 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.664e-05/0.2694, allocations: 11.86 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.2699, allocations: 131.5 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001679/0.27, allocations: 123.8 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.2702, allocations: 11.98 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.2703, allocations: 47.91 kB / 1.055 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.836e-05/0.2704, allocations: 39.83 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.246e-05/0.2704, allocations: 12 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.854e-05/0.2705, allocations: 27.97 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.275e-05/0.2705, allocations: 11.98 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.455e-05/0.2706, allocations: 43.84 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.2708, allocations: 111.7 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2708, allocations: 0 / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2708, allocations: 0 / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.2708, allocations: 0 / 1.055 GB, free: 5.781 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000523/0.2713, allocations: 409.2 kB / 1.056 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.2714, allocations: 12.62 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.242e-05/0.2714, allocations: 38.73 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.2714, allocations: 4.938 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.656e-05/0.2715, allocations: 176.2 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.2716, allocations: 8.375 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.492e-05/0.2716, allocations: 16.38 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001785/0.2718, allocations: 58.22 kB / 1.056 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.537e-06/0.2718, allocations: 3.938 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.2718, allocations: 4 kB / 1.056 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.2718, allocations: 4 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.272, allocations: 35.95 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004291/0.2724, allocations: 344.5 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001662/0.2726, allocations: 58.61 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.2727, allocations: 32.97 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.2728, allocations: 0 / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.273, allocations: 95.3 kB / 1.057 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.273, allocations: 0 / 1.057 GB, free: 4.324 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004393/0.2734, allocations: 145.5 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.2735, allocations: 55.41 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.925e-05/0.2736, allocations: 121.8 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.2736, allocations: 29.7 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.2737, allocations: 92.12 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.2737, allocations: 11.81 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/0.2738, allocations: 37.7 kB / 1.057 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.2739, allocations: 326.8 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.274, allocations: 55.91 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.2742, allocations: 84.25 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.2745, allocations: 146.2 kB / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2745, allocations: 0 / 1.058 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004154/0.2749, allocations: 215.1 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.2749, allocations: 37.7 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.2749, allocations: 0 / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.275, allocations: 8.125 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.276e-05/0.275, allocations: 7.984 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2751, allocations: 4 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.2753, allocations: 39.8 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.2753, allocations: 8 kB / 1.058 GB, free: 2.82 MB / 0.8106 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 8.545e-05/0.2754, allocations: 129.7 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.2754, allocations: 8 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.723e-05/0.2754, allocations: 16.36 kB / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.2755, allocations: 0 / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2755, allocations: 0 / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2755, allocations: 0 / 1.058 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004173/0.2759, allocations: 378.3 kB / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2759, allocations: 0 / 1.058 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.47e-05/0.276, allocations: 19.92 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.276, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.276, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.276, allocations: 0 / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.276, allocations: 8.062 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.2763, allocations: 211.3 kB / 1.059 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.92e-05/0.2763, allocations: 81.11 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.2763, allocations: 4 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.2764, allocations: 7.984 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.794e-05/0.2765, allocations: 11.92 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.2765, allocations: 4 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.343e-05/0.2765, allocations: 91.27 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2765, allocations: 0 / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002521/0.2768, allocations: 20 kB / 1.059 GB, free: 1.75 MB / 0.8106 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.0005543/0.2774, allocations: 0.76 MB / 1.06 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00035/0.2777, allocations: 175.5 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2777, allocations: 4.062 kB / 1.06 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.2778, allocations: 39.91 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.2781, allocations: 19.92 kB / 1.06 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001771/0.2799, allocations: 1.688 MB / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.2801, allocations: 0.6846 MB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.272e-05/0.2801, allocations: 7.984 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.2802, allocations: 15.44 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of SimCode: time 1.9e-07/0.2802, allocations: 0 / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2668/0.547, allocations: 2.528 MB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.541, allocations: 1.625 kB / 1.065 GB, free: 11.75 MB / 0.8262 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