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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|xor1.u1|xor1.u2|xor1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Xor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|xor1.u1|xor1.u2|xor1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001237, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001222/0.001222, allocations: 190.9 kB / 16.14 MB, free: 6.699 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.574/1.574, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.143/3.143, allocations: 472.7 MB / 0.7447 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 69.75 kB / 0.9114 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4872/0.4886, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002447/0.4911, allocations: 0.7138 MB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.493, allocations: 1.221 MB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.4931, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.448e-05/0.4932, allocations: 0 / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.301e-05/0.4933, allocations: 7.922 kB / 1.069 GB, free: 8.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007728/0.4941, allocations: 202.4 kB / 1.07 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.4943, allocations: 151.7 kB / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.4945, allocations: 12 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.4946, allocations: 67.81 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.4947, allocations: 43.88 kB / 1.07 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.4948, allocations: 12 kB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.4949, allocations: 19.97 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.989e-05/0.4949, allocations: 15.92 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.4951, allocations: 47.89 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.4953, allocations: 147.6 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.4954, allocations: 4 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4954, allocations: 0 / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.4954, allocations: 0 / 1.07 GB, free: 8.164 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.0006647/0.496, allocations: 435 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4961, allocations: 12.03 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.913e-05/0.4962, allocations: 8.844 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.4964, allocations: 172.3 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.4964, allocations: 8.359 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/0.4965, allocations: 12.38 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.4966, allocations: 54.25 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.4967, allocations: 192 / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.4967, allocations: 3.938 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.4967, allocations: 0 / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.216e-05/0.4968, allocations: 19.98 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006124/0.4974, allocations: 352.7 kB / 1.071 GB, free: 6.953 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.4975, allocations: 46.44 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.993e-05/0.4976, allocations: 20.86 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.4976, allocations: 4 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.4979, allocations: 83.44 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.4979, allocations: 0 / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003422/0.4982, allocations: 105.5 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.4983, allocations: 51.41 kB / 1.071 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.4984, allocations: 121.8 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.61e-05/0.4985, allocations: 29.7 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/0.4986, allocations: 100 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.4986, allocations: 11.89 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.4987, allocations: 49.69 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4989, allocations: 322.8 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.4991, allocations: 59.97 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.4992, allocations: 104.1 kB / 1.072 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.4995, allocations: 151.6 kB / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.4995, allocations: 0 / 1.072 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004906/0.5, allocations: 268.8 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.379e-05/0.5001, allocations: 67.39 kB / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5001, allocations: 0 / 1.073 GB, free: 5.238 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.5001, allocations: 4 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.416e-05/0.5001, allocations: 0 / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.5002, allocations: 4 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003994/0.5006, allocations: 64.41 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.5006, allocations: 12 kB / 1.073 GB, free: 5.156 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 0.0001471/0.5008, allocations: 139.5 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.5008, allocations: 4 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.379e-05/0.5008, allocations: 8.375 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.5008, allocations: 4 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.5009, allocations: 0 / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.5009, allocations: 0 / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.5011, allocations: 181.5 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.5011, allocations: 0 / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.428e-05/0.5011, allocations: 8 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.5011, allocations: 0 / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.442e-05/0.5011, allocations: 4 kB / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.5011, allocations: 0 / 1.073 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5011, allocations: 4.062 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001796/0.5013, allocations: 117 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.913e-05/0.5014, allocations: 85 kB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.5014, allocations: 0 / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.413e-05/0.5014, allocations: 8 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.5015, allocations: 11.98 kB / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.234e-06/0.5015, allocations: 0 / 1.073 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.385e-05/0.5016, allocations: 91.27 kB / 1.073 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5016, allocations: 0 / 1.073 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002589/0.5019, allocations: 28 kB / 1.073 GB, free: 4.383 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.0002849/0.5022, allocations: 103.2 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004346/0.5026, allocations: 254.6 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.5026, allocations: 0 / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 6.008e-05/0.5027, allocations: 31.92 kB / 1.074 GB, free: 3.969 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.503, allocations: 15.98 kB / 1.074 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004878/0.5035, allocations: 169.3 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.5039, allocations: 0.6848 MB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.418e-05/0.5039, allocations: 11.77 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.018e-05/0.504, allocations: 11.72 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of SimCode: time 5.31e-07/0.504, allocations: 0 / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of Templates: time 0.005895/0.5099, allocations: 1.776 MB / 1.076 GB, free: 1.273 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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