Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.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.Or,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Or,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or",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.006464/0.006464, allocations: 95.44 kB / 15.73 MB, free: 6.051 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.001725/0.001725, allocations: 203 kB / 16.68 MB, free: 5.973 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.748/2.748, allocations: 482.6 MB / 0.755 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 63.89 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3123, allocations: 162.3 MB / 1.242 GB, free: 9.789 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Or): time 0.001649/0.314, allocations: 0.6529 MB / 1.243 GB, free: 9.137 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00137/0.3154, allocations: 1.182 MB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.569e-05/0.3154, allocations: 0 / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.636e-05/0.3155, allocations: 3.938 kB / 1.244 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.215e-05/0.3155, allocations: 7.875 kB / 1.244 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006077/0.3161, allocations: 217.9 kB / 1.244 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.3164, allocations: 195.6 kB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.686e-05/0.3165, allocations: 8 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.488e-05/0.3166, allocations: 63.89 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.3167, allocations: 63.78 kB / 1.244 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.3168, allocations: 16 kB / 1.244 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.087e-05/0.3168, allocations: 27.98 kB / 1.244 GB, free: 7.355 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.214e-05/0.3169, allocations: 15.98 kB / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 8.37e-05/0.317, allocations: 59.83 kB / 1.244 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.3172, allocations: 151.5 kB / 1.244 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.3172, allocations: 4 kB / 1.244 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3172, allocations: 0 / 1.244 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3172, allocations: 0 / 1.244 GB, free: 7.129 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005054/0.3177, allocations: 432.7 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3178, allocations: 12.03 kB / 1.245 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.62e-05/0.3178, allocations: 34.73 kB / 1.245 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.705e-05/0.3178, allocations: 12.89 kB / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.318, allocations: 168.3 kB / 1.245 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.318, allocations: 16.31 kB / 1.245 GB, free: 6.359 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.527e-05/0.318, allocations: 8.375 kB / 1.245 GB, free: 6.352 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.3181, allocations: 46.23 kB / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.3181, allocations: 3.938 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-06/0.3182, allocations: 4 kB / 1.245 GB, free: 6.293 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.3182, allocations: 4 kB / 1.245 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.648e-05/0.3182, allocations: 11.98 kB / 1.245 GB, free: 6.277 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004373/0.3187, allocations: 356.7 kB / 1.246 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.555e-05/0.3187, allocations: 34.52 kB / 1.246 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.927e-05/0.3188, allocations: 16.95 kB / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.3188, allocations: 3.984 kB / 1.246 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001299/0.3189, allocations: 71.38 kB / 1.246 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.3189, allocations: 0 / 1.246 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0002307/0.3192, allocations: 121.5 kB / 1.246 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.3192, allocations: 51.41 kB / 1.246 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.228e-05/0.3193, allocations: 117.8 kB / 1.246 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.3194, allocations: 33.69 kB / 1.246 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.283e-05/0.3194, allocations: 96.09 kB / 1.246 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.45e-05/0.3194, allocations: 7.953 kB / 1.246 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.03e-05/0.3195, allocations: 49.69 kB / 1.246 GB, free: 5.219 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3197, allocations: 318.8 kB / 1.246 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.3198, allocations: 63.97 kB / 1.246 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.32, allocations: 96.25 kB / 1.247 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002014/0.3202, allocations: 167.5 kB / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.3202, allocations: 0 / 1.247 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004/0.3206, allocations: 256.8 kB / 1.247 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.611e-05/0.3206, allocations: 71.39 kB / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3206, allocations: 0 / 1.247 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.3207, allocations: 4 kB / 1.247 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.938e-05/0.3207, allocations: 4 kB / 1.247 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3207, allocations: 4 kB / 1.247 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.321, allocations: 63.94 kB / 1.247 GB, free: 4.109 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.806e-05/0.3211, allocations: 8.469 kB / 1.247 GB, free: 4.102 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: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,or1.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 2 * 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.0001022/0.3212, allocations: 132.5 kB / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.61e-05/0.3212, allocations: 11.95 kB / 1.247 GB, free: 3.953 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.127e-05/0.3212, allocations: 4.438 kB / 1.247 GB, free: 3.945 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.3212, allocations: 4 kB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3212, allocations: 7.938 kB / 1.247 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3212, allocations: 0 / 1.247 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.3214, allocations: 181.6 kB / 1.247 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3214, allocations: 0 / 1.247 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.158e-06/0.3214, allocations: 4 kB / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.3214, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.3214, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3214, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3214, allocations: 0 / 1.247 GB, free: 3.703 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.3216, allocations: 121 kB / 1.248 GB, free: 3.566 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.753e-05/0.3216, allocations: 85.06 kB / 1.248 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3216, allocations: 0 / 1.248 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.935e-05/0.3217, allocations: 3.984 kB / 1.248 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.961e-05/0.3217, allocations: 4 kB / 1.248 GB, free: 3.457 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.3217, allocations: 8 kB / 1.248 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.912e-05/0.3218, allocations: 91.27 kB / 1.248 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3218, allocations: 0 / 1.248 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002133/0.322, allocations: 24 kB / 1.248 GB, free: 3.336 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 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,or1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0004506/0.3224, allocations: 0.6635 MB / 1.248 GB, free: 2.645 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003187/0.3228, allocations: 246.7 kB / 1.249 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3228, allocations: 0 / 1.249 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.578e-05/0.3228, allocations: 28.19 kB / 1.249 GB, free: 2.352 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.323, allocations: 16.92 kB / 1.249 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.3249, allocations: 1.722 MB / 1.25 GB, free: 0.4961 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5378/0.8627, allocations: 0.6824 MB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 4.865e-05/0.8627, allocations: 5.141 kB / 1.251 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.379e-05/0.8628, allocations: 19.14 kB / 1.251 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/0.8628, allocations: 0 / 1.251 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4267/1.289, allocations: 2.887 MB / 1.254 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.125/10.41, allocations: 7.531 kB / 1.254 GB, free: 14 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Or.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Or.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Or.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches