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.001273/0.001273, allocations: 105.8 kB / 16.27 MB, free: 5.984 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.001335/0.001336, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.338/1.338, allocations: 222.9 MB / 240.9 MB, free: 15.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.656/2.656, allocations: 482.4 MB / 0.7553 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 67.94 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6975/0.6994, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001733/0.7012, allocations: 0.6407 MB / 1.084 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001188/0.7024, allocations: 1.187 MB / 1.085 GB, free: 396 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.451e-05/0.7024, allocations: 4.594 kB / 1.085 GB, free: 392 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.445e-05/0.7025, allocations: 4.5 kB / 1.085 GB, free: 388 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.711e-05/0.7025, allocations: 8.203 kB / 1.085 GB, free: 384 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005281/0.703, allocations: 215.7 kB / 1.085 GB, free: 276 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001938/0.7032, allocations: 191.7 kB / 1.085 GB, free: 192 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.278e-05/0.7033, allocations: 14.41 kB / 1.085 GB, free: 184 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.005e-05/0.7034, allocations: 67.3 kB / 1.085 GB, free: 160 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.084e-05/0.7035, allocations: 54.33 kB / 1.085 GB, free: 136 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.7036, allocations: 16.34 kB / 1.085 GB, free: 136 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.752e-05/0.7036, allocations: 29.38 kB / 1.085 GB, free: 132 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.818e-05/0.7037, allocations: 9.047 kB / 1.085 GB, free: 128 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.988e-05/0.7038, allocations: 56.75 kB / 1.085 GB, free: 100 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.704, allocations: 152.7 kB / 1.086 GB, free: 48 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.704, allocations: 1.156 kB / 1.086 GB, free: 48 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.082e-06/0.704, allocations: 0 / 1.086 GB, free: 48 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.537e-06/0.704, allocations: 4 kB / 1.086 GB, free: 44 kB / 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.0005158/0.7045, allocations: 433.6 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 2.83e-05/0.7045, allocations: 10.23 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.39e-05/0.7046, allocations: 12.53 kB / 1.086 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.7047, allocations: 176.5 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.7047, allocations: 9.328 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.7048, allocations: 9.359 kB / 1.086 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.846e-05/0.7049, allocations: 50.7 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.35e-06/0.7049, allocations: 192 / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.7049, allocations: 10.19 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.7049, allocations: 1.219 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.463e-05/0.705, allocations: 17.67 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004545/0.7054, allocations: 352.2 kB / 1.087 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.34e-05/0.7055, allocations: 44.11 kB / 1.087 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.182e-05/0.7056, allocations: 16.44 kB / 1.087 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 8.607e-06/0.7056, allocations: 4.875 kB / 1.087 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001434/0.7057, allocations: 81.91 kB / 1.087 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.7057, allocations: 1.5 kB / 1.087 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0002285/0.706, allocations: 108.3 kB / 1.087 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.232e-05/0.706, allocations: 53.22 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.777e-05/0.7061, allocations: 120.5 kB / 1.087 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.7062, allocations: 34.2 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.783e-05/0.7062, allocations: 99.27 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.7063, allocations: 6 kB / 1.087 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.623e-05/0.7064, allocations: 48.44 kB / 1.087 GB, free: 14.53 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.7065, allocations: 323.7 kB / 1.087 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.7066, allocations: 60.06 kB / 1.087 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.7068, allocations: 97.44 kB / 1.088 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.707, allocations: 162.5 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.707, allocations: 1.219 kB / 1.088 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004355/0.7075, allocations: 262.5 kB / 1.088 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 5.49e-05/0.7075, allocations: 71.88 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.7075, allocations: 2.219 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.7075, allocations: 2 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.602e-05/0.7076, allocations: 2.484 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.7076, allocations: 1.938 kB / 1.088 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003567/0.7079, allocations: 58.17 kB / 1.088 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.708, allocations: 11.88 kB / 1.088 GB, free: 13.75 MB / 0.8419 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.000107/0.7081, allocations: 134.8 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.261e-05/0.7081, allocations: 4.031 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.17e-05/0.7081, allocations: 6.203 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.7081, allocations: 1.062 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.7081, allocations: 0.6562 kB / 1.088 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.7082, allocations: 5.766 kB / 1.088 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.7083, allocations: 187.7 kB / 1.088 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.7083, allocations: 0 / 1.088 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.099e-05/0.7083, allocations: 10.33 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.7083, allocations: 1.406 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-06/0.7084, allocations: 0.6094 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.7084, allocations: 1.281 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.7084, allocations: 0.75 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001488/0.7085, allocations: 111.9 kB / 1.089 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.703e-05/0.7086, allocations: 82.8 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.7086, allocations: 2.641 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.289e-05/0.7086, allocations: 5.25 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.778e-05/0.7087, allocations: 10.42 kB / 1.089 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-06/0.7087, allocations: 3.359 kB / 1.089 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.782e-05/0.7087, allocations: 90.42 kB / 1.089 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7087, allocations: 0 / 1.089 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000223/0.709, allocations: 31.45 kB / 1.089 GB, free: 13.12 MB / 0.8419 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.0001406/0.7091, allocations: 102.3 kB / 1.089 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003504/0.7095, allocations: 257.3 kB / 1.089 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7095, allocations: 1.375 kB / 1.089 GB, free: 12.85 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 6.042e-05/0.7095, allocations: 35.64 kB / 1.089 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.7098, allocations: 16 kB / 1.089 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.7101, allocations: 196 kB / 1.089 GB, free: 12.65 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.7104, allocations: 0.6862 MB / 1.09 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.214e-05/0.7104, allocations: 11.38 kB / 1.09 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.7104, allocations: 0 / 1.09 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of Templates: time 0.003348/0.7138, allocations: 1.409 MB / 1.091 GB, free: 11.82 MB / 0.8419 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=400 -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/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