Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_11_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.007285/0.007285, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001873/0.001873, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.701/2.701, allocations: 469.8 MB / 0.7425 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 59.91 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6858/0.6878, allocations: 159.1 MB / 1.22 GB, free: 2.074 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.001853/0.6897, allocations: 0.734 MB / 1.221 GB, free: 1.344 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.6912, allocations: 1.155 MB / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.738e-05/0.6913, allocations: 0 / 1.222 GB, free: 180 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.785e-05/0.6913, allocations: 3.938 kB / 1.222 GB, free: 176 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.408e-05/0.6914, allocations: 11.88 kB / 1.222 GB, free: 164 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004886/0.6919, allocations: 131 kB / 1.222 GB, free: 36 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.6921, allocations: 127.8 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.714e-05/0.6922, allocations: 11.98 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.005e-05/0.6923, allocations: 47.81 kB / 1.222 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.6924, allocations: 43.89 kB / 1.222 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.6925, allocations: 15.94 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.265e-05/0.6925, allocations: 27.92 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.975e-05/0.6926, allocations: 19.97 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.7e-05/0.6927, allocations: 39.84 kB / 1.222 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.6928, allocations: 107.3 kB / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.6929, allocations: 0 / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.293e-06/0.6929, allocations: 0 / 1.223 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.6929, allocations: 3.938 kB / 1.223 GB, free: 15.6 MB / 0.9512 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.0006236/0.6935, allocations: 420.8 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.6935, allocations: 8.031 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.972e-05/0.6936, allocations: 38.73 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.6936, allocations: 8.938 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.6938, allocations: 172.3 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.6938, allocations: 4.375 kB / 1.223 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.6938, allocations: 8.375 kB / 1.223 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.694, allocations: 66.16 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.6941, allocations: 3.938 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.6941, allocations: 4 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.6941, allocations: 0 / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.6943, allocations: 47.95 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005138/0.6948, allocations: 328.6 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.695, allocations: 62.55 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.6951, allocations: 36.97 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.6952, allocations: 4 kB / 1.224 GB, free: 14.24 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.6954, allocations: 91.36 kB / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.423e-06/0.6954, allocations: 0 / 1.224 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0004641/0.6959, allocations: 145.5 kB / 1.224 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.696, allocations: 55.41 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.6961, allocations: 121.8 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.6961, allocations: 33.7 kB / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.6962, allocations: 92.12 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.6962, allocations: 19.86 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.616e-05/0.6963, allocations: 33.7 kB / 1.224 GB, free: 13.61 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.6965, allocations: 322.8 kB / 1.225 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.6966, allocations: 55.97 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.6969, allocations: 88.25 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.6972, allocations: 146.2 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.6972, allocations: 4 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004754/0.6977, allocations: 207.1 kB / 1.225 GB, free: 12.74 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.6977, allocations: 37.83 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.6977, allocations: 4 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.6978, allocations: 4 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.329e-05/0.6979, allocations: 15.92 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.6979, allocations: 0 / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000216/0.6981, allocations: 39.89 kB / 1.225 GB, free: 12.64 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.6981, allocations: 8 kB / 1.225 GB, free: 12.63 MB / 0.9512 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.0001116/0.6982, allocations: 128.8 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.6983, allocations: 11.92 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.6983, allocations: 12.38 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.6983, allocations: 3.938 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.6983, allocations: 0 / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.6983, allocations: 0 / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00052/0.6988, allocations: 386.3 kB / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6989, allocations: 4 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.077e-05/0.6989, allocations: 7.984 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.6989, allocations: 0 / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.699, allocations: 8 kB / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.699, allocations: 0 / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.699, allocations: 0 / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003442/0.6993, allocations: 207.4 kB / 1.226 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.887e-05/0.6994, allocations: 85.06 kB / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.6994, allocations: 0 / 1.226 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.276e-05/0.6995, allocations: 11.98 kB / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.6995, allocations: 11.92 kB / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.6996, allocations: 0 / 1.226 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.404e-05/0.6996, allocations: 91.27 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6996, allocations: 0 / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002681/0.6999, allocations: 28 kB / 1.226 GB, free: 11.55 MB / 0.9512 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.0007064/0.7006, allocations: 0.748 MB / 1.227 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004252/0.7011, allocations: 179.5 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.7011, allocations: 0 / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.7012, allocations: 39.97 kB / 1.227 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.7015, allocations: 18.78 kB / 1.227 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.7037, allocations: 1.686 MB / 1.229 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.7041, allocations: 0.6962 MB / 1.229 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.209e-05/0.7041, allocations: 4 kB / 1.229 GB, free: 8.008 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.766e-05/0.7042, allocations: 19.42 kB / 1.229 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of SimCode: time 2.7e-07/0.7042, allocations: 0 / 1.229 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.7278, allocations: 2.561 MB / 1.232 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.706/8.434, allocations: 10.64 kB / 1.232 GB, free: 5.52 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_11_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Logical_Validation_Edge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches