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.005584/0.005584, allocations: 96.39 kB / 15.73 MB, free: 6 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.001171/0.001171, allocations: 189 kB / 16.67 MB, free: 5.93 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.561/1.561, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.135/3.135, allocations: 472.6 MB / 0.7453 GB, free: 4.539 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 64.12 kB / 1.07 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.4199, allocations: 159.9 MB / 1.226 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001688/0.4217, allocations: 0.6581 MB / 1.226 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.423, allocations: 1.178 MB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.77e-05/0.423, allocations: 4 kB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.423, allocations: 3.938 kB / 1.227 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.292e-05/0.4231, allocations: 11.91 kB / 1.227 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005361/0.4236, allocations: 217.9 kB / 1.228 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002192/0.4239, allocations: 191.6 kB / 1.228 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.564e-05/0.4239, allocations: 12 kB / 1.228 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.206e-05/0.424, allocations: 67.88 kB / 1.228 GB, free: 6.785 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.4241, allocations: 67.83 kB / 1.228 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.037e-05/0.4242, allocations: 16 kB / 1.228 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7e-05/0.4243, allocations: 28 kB / 1.228 GB, free: 6.676 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.281e-05/0.4243, allocations: 11.92 kB / 1.228 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.804e-05/0.4244, allocations: 55.88 kB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.4246, allocations: 155.5 kB / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.4246, allocations: 0 / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of FrontEnd: time 9.81e-07/0.4246, allocations: 4 kB / 1.228 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.4246, allocations: 0 / 1.228 GB, free: 6.453 MB / 0.9825 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.0004465/0.4251, allocations: 440.5 kB / 1.229 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.365e-05/0.4251, allocations: 11.97 kB / 1.229 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.462e-05/0.4251, allocations: 12.89 kB / 1.229 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.4252, allocations: 176.3 kB / 1.229 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.4253, allocations: 4.375 kB / 1.229 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.4253, allocations: 8.375 kB / 1.229 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.224e-05/0.4254, allocations: 50.23 kB / 1.229 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.787e-06/0.4254, allocations: 4.188 kB / 1.229 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4254, allocations: 11.92 kB / 1.229 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-06/0.4254, allocations: 0 / 1.229 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.559e-05/0.4255, allocations: 12 kB / 1.229 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000372/0.4258, allocations: 356.7 kB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 7.641e-05/0.4259, allocations: 38.5 kB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.252e-05/0.426, allocations: 16.86 kB / 1.229 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.426, allocations: 4 kB / 1.229 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001259/0.4261, allocations: 83.39 kB / 1.229 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.4261, allocations: 0 / 1.229 GB, free: 5.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.000236/0.4264, allocations: 105.6 kB / 1.23 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.245e-05/0.4264, allocations: 55.41 kB / 1.23 GB, free: 4.895 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.183e-05/0.4265, allocations: 113.8 kB / 1.23 GB, free: 4.773 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.4265, allocations: 41.69 kB / 1.23 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.737e-05/0.4266, allocations: 92.09 kB / 1.23 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.061e-05/0.4266, allocations: 11.91 kB / 1.23 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.808e-05/0.4267, allocations: 49.62 kB / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.4268, allocations: 327.1 kB / 1.23 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.427, allocations: 63.91 kB / 1.23 GB, free: 4.176 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.4271, allocations: 92.19 kB / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.4273, allocations: 159.6 kB / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4273, allocations: 0 / 1.23 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003859/0.4277, allocations: 257 kB / 1.231 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.1e-05/0.4278, allocations: 71.39 kB / 1.231 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.4278, allocations: 4 kB / 1.231 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.4278, allocations: 0 / 1.231 GB, free: 3.531 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.917e-05/0.4279, allocations: 4 kB / 1.231 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.4279, allocations: 7.922 kB / 1.231 GB, free: 3.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000307/0.4282, allocations: 59.83 kB / 1.231 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.4282, allocations: 8 kB / 1.231 GB, free: 3.453 MB / 0.9825 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.0001111/0.4283, allocations: 133.8 kB / 1.231 GB, free: 3.312 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.4284, allocations: 4.016 kB / 1.231 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.241e-05/0.4284, allocations: 16.38 kB / 1.231 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.4284, allocations: 0 / 1.231 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4284, allocations: 0 / 1.231 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.4284, allocations: 0 / 1.231 GB, free: 3.289 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.4286, allocations: 185.6 kB / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.4286, allocations: 0 / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.045e-06/0.4286, allocations: 0 / 1.231 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.4286, allocations: 8 kB / 1.231 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.4286, allocations: 0 / 1.231 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.4286, allocations: 0 / 1.231 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.4286, allocations: 0 / 1.231 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001443/0.4288, allocations: 116.9 kB / 1.231 GB, free: 2.918 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.4288, allocations: 77.11 kB / 1.231 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.4288, allocations: 7.984 kB / 1.231 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.963e-05/0.4288, allocations: 96 / 1.231 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.4289, allocations: 15.94 kB / 1.231 GB, free: 2.801 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.877e-06/0.4289, allocations: 7.984 kB / 1.231 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.289e-05/0.429, allocations: 87.28 kB / 1.232 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.453e-06/0.429, allocations: 0 / 1.232 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002258/0.4292, allocations: 31.92 kB / 1.232 GB, free: 2.676 MB / 0.9825 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.0001638/0.4294, allocations: 111.2 kB / 1.232 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003287/0.4297, allocations: 254.8 kB / 1.232 GB, free: 2.285 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4297, allocations: 4.062 kB / 1.232 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 4.902e-05/0.4298, allocations: 27.92 kB / 1.232 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.43, allocations: 18.56 kB / 1.232 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003047/0.4303, allocations: 162.5 kB / 1.232 GB, free: 2.051 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.4306, allocations: 0.6807 MB / 1.233 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.613e-05/0.4306, allocations: 15.98 kB / 1.233 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.144e-05/0.4306, allocations: 7.438 kB / 1.233 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.4306, allocations: 0 / 1.233 GB, free: 1.32 MB / 0.9825 GB Notification: Performance of Templates: time 0.004176/0.4348, allocations: 1.865 MB / 1.235 GB, free: 15.47 MB / 0.9981 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