Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.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.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",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.007278/0.007278, allocations: 96.5 kB / 15.73 MB, free: 6.043 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.001625/0.001625, allocations: 195.8 kB / 16.68 MB, free: 5.969 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.415/1.415, 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.921/2.921, allocations: 482.6 MB / 0.755 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 67.89 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3102, allocations: 162.3 MB / 1.242 GB, free: 9.777 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.00161/0.3119, allocations: 0.6554 MB / 1.243 GB, free: 9.125 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.3132, allocations: 1.186 MB / 1.244 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.503e-05/0.3133, allocations: 0 / 1.244 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.542e-05/0.3133, allocations: 3.938 kB / 1.244 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.847e-05/0.3134, allocations: 15.88 kB / 1.244 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.314, allocations: 218.1 kB / 1.244 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002226/0.3142, allocations: 187.6 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.106e-05/0.3143, allocations: 8 kB / 1.244 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.308e-05/0.3144, allocations: 67.89 kB / 1.244 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.3145, allocations: 63.83 kB / 1.244 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.3145, allocations: 16 kB / 1.244 GB, free: 7.363 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.967e-05/0.3146, allocations: 35.92 kB / 1.244 GB, free: 7.328 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.84e-05/0.3146, allocations: 8 kB / 1.244 GB, free: 7.32 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.934e-05/0.3147, allocations: 59.81 kB / 1.244 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.3149, allocations: 163.5 kB / 1.244 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3149, allocations: 0 / 1.244 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3149, allocations: 0 / 1.244 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.315, allocations: 0 / 1.244 GB, free: 7.102 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.0004834/0.3154, allocations: 436.7 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.3155, allocations: 12.03 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.212e-05/0.3155, allocations: 34.75 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.317e-05/0.3156, allocations: 16.89 kB / 1.245 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.3157, allocations: 164.3 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.3157, allocations: 12.38 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.3157, allocations: 12.36 kB / 1.245 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.69e-05/0.3158, allocations: 42.25 kB / 1.245 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.3159, allocations: 3.938 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.839e-06/0.3159, allocations: 4 kB / 1.245 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.3159, allocations: 4 kB / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.025e-05/0.3159, allocations: 19.92 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004243/0.3163, allocations: 356.7 kB / 1.246 GB, free: 5.844 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.252e-05/0.3164, allocations: 34.56 kB / 1.246 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.162e-05/0.3165, allocations: 16.86 kB / 1.246 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.3165, allocations: 0 / 1.246 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001443/0.3166, allocations: 83.39 kB / 1.246 GB, free: 5.688 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3166, allocations: 4 kB / 1.246 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0002294/0.3169, allocations: 109.6 kB / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.3169, allocations: 51.41 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.167e-05/0.317, allocations: 121.8 kB / 1.246 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.3171, allocations: 30.08 kB / 1.246 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.679e-05/0.3171, allocations: 96.08 kB / 1.246 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.3171, allocations: 7.953 kB / 1.246 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/0.3172, allocations: 49.69 kB / 1.246 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3174, allocations: 334.7 kB / 1.246 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.3175, allocations: 51.97 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.3177, allocations: 96.2 kB / 1.247 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.3179, allocations: 163.6 kB / 1.247 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3179, allocations: 0 / 1.247 GB, free: 4.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003976/0.3183, allocations: 264.8 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.661e-05/0.3183, allocations: 67.39 kB / 1.247 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3183, allocations: 4 kB / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3184, allocations: 0 / 1.247 GB, free: 4.141 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.016e-05/0.3184, allocations: 7.938 kB / 1.247 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3184, allocations: 0 / 1.247 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.3187, allocations: 59.95 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.3188, allocations: 15.98 kB / 1.247 GB, free: 4.059 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,xor1.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 9.49e-05/0.3189, allocations: 121.8 kB / 1.247 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.3189, allocations: 7.953 kB / 1.247 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.3189, allocations: 12.36 kB / 1.247 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.3189, allocations: 11.98 kB / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3189, allocations: 0 / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3189, allocations: 0 / 1.247 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.3191, allocations: 177.6 kB / 1.247 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3191, allocations: 4.062 kB / 1.247 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.248e-06/0.3191, allocations: 3.938 kB / 1.247 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.3191, allocations: 0 / 1.247 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.3191, allocations: 8 kB / 1.247 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.3191, allocations: 0 / 1.247 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3191, allocations: 96 / 1.247 GB, free: 3.656 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.3193, allocations: 117.3 kB / 1.248 GB, free: 3.523 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.3193, allocations: 81.06 kB / 1.248 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.3193, allocations: 8 kB / 1.248 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.836e-05/0.3194, allocations: 0 / 1.248 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.3194, allocations: 7.984 kB / 1.248 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.3194, allocations: 4 kB / 1.248 GB, free: 3.406 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.184e-05/0.3195, allocations: 91.27 kB / 1.248 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3195, allocations: 0 / 1.248 GB, free: 3.316 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002144/0.3197, allocations: 28 kB / 1.248 GB, free: 3.289 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,xor1.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.000464/0.3202, allocations: 0.6674 MB / 1.248 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003239/0.3205, allocations: 246.6 kB / 1.249 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3205, allocations: 0 / 1.249 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.962e-05/0.3206, allocations: 28.19 kB / 1.249 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000204/0.3208, allocations: 19.98 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.001797/0.3226, allocations: 1.715 MB / 1.25 GB, free: 456 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5053/0.8279, allocations: 0.6849 MB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.139e-05/0.828, allocations: 4.906 kB / 1.251 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.828, allocations: 19.42 kB / 1.251 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of SimCode: time 6.91e-07/0.828, allocations: 0 / 1.251 GB, free: 14.92 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.034/1.863, allocations: 2.913 MB / 1.254 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.02/17.88, allocations: 5.297 kB / 1.254 GB, free: 14.55 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor_fmu --startTime=0 --stopTime=5 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches