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.001955/0.001955, allocations: 108 kB / 15.61 MB, free: 152 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.002214/0.002214, allocations: 197 kB / 16.53 MB, free: 6.664 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.527/1.527, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.183/3.183, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 72.81 kB / 0.9121 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.372, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002377/0.3744, allocations: 0.6456 MB / 1.069 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001706/0.3762, allocations: 1.196 MB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.686e-05/0.3762, allocations: 4 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.171e-05/0.3763, allocations: 7.938 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.757e-05/0.3764, allocations: 11.88 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006616/0.377, allocations: 209.8 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.3772, allocations: 187.6 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.798e-05/0.3773, allocations: 8 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.525e-05/0.3774, allocations: 75.88 kB / 1.071 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.3776, allocations: 51.86 kB / 1.071 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.825e-05/0.3776, allocations: 12 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.928e-05/0.3777, allocations: 31.98 kB / 1.071 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.584e-05/0.3777, allocations: 15.92 kB / 1.071 GB, free: 7.969 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.57e-05/0.3778, allocations: 47.91 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.378, allocations: 155.6 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.378, allocations: 0 / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3781, allocations: 3.938 kB / 1.071 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.3781, allocations: 0 / 1.071 GB, free: 7.766 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.0004962/0.3786, allocations: 447 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.3786, allocations: 8.031 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.755e-05/0.3787, allocations: 12.84 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.3788, allocations: 168.3 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.3788, allocations: 8.375 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.3789, allocations: 8.375 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.379, allocations: 46.23 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.379, allocations: 4.188 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.379, allocations: 7.938 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.379, allocations: 4 kB / 1.072 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.983e-05/0.3791, allocations: 15.98 kB / 1.072 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.3796, allocations: 364.6 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.081e-05/0.3797, allocations: 34.5 kB / 1.072 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.285e-05/0.3797, allocations: 16.86 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-06/0.3797, allocations: 0 / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001425/0.3799, allocations: 83.41 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.3799, allocations: 0 / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002469/0.3801, allocations: 109.6 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.943e-05/0.3802, allocations: 55.41 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.4e-05/0.3803, allocations: 113.8 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.3803, allocations: 29.7 kB / 1.072 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.545e-05/0.3804, allocations: 100 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.3804, allocations: 15.91 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.456e-05/0.3805, allocations: 45.69 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.3807, allocations: 322.8 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.3808, allocations: 67.83 kB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.381, allocations: 88.64 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.3812, allocations: 167.6 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3812, allocations: 0 / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004047/0.3816, allocations: 260.8 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.667e-05/0.3817, allocations: 69.11 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3817, allocations: 4.125 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.3817, allocations: 4 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.002e-05/0.3817, allocations: 4 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.3817, allocations: 4.25 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003519/0.3821, allocations: 59.83 kB / 1.073 GB, free: 4.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.713e-05/0.3821, allocations: 12.06 kB / 1.073 GB, free: 4.758 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.0001053/0.3822, allocations: 135.8 kB / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.4e-05/0.3822, allocations: 7.984 kB / 1.074 GB, free: 4.609 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.794e-05/0.3823, allocations: 12.38 kB / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.3823, allocations: 0 / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.3823, allocations: 0 / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3823, allocations: 0 / 1.074 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.3824, allocations: 181.5 kB / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3825, allocations: 0 / 1.074 GB, free: 4.371 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.528e-06/0.3825, allocations: 4 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.3825, allocations: 0 / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.3825, allocations: 8 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3825, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3825, allocations: 3.984 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.3826, allocations: 113 kB / 1.074 GB, free: 4.227 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.43e-05/0.3827, allocations: 89.02 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.3827, allocations: 7.922 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.959e-05/0.3827, allocations: 0 / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.3828, allocations: 4 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.3828, allocations: 15.98 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.247e-05/0.3828, allocations: 87.28 kB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3828, allocations: 0 / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002245/0.3831, allocations: 28 kB / 1.074 GB, free: 3.98 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.00017/0.3832, allocations: 103.2 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003423/0.3836, allocations: 254.6 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.3836, allocations: 0 / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.892e-05/0.3837, allocations: 32.23 kB / 1.074 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.3839, allocations: 15.98 kB / 1.075 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003141/0.3842, allocations: 166.7 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.3845, allocations: 0.6846 MB / 1.075 GB, free: 2.648 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.706e-05/0.3845, allocations: 15.77 kB / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.84e-05/0.3845, allocations: 7.438 kB / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3845, allocations: 0 / 1.075 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of Templates: time 0.004254/0.3888, allocations: 1.858 MB / 1.077 GB, free: 0.793 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