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.00131/0.001309, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001291/0.00129, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.572/1.572, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.917/2.917, allocations: 472.6 MB / 0.7447 GB, free: 4.953 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.42 kB / 0.9114 GB, free: 33.6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.4077, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.00212/0.4099, allocations: 0.7254 MB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001438/0.4113, allocations: 1.205 MB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.255e-05/0.4114, allocations: 0 / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.215e-05/0.4114, allocations: 3.938 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.156e-05/0.4115, allocations: 15.92 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000576/0.4121, allocations: 198.5 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.4123, allocations: 151.8 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.731e-05/0.4124, allocations: 7.984 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.717e-05/0.4125, allocations: 63.89 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.335e-05/0.4126, allocations: 47.86 kB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.319e-05/0.4127, allocations: 15.94 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.792e-05/0.4128, allocations: 19.98 kB / 1.07 GB, free: 8.438 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.196e-05/0.4128, allocations: 7.938 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.304e-05/0.4129, allocations: 55.88 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002111/0.4131, allocations: 151.6 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.4131, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.002e-06/0.4131, allocations: 0 / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.4131, allocations: 0 / 1.07 GB, free: 8.227 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.0006589/0.4138, allocations: 435 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.4138, allocations: 12.03 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.114e-05/0.4139, allocations: 12.83 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.414, allocations: 164.4 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.414, allocations: 4.375 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.4141, allocations: 16.38 kB / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.4142, allocations: 50.17 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.4142, allocations: 192 / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.4142, allocations: 3.938 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.4142, allocations: 0 / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.682e-05/0.4143, allocations: 20 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004848/0.4148, allocations: 356.6 kB / 1.071 GB, free: 7.02 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.083e-05/0.4149, allocations: 42.45 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.4149, allocations: 20.94 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.4149, allocations: 4 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.4151, allocations: 79.38 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.4151, allocations: 3.938 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002637/0.4154, allocations: 113.5 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.4154, allocations: 51.41 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.626e-05/0.4155, allocations: 121.8 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.4155, allocations: 33.7 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.512e-05/0.4156, allocations: 96.05 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.282e-05/0.4156, allocations: 7.906 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.32e-05/0.4157, allocations: 53.67 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.4159, allocations: 318.8 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.416, allocations: 63.97 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.4162, allocations: 96.25 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.4164, allocations: 159.6 kB / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4164, allocations: 0 / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004032/0.4168, allocations: 268.8 kB / 1.073 GB, free: 5.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.176e-05/0.4169, allocations: 63.41 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.4169, allocations: 4.406 kB / 1.073 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.4169, allocations: 12.11 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.002e-05/0.4169, allocations: 0 / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.4169, allocations: 4 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003725/0.4173, allocations: 55.78 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.4173, allocations: 11.98 kB / 1.073 GB, free: 5.219 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.0001089/0.4175, allocations: 136.1 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.4175, allocations: 4 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.4175, allocations: 8.359 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.4175, allocations: 0 / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4175, allocations: 4 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.4175, allocations: 7.922 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.4177, allocations: 181.5 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4177, allocations: 0 / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.015e-05/0.4177, allocations: 3.984 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.4177, allocations: 0 / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.4177, allocations: 4 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4177, allocations: 4 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.4177, allocations: 0 / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.4179, allocations: 109 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.982e-05/0.4179, allocations: 81.02 kB / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.4179, allocations: 0 / 1.073 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.315e-05/0.418, allocations: 11.94 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.318e-05/0.418, allocations: 7.984 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.418, allocations: 0 / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.977e-05/0.4181, allocations: 99.2 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4181, allocations: 0 / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002333/0.4183, allocations: 32 kB / 1.073 GB, free: 4.445 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.0001686/0.4185, allocations: 107.2 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003274/0.4188, allocations: 250.6 kB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4188, allocations: 0 / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.807e-05/0.4189, allocations: 24.25 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.4191, allocations: 16.27 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003522/0.4195, allocations: 164.5 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.4198, allocations: 0.6993 MB / 1.075 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.731e-05/0.4198, allocations: 7.781 kB / 1.075 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.032e-05/0.4199, allocations: 11.44 kB / 1.075 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.4199, allocations: 0 / 1.075 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of Templates: time 0.004246/0.4241, allocations: 1.766 MB / 1.076 GB, free: 1.348 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