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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.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.005996/0.005996, allocations: 96.23 kB / 15.73 MB, free: 6.062 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.00134/0.00134, allocations: 198.2 kB / 16.68 MB, free: 5.98 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.947/2.947, allocations: 469.4 MB / 0.7422 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001569, allocations: 67.88 kB / 1.064 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3964/0.398, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.002404/0.4004, allocations: 0.7457 MB / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001694/0.4022, allocations: 1.143 MB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.357e-05/0.4023, allocations: 0 / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.139e-05/0.4023, allocations: 3.938 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.847e-05/0.4024, allocations: 15.91 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006579/0.4031, allocations: 137.9 kB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000231/0.4033, allocations: 123.8 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.4035, allocations: 15.98 kB / 1.222 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.4036, allocations: 43.91 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.4038, allocations: 59.73 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.4038, allocations: 12 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.577e-05/0.4039, allocations: 27.98 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.666e-05/0.4039, allocations: 11.98 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.865e-05/0.404, allocations: 35.86 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002273/0.4042, allocations: 115.6 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.4043, allocations: 4 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.933e-06/0.4043, allocations: 0 / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.4043, allocations: 0 / 1.222 GB, free: 12.19 MB / 0.9825 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.0007411/0.405, allocations: 420.8 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.4051, allocations: 8.031 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.944e-05/0.4051, allocations: 38.69 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.764e-05/0.4052, allocations: 8.938 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.4054, allocations: 172.3 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.4054, allocations: 4.375 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.046e-05/0.4055, allocations: 12.36 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002377/0.4057, allocations: 62.22 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.4057, allocations: 3.938 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.4057, allocations: 8 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.4058, allocations: 0 / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002021/0.406, allocations: 43.95 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.4065, allocations: 332.6 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.4068, allocations: 62.55 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.4069, allocations: 36.95 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.4069, allocations: 4 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.4072, allocations: 91.3 kB / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.823e-06/0.4072, allocations: 0 / 1.223 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0004959/0.4077, allocations: 137.6 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.4078, allocations: 59.41 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.4079, allocations: 121.8 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.4079, allocations: 29.7 kB / 1.224 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.816e-05/0.408, allocations: 88.14 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.408, allocations: 27.91 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.4081, allocations: 41.64 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.4082, allocations: 326.8 kB / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001654/0.4084, allocations: 47.97 kB / 1.224 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.4086, allocations: 84.25 kB / 1.224 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.4089, allocations: 137.9 kB / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.4089, allocations: 4 kB / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000461/0.4094, allocations: 211.2 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.4094, allocations: 37.69 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.4094, allocations: 4.062 kB / 1.225 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.4095, allocations: 7.938 kB / 1.225 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.945e-05/0.4096, allocations: 15.98 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.4096, allocations: 320 / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.4098, allocations: 27.97 kB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.4098, allocations: 16.05 kB / 1.225 GB, free: 9.223 MB / 0.9825 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 0.0001071/0.41, allocations: 134.2 kB / 1.225 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/0.41, allocations: 3.953 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.007e-05/0.41, allocations: 12.38 kB / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.41, allocations: 3.938 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.41, allocations: 0 / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4101, allocations: 3.984 kB / 1.225 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.4105, allocations: 386.4 kB / 1.225 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.4106, allocations: 0 / 1.225 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.789e-05/0.4106, allocations: 7.984 kB / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.4106, allocations: 0 / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.4106, allocations: 0 / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.4106, allocations: 4 kB / 1.225 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4107, allocations: 0 / 1.225 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003205/0.411, allocations: 207.4 kB / 1.226 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.807e-05/0.411, allocations: 89.05 kB / 1.226 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.4111, allocations: 0 / 1.226 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.4112, allocations: 4 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.722e-05/0.4112, allocations: 11.92 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.4112, allocations: 4 kB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.041e-05/0.4113, allocations: 95.2 kB / 1.226 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4113, allocations: 4 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002954/0.4116, allocations: 24 kB / 1.226 GB, free: 8.141 MB / 0.9825 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.0006887/0.4123, allocations: 0.7397 MB / 1.226 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004076/0.4127, allocations: 179.3 kB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4127, allocations: 0 / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.4129, allocations: 43.91 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.4132, allocations: 22.97 kB / 1.227 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.4153, allocations: 1.7 MB / 1.228 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.4156, allocations: 0.6884 MB / 1.229 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.092e-05/0.4156, allocations: 15.91 kB / 1.229 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.757e-05/0.4157, allocations: 19.44 kB / 1.229 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of SimCode: time 4.41e-07/0.4157, allocations: 0 / 1.229 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.4357, allocations: 2.546 MB / 1.232 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.703/8.138, allocations: 7.875 kB / 1.232 GB, free: 2.121 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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