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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001021/0.001021, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.008093/0.008093, allocations: 170.7 kB / 16.27 MB, free: 6.648 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.635/1.635, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.91/2.91, allocations: 443.3 MB / 0.7175 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004141, allocations: 9.469 kB / 0.8796 GB, free: 41.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3757, allocations: 155.2 MB / 1.031 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.0009888/0.3767, allocations: 390.3 kB / 1.031 GB, free: 3.93 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001774/0.3785, allocations: 1.195 MB / 1.033 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.267e-05/0.3786, allocations: 4 kB / 1.033 GB, free: 2.715 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.299e-05/0.3787, allocations: 3.938 kB / 1.033 GB, free: 2.711 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.341e-05/0.3787, allocations: 15.92 kB / 1.033 GB, free: 2.695 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00072/0.3795, allocations: 201.4 kB / 1.033 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001833/0.3797, allocations: 155.6 kB / 1.033 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.3798, allocations: 12 kB / 1.033 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.742e-05/0.3799, allocations: 63.88 kB / 1.033 GB, free: 2.277 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.38, allocations: 47.88 kB / 1.033 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.38, allocations: 8 kB / 1.033 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.968e-05/0.3801, allocations: 15.98 kB / 1.033 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.361e-05/0.3801, allocations: 11.98 kB / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001584/0.3803, allocations: 77.53 kB / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.3805, allocations: 143.8 kB / 1.033 GB, free: 1.973 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3805, allocations: 4 kB / 1.033 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3805, allocations: 0 / 1.033 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.741e-06/0.3806, allocations: 4 kB / 1.033 GB, free: 1.965 MB / 0.7794 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.0004879/0.3811, allocations: 410.7 kB / 1.034 GB, free: 1.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3811, allocations: 12.03 kB / 1.034 GB, free: 1.488 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/0.3812, allocations: 8.938 kB / 1.034 GB, free: 1.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.3813, allocations: 168.3 kB / 1.034 GB, free: 1.277 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.3813, allocations: 4.375 kB / 1.034 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.3814, allocations: 16.38 kB / 1.034 GB, free: 1.258 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.3815, allocations: 46.23 kB / 1.034 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3815, allocations: 192 / 1.034 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.3816, allocations: 7.938 kB / 1.034 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.3816, allocations: 4 kB / 1.034 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.21e-05/0.3816, allocations: 23.92 kB / 1.034 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000509/0.3821, allocations: 352.7 kB / 1.034 GB, free: 0.7773 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.293e-05/0.3822, allocations: 34.52 kB / 1.034 GB, free: 0.7344 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.616e-05/0.3823, allocations: 20.94 kB / 1.034 GB, free: 0.7109 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.3823, allocations: 7.938 kB / 1.034 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001831/0.3825, allocations: 83.22 kB / 1.035 GB, free: 0.6094 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.3825, allocations: 0 / 1.035 GB, free: 0.6094 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003432/0.3829, allocations: 105.7 kB / 1.035 GB, free: 0.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.3829, allocations: 51.41 kB / 1.035 GB, free: 448 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.383, allocations: 125.7 kB / 1.035 GB, free: 312 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.3831, allocations: 29.7 kB / 1.035 GB, free: 276 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.293e-05/0.3831, allocations: 96.08 kB / 1.035 GB, free: 176 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.3832, allocations: 11.81 kB / 1.035 GB, free: 164 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.006e-05/0.3832, allocations: 25.7 kB / 1.035 GB, free: 132 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00024/0.3835, allocations: 322.8 kB / 1.035 GB, free: 15.8 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.3836, allocations: 59.97 kB / 1.035 GB, free: 15.75 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.3838, allocations: 90.52 kB / 1.035 GB, free: 15.64 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.384, allocations: 163.6 kB / 1.036 GB, free: 15.46 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.384, allocations: 4 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004702/0.3845, allocations: 261.3 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.747e-05/0.3846, allocations: 67.52 kB / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3846, allocations: 8 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3846, allocations: 3.938 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.631e-05/0.3846, allocations: 7.938 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3847, allocations: 3.938 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004354/0.3851, allocations: 75.92 kB / 1.036 GB, free: 15 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.719e-05/0.3851, allocations: 12 kB / 1.036 GB, free: 14.99 MB / 0.795 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.0001675/0.3853, allocations: 133.6 kB / 1.036 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.3853, allocations: 7.906 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.3854, allocations: 8.375 kB / 1.036 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3854, allocations: 8 kB / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3854, allocations: 64 / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3854, allocations: 4 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.3857, allocations: 177.6 kB / 1.036 GB, free: 14.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.3857, allocations: 0 / 1.036 GB, free: 14.6 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.578e-06/0.3857, allocations: 0 / 1.036 GB, free: 14.6 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3857, allocations: 0 / 1.036 GB, free: 14.6 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.703e-05/0.3857, allocations: 4 kB / 1.036 GB, free: 14.6 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3857, allocations: 3.938 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3857, allocations: 0 / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.3859, allocations: 121.2 kB / 1.036 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.386, allocations: 77.11 kB / 1.037 GB, free: 14.36 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.3861, allocations: 11.98 kB / 1.037 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.404e-05/0.3861, allocations: 0 / 1.037 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.3862, allocations: 7.984 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.3862, allocations: 3.984 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.766e-05/0.3862, allocations: 87.28 kB / 1.037 GB, free: 14.25 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3863, allocations: 0 / 1.037 GB, free: 14.25 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002642/0.3865, allocations: 39.98 kB / 1.037 GB, free: 14.21 MB / 0.795 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.000233/0.3868, allocations: 107.2 kB / 1.037 GB, free: 14.1 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000375/0.3871, allocations: 250.6 kB / 1.037 GB, free: 13.83 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3872, allocations: 0 / 1.037 GB, free: 13.83 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 5.572e-05/0.3872, allocations: 27.98 kB / 1.037 GB, free: 13.8 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.3875, allocations: 17.61 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003851/0.3879, allocations: 175.5 kB / 1.037 GB, free: 13.59 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003043/0.3882, allocations: 0.6887 MB / 1.038 GB, free: 12.88 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.234e-05/0.3882, allocations: 4 kB / 1.038 GB, free: 12.87 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.291e-05/0.3883, allocations: 19.38 kB / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of SimCode: time 5.51e-07/0.3883, allocations: 0 / 1.038 GB, free: 12.85 MB / 0.795 GB Notification: Performance of Templates: time 0.005082/0.3934, allocations: 1.772 MB / 1.04 GB, free: 11.1 MB / 0.795 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