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.001129/0.001129, allocations: 108 kB / 15.6 MB, free: 132 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.001124/0.001124, allocations: 199 kB / 16.54 MB, free: 6.672 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.644/2.644, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 76.12 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2947, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002136/0.2968, allocations: 0.6567 MB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.2985, allocations: 1.191 MB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.108e-05/0.2985, allocations: 0 / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.984e-05/0.2986, allocations: 3.938 kB / 1.065 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.222e-05/0.2987, allocations: 7.922 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006603/0.2993, allocations: 218.1 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000215/0.2996, allocations: 191.7 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.789e-05/0.2997, allocations: 12 kB / 1.066 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.2998, allocations: 71.83 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.59e-05/0.2999, allocations: 55.84 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.2999, allocations: 16 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.366e-05/0.3, allocations: 24 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.392e-05/0.3, allocations: 19.92 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.548e-05/0.3001, allocations: 55.88 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.3003, allocations: 143.9 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3004, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3004, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.3004, allocations: 0 / 1.066 GB, free: 11.84 MB / 0.8262 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.0004998/0.3009, allocations: 440.3 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.3009, allocations: 8.031 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.726e-05/0.301, allocations: 34.75 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.693e-05/0.301, allocations: 16.77 kB / 1.067 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.3011, allocations: 180.3 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.3012, allocations: 4.375 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.3012, allocations: 12.38 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.3013, allocations: 50.23 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3013, allocations: 3.938 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.3013, allocations: 0 / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.3014, allocations: 0 / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.475e-05/0.3014, allocations: 16 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.3019, allocations: 368.5 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.305e-05/0.3019, allocations: 34.58 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.865e-05/0.302, allocations: 12.94 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.302, allocations: 8 kB / 1.067 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.3022, allocations: 75.38 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.3022, allocations: 4 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002321/0.3024, allocations: 109.5 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.3025, allocations: 51.41 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.3026, allocations: 117.8 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.961e-05/0.3026, allocations: 29.7 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.849e-05/0.3027, allocations: 96.05 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.3027, allocations: 7.906 kB / 1.068 GB, free: 9.969 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3028, allocations: 53.67 kB / 1.068 GB, free: 9.91 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.968e-05/0.3029, allocations: 322.8 kB / 1.068 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.303, allocations: 59.97 kB / 1.068 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001374/0.3032, allocations: 100.1 kB / 1.068 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.3033, allocations: 164 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3034, allocations: 0 / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003958/0.3038, allocations: 264.8 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.3038, allocations: 63.41 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3038, allocations: 3.984 kB / 1.069 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.3038, allocations: 4 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.908e-05/0.3039, allocations: 0 / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.3039, allocations: 4.125 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003638/0.3042, allocations: 59.84 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.07e-05/0.3043, allocations: 11.98 kB / 1.069 GB, free: 8.793 MB / 0.8262 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.062e-05/0.3044, allocations: 129.7 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/0.3044, allocations: 7.984 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.3044, allocations: 12.36 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3044, allocations: 4 kB / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.3045, allocations: 8.062 kB / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3045, allocations: 0 / 1.069 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001188/0.3046, allocations: 177.6 kB / 1.069 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3046, allocations: 0 / 1.069 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.248e-05/0.3046, allocations: 7.984 kB / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3046, allocations: 0 / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.3046, allocations: 4 kB / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3046, allocations: 0 / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3046, allocations: 0 / 1.069 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.3048, allocations: 120.9 kB / 1.069 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.3048, allocations: 81.02 kB / 1.069 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.3048, allocations: 0 / 1.069 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.284e-05/0.3049, allocations: 4 kB / 1.069 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.3049, allocations: 11.98 kB / 1.069 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.3049, allocations: 0 / 1.069 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.537e-05/0.305, allocations: 95.2 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.305, allocations: 0 / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002349/0.3052, allocations: 32 kB / 1.07 GB, free: 8.016 MB / 0.8262 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.0004288/0.3057, allocations: 0.6635 MB / 1.07 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003194/0.306, allocations: 251.1 kB / 1.07 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.306, allocations: 256 / 1.07 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.41e-05/0.306, allocations: 24 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.3063, allocations: 20.12 kB / 1.071 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001795/0.3081, allocations: 1.708 MB / 1.072 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.3083, allocations: 0.6885 MB / 1.073 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.824e-05/0.3084, allocations: 4 kB / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.526e-05/0.3084, allocations: 23.42 kB / 1.073 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.3084, allocations: 0 / 1.073 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01951/0.3279, allocations: 2.882 MB / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.303/7.631, allocations: 5.359 kB / 1.076 GB, free: 1.656 MB / 0.8262 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