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.008911/0.008911, allocations: 97.69 kB / 15.73 MB, free: 6.02 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.002295/0.002295, allocations: 190.5 kB / 16.67 MB, free: 5.938 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.473/1.473, 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 12.0.0-master/package.mo): time 2.847/2.847, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 65.16 kB / 1.083 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.299, allocations: 162.2 MB / 1.241 GB, free: 9.391 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001849/0.3008, allocations: 0.6489 MB / 1.242 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001574/0.3024, allocations: 1.184 MB / 1.243 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.954e-05/0.3025, allocations: 0 / 1.243 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.3026, allocations: 3.938 kB / 1.243 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.846e-05/0.3027, allocations: 19.86 kB / 1.243 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007009/0.3034, allocations: 221.6 kB / 1.243 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002666/0.3036, allocations: 179.8 kB / 1.244 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.3038, allocations: 13.39 kB / 1.244 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.3039, allocations: 67.89 kB / 1.244 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.3041, allocations: 63.84 kB / 1.244 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.818e-05/0.3041, allocations: 16 kB / 1.244 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.3042, allocations: 35.86 kB / 1.244 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.3042, allocations: 15.97 kB / 1.244 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.378e-05/0.3043, allocations: 51.83 kB / 1.244 GB, free: 6.879 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.3046, allocations: 151.9 kB / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3046, allocations: 0 / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3046, allocations: 0 / 1.244 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3046, allocations: 0 / 1.244 GB, free: 6.73 MB / 0.9669 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.0005888/0.3052, allocations: 444.4 kB / 1.244 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3053, allocations: 8.031 kB / 1.244 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.445e-05/0.3053, allocations: 38.75 kB / 1.245 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.775e-05/0.3054, allocations: 8.891 kB / 1.245 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.3055, allocations: 172.3 kB / 1.245 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.3055, allocations: 8.375 kB / 1.245 GB, free: 5.957 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.3056, allocations: 12.38 kB / 1.245 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.3057, allocations: 50.19 kB / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3057, allocations: 7.922 kB / 1.245 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.3057, allocations: 3.984 kB / 1.245 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.3058, allocations: 7.938 kB / 1.245 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.979e-05/0.3058, allocations: 19.94 kB / 1.245 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005119/0.3063, allocations: 352.7 kB / 1.245 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.729e-05/0.3064, allocations: 38.5 kB / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.105e-05/0.3065, allocations: 12.86 kB / 1.245 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.3065, allocations: 4 kB / 1.245 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002072/0.3067, allocations: 91.42 kB / 1.245 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.3067, allocations: 0 / 1.245 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0002649/0.307, allocations: 109.6 kB / 1.245 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.307, allocations: 51.41 kB / 1.245 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.3072, allocations: 117.8 kB / 1.246 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.3072, allocations: 29.7 kB / 1.246 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.044e-05/0.3073, allocations: 96.09 kB / 1.246 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.3073, allocations: 19.83 kB / 1.246 GB, free: 4.836 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.3074, allocations: 57.69 kB / 1.246 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.3076, allocations: 322.8 kB / 1.246 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.3077, allocations: 59.97 kB / 1.246 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.3079, allocations: 92.25 kB / 1.246 GB, free: 4.285 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.3081, allocations: 159.6 kB / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3081, allocations: 0 / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004438/0.3085, allocations: 261.4 kB / 1.247 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.3086, allocations: 71.33 kB / 1.247 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.3086, allocations: 0 / 1.247 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3086, allocations: 4.125 kB / 1.247 GB, free: 3.742 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.792e-05/0.3087, allocations: 4 kB / 1.247 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3087, allocations: 7.984 kB / 1.247 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.309, allocations: 55.89 kB / 1.247 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.3091, allocations: 8 kB / 1.247 GB, free: 3.668 MB / 0.9669 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.0001098/0.3092, allocations: 130.2 kB / 1.247 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.497e-05/0.3092, allocations: 11.95 kB / 1.247 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.259e-05/0.3092, allocations: 8.375 kB / 1.247 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.3092, allocations: 0 / 1.247 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3092, allocations: 4 kB / 1.247 GB, free: 3.5 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.3093, allocations: 3.938 kB / 1.247 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.3094, allocations: 181.6 kB / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3094, allocations: 0 / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.456e-06/0.3094, allocations: 0 / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.3094, allocations: 0 / 1.247 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.537e-06/0.3095, allocations: 4 kB / 1.247 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3095, allocations: 8 kB / 1.247 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3095, allocations: 0 / 1.247 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.3096, allocations: 117 kB / 1.247 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.377e-05/0.3097, allocations: 81.05 kB / 1.247 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.3097, allocations: 3.984 kB / 1.247 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.594e-05/0.3097, allocations: 4 kB / 1.247 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.3098, allocations: 7.938 kB / 1.247 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.3098, allocations: 7.984 kB / 1.247 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.468e-05/0.3099, allocations: 91.28 kB / 1.247 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3099, allocations: 0 / 1.247 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002376/0.3101, allocations: 31.98 kB / 1.247 GB, free: 2.883 MB / 0.9669 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.0005014/0.3106, allocations: 0.6475 MB / 1.248 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003679/0.311, allocations: 246.7 kB / 1.248 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.311, allocations: 288 / 1.248 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 5.752e-05/0.3111, allocations: 35.91 kB / 1.248 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002346/0.3113, allocations: 21.64 kB / 1.248 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.3133, allocations: 1.717 MB / 1.25 GB, free: 52 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.3136, allocations: 0.6885 MB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.843e-05/0.3137, allocations: 4 kB / 1.251 GB, free: 15.33 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.291e-05/0.3137, allocations: 23.42 kB / 1.251 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of SimCode: time 7.42e-07/0.3137, allocations: 4 kB / 1.251 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.3367, allocations: 2.9 MB / 1.254 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.922/8.259, allocations: 9.172 kB / 1.254 GB, free: 12.51 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 400 --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