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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.01265/0.01265, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001811/0.001811, allocations: 195.9 kB / 16.67 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.448/1.448, 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 11.1.0-master/package.mo): time 2.851/2.851, allocations: 469.4 MB / 0.7422 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.89 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3492, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002124/0.3514, allocations: 0.6529 MB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001572/0.353, allocations: 1.188 MB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.492e-05/0.3531, allocations: 8 kB / 1.222 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.727e-05/0.3532, allocations: 3.938 kB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.79e-05/0.3533, allocations: 11.86 kB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007278/0.354, allocations: 218.9 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.3543, allocations: 187.7 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.376e-05/0.3544, allocations: 12 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.3545, allocations: 67.88 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001414/0.3546, allocations: 75.77 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.3547, allocations: 12 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.685e-05/0.3548, allocations: 31.98 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.166e-05/0.3548, allocations: 4 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.259e-05/0.3549, allocations: 59.81 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.3551, allocations: 159.5 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3551, allocations: 0 / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.113e-06/0.3552, allocations: 0 / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.3552, allocations: 4 kB / 1.222 GB, free: 11.95 MB / 0.9825 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.0005426/0.3557, allocations: 434.7 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3558, allocations: 12.02 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.3558, allocations: 30.75 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.966e-05/0.3559, allocations: 12.89 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.356, allocations: 172.3 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.356, allocations: 4.375 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.3561, allocations: 16.36 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.3562, allocations: 50.19 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3562, allocations: 7.938 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.3562, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3562, allocations: 0 / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.126e-05/0.3563, allocations: 19.98 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004723/0.3568, allocations: 352.7 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.665e-05/0.3569, allocations: 38.56 kB / 1.223 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.806e-05/0.3569, allocations: 16.8 kB / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.3569, allocations: 4 kB / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001913/0.3571, allocations: 83.45 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.3571, allocations: 0 / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0002497/0.3574, allocations: 101.6 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.3574, allocations: 63.34 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.361e-05/0.3575, allocations: 117.8 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.3576, allocations: 29.7 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.3576, allocations: 100.1 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.757e-05/0.3577, allocations: 15.91 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.364e-05/0.3578, allocations: 49.69 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.3579, allocations: 314.8 kB / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.358, allocations: 63.95 kB / 1.224 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.3582, allocations: 96.2 kB / 1.224 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.3584, allocations: 163.6 kB / 1.225 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3584, allocations: 0 / 1.225 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000426/0.3588, allocations: 256.9 kB / 1.225 GB, free: 9.078 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.46e-05/0.3589, allocations: 75.52 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3589, allocations: 0 / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3589, allocations: 7.984 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.076e-05/0.3589, allocations: 3.938 kB / 1.225 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3589, allocations: 4.312 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/0.3593, allocations: 55.83 kB / 1.225 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.3593, allocations: 15.98 kB / 1.225 GB, free: 8.906 MB / 0.9825 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.0001033/0.3595, allocations: 129.7 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.3595, allocations: 7.953 kB / 1.225 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.3595, allocations: 8.828 kB / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3595, allocations: 0 / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3595, allocations: 0 / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3595, allocations: 0 / 1.225 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001415/0.3597, allocations: 181.6 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3597, allocations: 7.875 kB / 1.225 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.273e-05/0.3597, allocations: 7.984 kB / 1.225 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3597, allocations: 4 kB / 1.225 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.3597, allocations: 0 / 1.225 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3597, allocations: 0 / 1.225 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.3597, allocations: 7.984 kB / 1.225 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.3599, allocations: 109 kB / 1.225 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.3599, allocations: 81.11 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.737e-05/0.36, allocations: 0 / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.411e-05/0.36, allocations: 4 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.36, allocations: 11.98 kB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.3601, allocations: 4 kB / 1.226 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.125e-05/0.3601, allocations: 95.2 kB / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3601, allocations: 0 / 1.226 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002585/0.3604, allocations: 32 kB / 1.226 GB, free: 8.133 MB / 0.9825 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.0004841/0.3609, allocations: 0.6592 MB / 1.226 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003549/0.3612, allocations: 246.6 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3612, allocations: 0 / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.071e-05/0.3613, allocations: 31.94 kB / 1.227 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.3616, allocations: 16.17 kB / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.3635, allocations: 1.718 MB / 1.228 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.3637, allocations: 0.6923 MB / 1.229 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.36e-05/0.3637, allocations: 11.98 kB / 1.229 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.873e-05/0.3638, allocations: 15.44 kB / 1.229 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3638, allocations: 0 / 1.229 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02031/0.3841, allocations: 2.906 MB / 1.232 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/8.064, allocations: 8.047 kB / 1.232 GB, free: 1.75 MB / 0.9825 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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