Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.007219/0.007219, allocations: 104.7 kB / 15.74 MB, free: 6.492 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.001475/0.001475, allocations: 191.7 kB / 16.68 MB, free: 6.375 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.495/1.495, 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 9.1.3-maint.9.1.x/package.mo): time 2.567/2.567, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 68.83 kB / 0.9509 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3639, allocations: 140.4 MB / 1.088 GB, free: 1.457 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001989/0.366, allocations: 0.6613 MB / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.3675, allocations: 1.188 MB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.079e-05/0.3676, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.134e-05/0.3676, allocations: 3.938 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.194e-05/0.3677, allocations: 7.922 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.3684, allocations: 222.8 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002508/0.3687, allocations: 187.7 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.3688, allocations: 15.97 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.674e-05/0.3689, allocations: 63.89 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.3691, allocations: 71.78 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.442e-05/0.3691, allocations: 16 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.584e-05/0.3692, allocations: 23.98 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.143e-05/0.3692, allocations: 19.92 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.3694, allocations: 51.89 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000225/0.3696, allocations: 155.5 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3696, allocations: 0 / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3696, allocations: 0 / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.3696, allocations: 0 / 1.091 GB, free: 14.78 MB / 0.8575 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.0005763/0.3702, allocations: 434.8 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3702, allocations: 8.031 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.594e-05/0.3703, allocations: 16.84 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.3705, allocations: 168.3 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.3705, allocations: 8.375 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.3705, allocations: 12.36 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000161/0.3707, allocations: 50.25 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3707, allocations: 192 / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.3707, allocations: 3.938 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.3707, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.547e-05/0.3708, allocations: 15.98 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004935/0.3713, allocations: 360.6 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/0.3714, allocations: 42.5 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.208e-05/0.3715, allocations: 20.84 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.3715, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001718/0.3717, allocations: 83.39 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.3717, allocations: 4 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0003104/0.372, allocations: 101.6 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.372, allocations: 59.41 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.3722, allocations: 117.8 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.3722, allocations: 33.7 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.028e-05/0.3723, allocations: 95.97 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.3723, allocations: 11.91 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.435e-05/0.3724, allocations: 45.69 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.3725, allocations: 330.8 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.3727, allocations: 59.97 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.3728, allocations: 92.2 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.373, allocations: 163.6 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3731, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004267/0.3735, allocations: 260.8 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/0.3736, allocations: 71.39 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3736, allocations: 0 / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.3736, allocations: 0 / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.141e-05/0.3736, allocations: 4 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3736, allocations: 0 / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003315/0.374, allocations: 59.97 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.616e-05/0.374, allocations: 15.98 kB / 1.093 GB, free: 11.77 MB / 0.8575 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.0001279/0.3741, allocations: 131.6 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.178e-05/0.3742, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/0.3742, allocations: 16.36 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.3742, allocations: 0 / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.3742, allocations: 480 / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3742, allocations: 4 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.3745, allocations: 181.6 kB / 1.093 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3745, allocations: 0 / 1.093 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.17e-05/0.3745, allocations: 8 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.3745, allocations: 3.938 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.3745, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3745, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.3745, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/0.3747, allocations: 116.9 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.671e-05/0.3747, allocations: 89.02 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.3747, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.03e-05/0.3748, allocations: 0 / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.3748, allocations: 11.98 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.3748, allocations: 4 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.445e-05/0.3749, allocations: 95.2 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3749, allocations: 0 / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002347/0.3751, allocations: 32 kB / 1.094 GB, free: 11 MB / 0.8575 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.000242/0.3754, allocations: 111.8 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003752/0.3758, allocations: 246.6 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3758, allocations: 0 / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.099e-05/0.3758, allocations: 31.94 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.3761, allocations: 18.2 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003515/0.3764, allocations: 155.6 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.3767, allocations: 0.6898 MB / 1.095 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.149e-05/0.3768, allocations: 4 kB / 1.095 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/0.3768, allocations: 11.44 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3768, allocations: 0 / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of Templates: time 0.005133/0.382, allocations: 1.871 MB / 1.097 GB, free: 7.812 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches