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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.007122/0.007122, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.001821/0.001821, allocations: 199.4 kB / 16.68 MB, free: 5.961 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.649/2.649, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 71.89 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3018, allocations: 162.3 MB / 1.242 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Edge): time 0.001631/0.3035, allocations: 0.7438 MB / 1.243 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001324/0.3048, allocations: 1.139 MB / 1.244 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.832e-05/0.3048, allocations: 0 / 1.244 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.009e-05/0.3049, allocations: 11.92 kB / 1.244 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.874e-05/0.305, allocations: 11.86 kB / 1.244 GB, free: 7.91 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004295/0.3054, allocations: 135.2 kB / 1.244 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001707/0.3056, allocations: 119.8 kB / 1.244 GB, free: 7.664 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.648e-05/0.3057, allocations: 23.95 kB / 1.244 GB, free: 7.641 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.669e-05/0.3057, allocations: 39.92 kB / 1.244 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.3059, allocations: 51.8 kB / 1.244 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.3059, allocations: 8 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.784e-05/0.306, allocations: 27.98 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.336e-05/0.306, allocations: 11.98 kB / 1.244 GB, free: 7.504 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.082e-05/0.3061, allocations: 43.8 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.3062, allocations: 123.6 kB / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.3062, allocations: 0 / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3062, allocations: 0 / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.3063, allocations: 0 / 1.244 GB, free: 7.34 MB / 0.9981 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.0005398/0.3068, allocations: 408.9 kB / 1.245 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.3068, allocations: 8.031 kB / 1.245 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.461e-05/0.3069, allocations: 38.75 kB / 1.245 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.3069, allocations: 8.891 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.307, allocations: 176.3 kB / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.3071, allocations: 12.31 kB / 1.245 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.3071, allocations: 8.375 kB / 1.245 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001747/0.3073, allocations: 66.16 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.3073, allocations: 3.938 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.3073, allocations: 8 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3073, allocations: 0 / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.3075, allocations: 43.89 kB / 1.245 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004319/0.3079, allocations: 332.7 kB / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.3081, allocations: 66.55 kB / 1.245 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.3082, allocations: 32.95 kB / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.3082, allocations: 0 / 1.245 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000213/0.3085, allocations: 91.31 kB / 1.246 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.3085, allocations: 0 / 1.246 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0004114/0.3089, allocations: 145.8 kB / 1.246 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.791e-05/0.3089, allocations: 51.41 kB / 1.246 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.662e-05/0.309, allocations: 125.8 kB / 1.246 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.3091, allocations: 29.7 kB / 1.246 GB, free: 5.5 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.667e-05/0.3091, allocations: 88.14 kB / 1.246 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.3091, allocations: 27.91 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.988e-05/0.3092, allocations: 37.7 kB / 1.246 GB, free: 5.34 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3093, allocations: 322.8 kB / 1.246 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.3095, allocations: 47.97 kB / 1.246 GB, free: 4.969 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.3097, allocations: 88.25 kB / 1.246 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.31, allocations: 146 kB / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.31, allocations: 0 / 1.247 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000418/0.3104, allocations: 203.2 kB / 1.247 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.975e-05/0.3104, allocations: 41.69 kB / 1.247 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3105, allocations: 4 kB / 1.247 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.3105, allocations: 0 / 1.247 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.455e-05/0.3106, allocations: 20.05 kB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.3106, allocations: 4 kB / 1.247 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.3108, allocations: 31.92 kB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.3108, allocations: 7.984 kB / 1.247 GB, free: 4.379 MB / 0.9981 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.0001/0.3109, allocations: 129.7 kB / 1.247 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.3109, allocations: 11.89 kB / 1.247 GB, free: 4.23 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.665e-05/0.3109, allocations: 12.38 kB / 1.247 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.311, allocations: 3.984 kB / 1.247 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.311, allocations: 4 kB / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.311, allocations: 0 / 1.247 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004526/0.3114, allocations: 370.4 kB / 1.247 GB, free: 3.793 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3114, allocations: 3.984 kB / 1.247 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.024e-05/0.3115, allocations: 7.984 kB / 1.247 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3115, allocations: 7.938 kB / 1.247 GB, free: 3.773 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.3115, allocations: 4 kB / 1.247 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.3115, allocations: 3.984 kB / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3115, allocations: 0 / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002932/0.3118, allocations: 211.3 kB / 1.248 GB, free: 3.543 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.29e-05/0.3119, allocations: 85.12 kB / 1.248 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.3119, allocations: 4 kB / 1.248 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.954e-05/0.312, allocations: 11.98 kB / 1.248 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.702e-05/0.312, allocations: 11.94 kB / 1.248 GB, free: 3.414 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.744e-06/0.312, allocations: 4 kB / 1.248 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.396e-05/0.3121, allocations: 91.27 kB / 1.248 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3121, allocations: 0 / 1.248 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002342/0.3123, allocations: 20 kB / 1.248 GB, free: 3.301 MB / 0.9981 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.0006076/0.313, allocations: 0.7544 MB / 1.249 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003619/0.3133, allocations: 175.3 kB / 1.249 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3133, allocations: 0 / 1.249 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.3135, allocations: 44.22 kB / 1.249 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.3137, allocations: 17.67 kB / 1.249 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.3157, allocations: 1.704 MB / 1.25 GB, free: 480 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4988/0.8145, allocations: 0.6855 MB / 1.251 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.106e-05/0.8146, allocations: 7.734 kB / 1.251 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.355e-05/0.8146, allocations: 21.73 kB / 1.251 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of SimCode: time 8.31e-07/0.8146, allocations: 0.5625 kB / 1.251 GB, free: 14.28 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.77/5.585, allocations: 2.551 MB / 1.254 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.88/24.46, allocations: 0.875 kB / 1.254 GB, free: 13.95 MB / 0.9981 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=400 --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