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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.007849/0.007849, allocations: 99.44 kB / 15.73 MB, free: 5.996 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.001365/0.001365, allocations: 197 kB / 16.68 MB, free: 5.918 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.634/2.634, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001429, allocations: 71.88 kB / 1.054 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9587/0.9601, allocations: 157.4 MB / 1.207 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002648/0.9628, allocations: 0.6655 MB / 1.208 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00178/0.9646, allocations: 1.194 MB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.322e-05/0.9647, allocations: 0 / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.709e-05/0.9649, allocations: 3.938 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.965, allocations: 7.875 kB / 1.209 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008892/0.9659, allocations: 226.3 kB / 1.209 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.9662, allocations: 179.7 kB / 1.209 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.9664, allocations: 16 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.9665, allocations: 67.89 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001599/0.9667, allocations: 63.83 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.147e-05/0.9668, allocations: 16 kB / 1.21 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.9669, allocations: 27.98 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.088e-05/0.9669, allocations: 7.984 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.691e-05/0.967, allocations: 63.77 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.9673, allocations: 153.9 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.9673, allocations: 3.938 kB / 1.21 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.225e-06/0.9673, allocations: 8 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.333e-05/0.9673, allocations: 0 / 1.21 GB, free: 10.82 MB / 0.9356 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.0007672/0.9681, allocations: 426.8 kB / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.837e-05/0.9682, allocations: 12.03 kB / 1.21 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.9683, allocations: 30.75 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.681e-05/0.9683, allocations: 12.84 kB / 1.21 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.9685, allocations: 168.2 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.9685, allocations: 8.375 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.845e-05/0.9686, allocations: 16.36 kB / 1.211 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.9687, allocations: 50.19 kB / 1.211 GB, free: 10 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.9687, allocations: 3.938 kB / 1.211 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.9688, allocations: 0 / 1.211 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.9688, allocations: 4 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.566e-05/0.9688, allocations: 19.98 kB / 1.211 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005616/0.9694, allocations: 352.7 kB / 1.211 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 9.014e-05/0.9695, allocations: 38.5 kB / 1.211 GB, free: 9.531 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.284e-05/0.9695, allocations: 20.86 kB / 1.211 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.9696, allocations: 0 / 1.211 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.9697, allocations: 83.44 kB / 1.211 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.874e-06/0.9698, allocations: 0 / 1.211 GB, free: 9.414 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0002787/0.97, allocations: 109.5 kB / 1.211 GB, free: 9.301 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.9701, allocations: 51.41 kB / 1.211 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.9702, allocations: 113.8 kB / 1.211 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.9702, allocations: 33.7 kB / 1.211 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.66e-05/0.9703, allocations: 100 kB / 1.211 GB, free: 8.977 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.894e-05/0.9703, allocations: 11.89 kB / 1.211 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.9704, allocations: 49.69 kB / 1.212 GB, free: 8.91 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.9706, allocations: 318.8 kB / 1.212 GB, free: 8.59 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.9707, allocations: 59.97 kB / 1.212 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.9709, allocations: 96.27 kB / 1.212 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.9711, allocations: 159.5 kB / 1.212 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.9711, allocations: 3.938 kB / 1.212 GB, free: 8.234 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004366/0.9715, allocations: 265.5 kB / 1.212 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.231e-05/0.9716, allocations: 67.39 kB / 1.212 GB, free: 7.879 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.9716, allocations: 7.875 kB / 1.212 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.9716, allocations: 4 kB / 1.212 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.149e-05/0.9716, allocations: 0 / 1.212 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.9717, allocations: 4.062 kB / 1.212 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.972, allocations: 59.78 kB / 1.213 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.856e-05/0.9721, allocations: 20.02 kB / 1.213 GB, free: 7.785 MB / 0.9356 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 0.0001119/0.9722, allocations: 121.8 kB / 1.213 GB, free: 7.656 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.9722, allocations: 4 kB / 1.213 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.73e-05/0.9723, allocations: 12.36 kB / 1.213 GB, free: 7.637 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.9723, allocations: 4 kB / 1.213 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.9723, allocations: 0 / 1.213 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.9723, allocations: 3.938 kB / 1.213 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.9725, allocations: 185.5 kB / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.9725, allocations: 0 / 1.213 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.196e-05/0.9725, allocations: 4 kB / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.9725, allocations: 0 / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.9725, allocations: 4 kB / 1.213 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.9725, allocations: 0 / 1.213 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.9726, allocations: 0 / 1.213 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001698/0.9727, allocations: 117.3 kB / 1.213 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.9728, allocations: 81.02 kB / 1.213 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.9728, allocations: 4 kB / 1.213 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.411e-05/0.9728, allocations: 8 kB / 1.213 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.085e-05/0.9729, allocations: 7.984 kB / 1.213 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.9729, allocations: 0 / 1.213 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.765e-05/0.973, allocations: 95.2 kB / 1.213 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.973, allocations: 0 / 1.213 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002586/0.9732, allocations: 36 kB / 1.213 GB, free: 7.012 MB / 0.9356 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.0004683/0.9737, allocations: 0.6591 MB / 1.214 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003458/0.9741, allocations: 246.7 kB / 1.214 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.9741, allocations: 0 / 1.214 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.219e-05/0.9742, allocations: 36.14 kB / 1.214 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.9744, allocations: 19.92 kB / 1.214 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.9765, allocations: 1.716 MB / 1.216 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.9767, allocations: 0.6885 MB / 1.216 GB, free: 3.453 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.346e-05/0.9768, allocations: 7.984 kB / 1.217 GB, free: 3.445 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.282e-05/0.9768, allocations: 19.44 kB / 1.217 GB, free: 3.426 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.9768, allocations: 0 / 1.217 GB, free: 3.426 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02151/0.9983, allocations: 2.965 MB / 1.219 GB, free: 0.5742 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.527/8.526, allocations: 4.062 kB / 1.219 GB, free: 0.5703 MB / 0.9356 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=50 --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