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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00117/0.00117, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 199.7 kB / 16.79 MB, free: 6.809 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.371/1.371, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.464/2.464, allocations: 390.2 MB / 0.6649 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.00155, allocations: 63.91 kB / 0.8125 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7056/0.7072, allocations: 140.3 MB / 0.9496 GB, free: 9.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002082/0.7093, allocations: 0.7236 MB / 0.9503 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.7107, allocations: 1.212 MB / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.679e-05/0.7107, allocations: 1.188 kB / 0.9515 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.007e-05/0.7107, allocations: 3.938 kB / 0.9515 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.38e-05/0.7108, allocations: 5.062 kB / 0.9515 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.7114, allocations: 198.2 kB / 0.9517 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001417/0.7115, allocations: 149.9 kB / 0.9518 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.962e-05/0.7116, allocations: 9.578 kB / 0.9518 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.231e-05/0.7117, allocations: 63.38 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.642e-05/0.7118, allocations: 49.91 kB / 0.9519 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.535e-05/0.7118, allocations: 12.36 kB / 0.952 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.284e-05/0.7119, allocations: 27.3 kB / 0.952 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.002e-05/0.7119, allocations: 3.469 kB / 0.952 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.616e-05/0.712, allocations: 55.05 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.7122, allocations: 103.6 kB / 0.9521 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.7122, allocations: 1.219 kB / 0.9521 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.51e-07/0.7122, allocations: 0 / 0.9521 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.7122, allocations: 0 / 0.9521 GB, free: 7.141 MB / 0.7169 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.0004666/0.7127, allocations: 439 kB / 0.9526 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.7127, allocations: 12.62 kB / 0.9526 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.258e-05/0.7128, allocations: 16.5 kB / 0.9526 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.7129, allocations: 179 kB / 0.9528 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.7129, allocations: 4.562 kB / 0.9528 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.713, allocations: 10.16 kB / 0.9528 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.7131, allocations: 55.94 kB / 0.9528 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.7131, allocations: 192 / 0.9528 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.7131, allocations: 5.25 kB / 0.9528 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.7131, allocations: 0 / 0.9528 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.325e-05/0.7131, allocations: 16.73 kB / 0.9528 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003839/0.7135, allocations: 355.3 kB / 0.9532 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.085e-05/0.7136, allocations: 37.86 kB / 0.9532 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.804e-05/0.7137, allocations: 23.03 kB / 0.9532 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.662e-06/0.7137, allocations: 0 / 0.9532 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001505/0.7138, allocations: 84.59 kB / 0.9533 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.7138, allocations: 7.938 kB / 0.9533 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002357/0.7141, allocations: 100.8 kB / 0.9534 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.7141, allocations: 57.61 kB / 0.9535 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.19e-05/0.7142, allocations: 118.1 kB / 0.9536 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.7142, allocations: 33.95 kB / 0.9536 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.49e-05/0.7143, allocations: 84.73 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.7143, allocations: 18.89 kB / 0.9537 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.201e-05/0.7144, allocations: 47.97 kB / 0.9538 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.398e-05/0.7144, allocations: 324.9 kB / 0.9541 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.7146, allocations: 70.77 kB / 0.9541 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.7147, allocations: 88.17 kB / 0.9542 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.7149, allocations: 163.6 kB / 0.9544 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.7149, allocations: 1.688 kB / 0.9544 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004119/0.7153, allocations: 261.2 kB / 0.9546 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.038e-05/0.7154, allocations: 69.83 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.7154, allocations: 1.688 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.7154, allocations: 1.75 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.143e-05/0.7154, allocations: 2.156 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.7154, allocations: 9.562 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.7158, allocations: 55.38 kB / 0.9548 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.7159, allocations: 13.55 kB / 0.9548 GB, free: 4.637 MB / 0.7169 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 7.495e-05/0.7159, allocations: 122.4 kB / 0.9549 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.446e-05/0.716, allocations: 9.609 kB / 0.9549 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.572e-05/0.716, allocations: 13.84 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.716, allocations: 1.469 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.716, allocations: 0 / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.716, allocations: 1.062 kB / 0.9549 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.385e-05/0.7161, allocations: 184.2 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7161, allocations: 1.188 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.157e-06/0.7161, allocations: 1.375 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.7161, allocations: 0 / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.7161, allocations: 2.781 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.7162, allocations: 0 / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.7162, allocations: 0 / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.7163, allocations: 123.7 kB / 0.9552 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.131e-05/0.7163, allocations: 79.95 kB / 0.9553 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.7163, allocations: 1.438 kB / 0.9553 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.144e-05/0.7164, allocations: 3.984 kB / 0.9553 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.624e-05/0.7164, allocations: 8.094 kB / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.7164, allocations: 2.469 kB / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.421e-05/0.7165, allocations: 95.95 kB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7165, allocations: 0 / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002417/0.7167, allocations: 30.97 kB / 0.9554 GB, free: 3.98 MB / 0.7169 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.0001607/0.7169, allocations: 110.9 kB / 0.9555 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003308/0.7172, allocations: 249.9 kB / 0.9558 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.7172, allocations: 0 / 0.9558 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.639e-05/0.7173, allocations: 38.12 kB / 0.9558 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.7175, allocations: 23.47 kB / 0.9558 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.7179, allocations: 198.3 kB / 0.956 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001339/0.718, allocations: 0.6835 MB / 0.9567 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.375e-05/0.718, allocations: 11.56 kB / 0.9567 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of SimCode: time 3.81e-07/0.718, allocations: 4 kB / 0.9567 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of Templates: time 0.003028/0.7211, allocations: 1.387 MB / 0.9581 GB, free: 2.035 MB / 0.7169 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/jenkins1/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