Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Xor,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,fileNamePrefix="Buildings_10_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.001217/0.001217, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.606/2.606, allocations: 437 MB / 0.7104 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 63.91 kB / 0.8694 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6931/0.6945, allocations: 151.6 MB / 1.017 GB, free: 2.504 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002076/0.6966, allocations: 0.6599 MB / 1.018 GB, free: 1.844 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001557/0.6982, allocations: 1.191 MB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.683e-05/0.6983, allocations: 0 / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.373e-05/0.6983, allocations: 3.938 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.433e-05/0.6984, allocations: 11.86 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007333/0.6992, allocations: 218.7 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.6994, allocations: 195.6 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.6996, allocations: 8 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.6997, allocations: 71.88 kB / 1.02 GB, free: 148 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.934e-05/0.6998, allocations: 47.88 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 4.728e-05/0.6998, allocations: 16 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.067e-05/0.6999, allocations: 23.98 kB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.6e-05/0.7, allocations: 15.97 kB / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 9.938e-05/0.7001, allocations: 63.83 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.7003, allocations: 145.9 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.7003, allocations: 4 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7003, allocations: 3.938 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.532e-06/0.7003, allocations: 0 / 1.02 GB, free: 15.83 MB / 0.7794 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.0005098/0.7008, allocations: 438.7 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.7009, allocations: 15.97 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.247e-05/0.7009, allocations: 30.75 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.701, allocations: 12.84 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.7011, allocations: 168.3 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.7011, allocations: 12.38 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.165e-05/0.7012, allocations: 8.375 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.7013, allocations: 50.23 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.7013, allocations: 3.938 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.7013, allocations: 0 / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.7013, allocations: 4 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.643e-05/0.7014, allocations: 15.94 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004643/0.7018, allocations: 356.7 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.535e-05/0.7019, allocations: 38.56 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.472e-05/0.702, allocations: 20.94 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.161e-05/0.702, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001576/0.7021, allocations: 83.3 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.7022, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0002808/0.7024, allocations: 105.6 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.7025, allocations: 51.41 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.7026, allocations: 125.8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.7026, allocations: 33.7 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.7027, allocations: 88.14 kB / 1.022 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.7027, allocations: 11.8 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.613e-05/0.7028, allocations: 53.62 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.703, allocations: 326.8 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.7031, allocations: 59.97 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.7033, allocations: 96.25 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.7035, allocations: 159.6 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.7035, allocations: 3.984 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004048/0.7039, allocations: 264.8 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.7039, allocations: 67.39 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.7039, allocations: 4 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.704, allocations: 0 / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.387e-05/0.704, allocations: 11.92 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.704, allocations: 0 / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.7044, allocations: 56 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.7044, allocations: 12.45 kB / 1.023 GB, free: 12.79 MB / 0.7794 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.71e-05/0.7045, allocations: 125.8 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/0.7045, allocations: 7.906 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.495e-05/0.7046, allocations: 4.375 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.7046, allocations: 4 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.7046, allocations: 11.92 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.7046, allocations: 0 / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.7047, allocations: 177.6 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.7047, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.177e-06/0.7048, allocations: 0 / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.758e-06/0.7048, allocations: 3.984 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.7048, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.7048, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7048, allocations: 7.922 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.7049, allocations: 120.9 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.27e-05/0.705, allocations: 77.11 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.705, allocations: 4 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.062e-05/0.705, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.95e-05/0.7051, allocations: 11.98 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.7051, allocations: 4 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.7052, allocations: 87.27 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7052, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002444/0.7054, allocations: 31.91 kB / 1.023 GB, free: 12.02 MB / 0.7794 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.0004389/0.7059, allocations: 0.6514 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000353/0.7062, allocations: 246.7 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.7062, allocations: 0 / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.641e-05/0.7063, allocations: 32.17 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002434/0.7066, allocations: 25.67 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/0.7085, allocations: 1.721 MB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000225/0.7088, allocations: 0.6885 MB / 1.027 GB, free: 8.465 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.096e-05/0.7088, allocations: 4 kB / 1.027 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.912e-05/0.7088, allocations: 19.44 kB / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.7088, allocations: 7.938 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.7292, allocations: 2.862 MB / 1.029 GB, free: 5.652 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.571/8.3, allocations: 15.45 kB / 1.029 GB, free: 5.641 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_Xor.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches