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.001487/0.001487, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001836/0.001836, allocations: 198.6 kB / 16.26 MB, free: 6.625 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.563/1.563, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.048/3.048, allocations: 472.6 MB / 0.7448 GB, free: 4.836 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002351/0.002352, allocations: 61.69 kB / 0.9116 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4578/0.4602, allocations: 159.9 MB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002099/0.4623, allocations: 0.7176 MB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001665/0.464, allocations: 1.186 MB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.793e-05/0.4641, allocations: 4 kB / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.183e-05/0.4641, allocations: 0 / 1.07 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.836e-05/0.4642, allocations: 15.91 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006391/0.4649, allocations: 197.9 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.4651, allocations: 187.7 kB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.019e-05/0.4652, allocations: 12 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.4653, allocations: 75.81 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.4654, allocations: 47.88 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.058e-05/0.4655, allocations: 12 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.34e-05/0.4656, allocations: 31.98 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.638e-05/0.4656, allocations: 15.92 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.202e-05/0.4657, allocations: 51.88 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.4659, allocations: 151.6 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4659, allocations: 0 / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.204e-06/0.4659, allocations: 0 / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.4659, allocations: 4 kB / 1.07 GB, free: 8.035 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.0006125/0.4665, allocations: 439 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.4666, allocations: 8.031 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.177e-05/0.4667, allocations: 12.84 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.4668, allocations: 164.4 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.4669, allocations: 8.359 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.4669, allocations: 16.31 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.467, allocations: 46.25 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.4671, allocations: 192 / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.4671, allocations: 7.938 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.4671, allocations: 0 / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.664e-05/0.4671, allocations: 19.98 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.4677, allocations: 356.7 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.427e-05/0.4678, allocations: 42.44 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.119e-05/0.4678, allocations: 16.8 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.4678, allocations: 4 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.468, allocations: 87.44 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.468, allocations: 0 / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0002773/0.4683, allocations: 109.5 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.4684, allocations: 55.41 kB / 1.072 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.4685, allocations: 113.8 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.449e-05/0.4685, allocations: 29.7 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.819e-05/0.4686, allocations: 100 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.4686, allocations: 11.91 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.4687, allocations: 49.69 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4689, allocations: 318.8 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.469, allocations: 67.91 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.4692, allocations: 92.25 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001811/0.4694, allocations: 163.6 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4694, allocations: 0 / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004519/0.4698, allocations: 265.3 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.18e-05/0.4699, allocations: 71.52 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4699, allocations: 4 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.4699, allocations: 0 / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.454e-05/0.47, allocations: 7.938 kB / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.47, allocations: 0 / 1.073 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.4703, allocations: 55.83 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.89e-05/0.4704, allocations: 19.98 kB / 1.073 GB, free: 5.023 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.0001288/0.4705, allocations: 134.4 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.074e-05/0.4705, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.565e-05/0.4706, allocations: 12.38 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.4706, allocations: 3.984 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4706, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.4706, allocations: 0 / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.4708, allocations: 185.5 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.4708, allocations: 0 / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.099e-05/0.4708, allocations: 4 kB / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.4708, allocations: 0 / 1.073 GB, free: 4.633 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.4708, allocations: 4 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4708, allocations: 0 / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4708, allocations: 3.984 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.471, allocations: 105.1 kB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.4711, allocations: 89 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.4711, allocations: 7.938 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.962e-05/0.4711, allocations: 0 / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.4712, allocations: 11.98 kB / 1.074 GB, free: 4.379 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.4712, allocations: 4 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.696e-05/0.4712, allocations: 91.27 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4712, allocations: 0 / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002353/0.4715, allocations: 32 kB / 1.074 GB, free: 4.254 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.0001832/0.4717, allocations: 99.19 kB / 1.074 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003665/0.472, allocations: 254.6 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4721, allocations: 4.25 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.312e-05/0.4721, allocations: 36.2 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.4724, allocations: 25.69 kB / 1.074 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003651/0.4728, allocations: 166.7 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.4731, allocations: 0.6924 MB / 1.075 GB, free: 2.902 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.213e-05/0.4731, allocations: 7.781 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.363e-05/0.4732, allocations: 11.44 kB / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.4732, allocations: 0 / 1.075 GB, free: 2.883 MB / 0.8262 GB Notification: Performance of Templates: time 0.004694/0.4779, allocations: 1.838 MB / 1.077 GB, free: 1.074 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