Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.006975/0.006975, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001885/0.001885, allocations: 201.5 kB / 16.68 MB, free: 5.969 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.543/1.543, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.963/2.963, allocations: 437 MB / 0.7105 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 67.91 kB / 1.019 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3745, allocations: 151.6 MB / 1.167 GB, free: 6.773 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.001816/0.3763, allocations: 0.6581 MB / 1.167 GB, free: 6.113 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001414/0.3778, allocations: 1.191 MB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.736e-05/0.3778, allocations: 0 / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.822e-05/0.3779, allocations: 7.922 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.777e-05/0.378, allocations: 11.86 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008374/0.3788, allocations: 211.4 kB / 1.169 GB, free: 4.688 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.3792, allocations: 187.7 kB / 1.169 GB, free: 4.504 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.3793, allocations: 19.98 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.3794, allocations: 71.88 kB / 1.169 GB, free: 4.414 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00017/0.3796, allocations: 63.83 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.3796, allocations: 16 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.3798, allocations: 27.98 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.101e-05/0.3798, allocations: 7.938 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.3799, allocations: 63.81 kB / 1.169 GB, free: 4.238 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002905/0.3802, allocations: 151.5 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3802, allocations: 0 / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of FrontEnd: time 4.468e-06/0.3802, allocations: 8 kB / 1.169 GB, free: 4.082 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.227e-06/0.3802, allocations: 0 / 1.169 GB, free: 4.082 MB / 0.92 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.0007403/0.381, allocations: 430.7 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.381, allocations: 8.031 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.725e-05/0.3811, allocations: 12.89 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.3813, allocations: 176.3 kB / 1.17 GB, free: 3.367 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.3813, allocations: 4.375 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.491e-05/0.3813, allocations: 8.375 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.3815, allocations: 54.23 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.3815, allocations: 4.188 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.3815, allocations: 7.875 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.3815, allocations: 0 / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.979e-05/0.3816, allocations: 15.94 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005703/0.3822, allocations: 356.7 kB / 1.17 GB, free: 2.871 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001154/0.3823, allocations: 42.5 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.603e-05/0.3823, allocations: 16.94 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.3824, allocations: 7.938 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.3825, allocations: 83.38 kB / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.894e-06/0.3826, allocations: 0 / 1.17 GB, free: 2.699 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0002978/0.3829, allocations: 101.6 kB / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.3829, allocations: 55.41 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.383, allocations: 121.8 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.3831, allocations: 33.7 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 8.22e-05/0.3832, allocations: 96.09 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.3832, allocations: 15.84 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.864e-05/0.3833, allocations: 49.69 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3834, allocations: 326.8 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.3836, allocations: 59.97 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.3837, allocations: 96.25 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.384, allocations: 159.6 kB / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.384, allocations: 0 / 1.171 GB, free: 1.512 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004051/0.3844, allocations: 249.4 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.3845, allocations: 81.33 kB / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.3845, allocations: 0 / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.3845, allocations: 4 kB / 1.172 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.838e-05/0.3845, allocations: 11.92 kB / 1.172 GB, free: 1.145 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.3846, allocations: 4 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003371/0.3849, allocations: 51.89 kB / 1.172 GB, free: 1.09 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.3849, allocations: 11.98 kB / 1.172 GB, free: 1.078 MB / 0.92 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.0001074/0.3851, allocations: 125.8 kB / 1.172 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.525e-05/0.3851, allocations: 7.953 kB / 1.172 GB, free: 0.9375 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.664e-05/0.3851, allocations: 8.375 kB / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3851, allocations: 0 / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3851, allocations: 0 / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3852, allocations: 0 / 1.172 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.3853, allocations: 185.6 kB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3853, allocations: 3.938 kB / 1.172 GB, free: 0.6914 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.242e-05/0.3854, allocations: 7.938 kB / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.3854, allocations: 4 kB / 1.172 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.198e-06/0.3854, allocations: 0 / 1.172 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3854, allocations: 0 / 1.172 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.3854, allocations: 7.984 kB / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001458/0.3855, allocations: 105 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.446e-05/0.3856, allocations: 89.03 kB / 1.172 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.3856, allocations: 0 / 1.172 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.997e-05/0.3856, allocations: 0 / 1.172 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.3857, allocations: 15.98 kB / 1.172 GB, free: 440 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.3857, allocations: 8.062 kB / 1.172 GB, free: 432 kB / 0.92 GB Notification: Performance of sorting global known variables: time 4.867e-05/0.3858, allocations: 91.27 kB / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3858, allocations: 0 / 1.173 GB, free: 340 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002365/0.386, allocations: 32 kB / 1.173 GB, free: 308 kB / 0.92 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.0002056/0.3862, allocations: 103.2 kB / 1.173 GB, free: 196 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004337/0.3867, allocations: 255 kB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3867, allocations: 4.25 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.901e-05/0.3868, allocations: 27.97 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.387, allocations: 24.14 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003681/0.3874, allocations: 155.7 kB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.3877, allocations: 0.69 MB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.436e-05/0.3878, allocations: 15.97 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.664e-05/0.3878, allocations: 11.44 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.3878, allocations: 0 / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of Templates: time 0.004344/0.3921, allocations: 1.843 MB / 1.176 GB, free: 13.12 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches