Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_9_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.006072/0.006071, 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.001214/0.001214, allocations: 188.9 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.423/2.423, allocations: 390.2 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 71.98 kB / 0.9504 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2916, allocations: 140.4 MB / 1.087 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002007/0.2937, allocations: 0.7445 MB / 1.088 GB, free: 1.211 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.2951, allocations: 1.141 MB / 1.089 GB, free: 56 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.04e-05/0.2952, allocations: 11.94 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.476e-05/0.2953, allocations: 7.922 kB / 1.089 GB, free: 36 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.122e-05/0.2953, allocations: 7.875 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005355/0.2959, allocations: 135.9 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.2961, allocations: 123.7 kB / 1.09 GB, free: 15.78 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.781e-05/0.2962, allocations: 15.98 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.982e-05/0.2963, allocations: 43.91 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.2964, allocations: 51.75 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.2964, allocations: 8 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.77e-05/0.2965, allocations: 27.92 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.262e-05/0.2965, allocations: 11.98 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.563e-05/0.2966, allocations: 51.83 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.2968, allocations: 107.7 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2968, allocations: 4 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2968, allocations: 0 / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.2968, allocations: 0 / 1.09 GB, free: 15.46 MB / 0.8575 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.0005978/0.2974, allocations: 408.6 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.2975, allocations: 8.031 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.2975, allocations: 38.75 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.957e-05/0.2976, allocations: 12.92 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.2977, allocations: 172.3 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.2977, allocations: 4.375 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.2977, allocations: 8.375 kB / 1.091 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001921/0.2979, allocations: 66.16 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.298, allocations: 7.875 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.298, allocations: 4 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.298, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001829/0.2982, allocations: 43.95 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004866/0.2987, allocations: 340.6 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.2989, allocations: 62.55 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.299, allocations: 28.97 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.299, allocations: 4 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.2992, allocations: 83.36 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.2992, allocations: 0 / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004336/0.2997, allocations: 145.5 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.2997, allocations: 63.45 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.25e-05/0.2998, allocations: 117.8 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.2999, allocations: 29.7 kB / 1.091 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.569e-05/0.2999, allocations: 88.14 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.3, allocations: 19.8 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.3e-05/0.3, allocations: 37.7 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.3001, allocations: 322.8 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.3003, allocations: 51.97 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.3005, allocations: 84.25 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.3008, allocations: 149.8 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3008, allocations: 0 / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004379/0.3012, allocations: 199.2 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.451e-05/0.3013, allocations: 41.69 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3013, allocations: 4 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.3013, allocations: 8.062 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.23e-05/0.3014, allocations: 15.92 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.3014, allocations: 4 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.3016, allocations: 43.73 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.3017, allocations: 4 kB / 1.093 GB, free: 12.51 MB / 0.8575 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.953e-05/0.3018, allocations: 131.7 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.632e-05/0.3018, allocations: 8 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.157e-05/0.3018, allocations: 12.36 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3018, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3018, allocations: 4 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.3018, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004511/0.3023, allocations: 378.6 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.3023, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.323e-05/0.3024, allocations: 4 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.3024, allocations: 8 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.3024, allocations: 8.047 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3024, allocations: 0 / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3024, allocations: 0 / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003106/0.3027, allocations: 219.3 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.953e-05/0.3028, allocations: 81.11 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.764e-05/0.3028, allocations: 4 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.525e-05/0.3029, allocations: 7.984 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.3029, allocations: 11.94 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.303, allocations: 7.984 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.013e-05/0.303, allocations: 87.28 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.303, allocations: 0 / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002616/0.3033, allocations: 27.98 kB / 1.093 GB, free: 11.43 MB / 0.8575 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.0006026/0.3039, allocations: 0.7505 MB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000374/0.3043, allocations: 171.3 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3043, allocations: 256 / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001233/0.3044, allocations: 47.95 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.3047, allocations: 17.48 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002046/0.3068, allocations: 1.689 MB / 1.096 GB, free: 8.617 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.307, allocations: 0.6923 MB / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.567e-05/0.3071, allocations: 8 kB / 1.097 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.3071, allocations: 23.42 kB / 1.097 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of SimCode: time 4.1e-07/0.3071, allocations: 0 / 1.097 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05288/0.36, allocations: 2.59 MB / 1.099 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.07/8.43, allocations: 5.812 kB / 1.099 GB, free: 5.367 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches