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.001507/0.001507, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001915/0.001916, allocations: 191.4 kB / 16.14 MB, free: 6.691 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.479/1.479, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.522/2.522, allocations: 390.2 MB / 0.6642 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 67.91 kB / 0.8119 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8885/0.8903, allocations: 140.3 MB / 0.9489 GB, free: 9.254 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002066/0.8925, allocations: 0.721 MB / 0.9496 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.8938, allocations: 1.219 MB / 0.9508 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.281e-05/0.8938, allocations: 1.688 kB / 0.9508 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.749e-05/0.8939, allocations: 0 / 0.9508 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.383e-05/0.8939, allocations: 5.25 kB / 0.9508 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.8945, allocations: 195.4 kB / 0.951 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000147/0.8946, allocations: 146.4 kB / 0.9512 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.8947, allocations: 21 kB / 0.9512 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.215e-05/0.8948, allocations: 63.98 kB / 0.9512 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.971e-05/0.8949, allocations: 49.39 kB / 0.9513 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.659e-05/0.895, allocations: 8.25 kB / 0.9513 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.718e-05/0.8951, allocations: 22.98 kB / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.225e-05/0.8951, allocations: 7.781 kB / 0.9513 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.958e-05/0.8952, allocations: 58.53 kB / 0.9514 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.8954, allocations: 137.8 kB / 0.9515 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.8954, allocations: 5.344 kB / 0.9515 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.222e-06/0.8954, allocations: 0 / 0.9515 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.8954, allocations: 0 / 0.9515 GB, free: 7.289 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.0004345/0.8958, allocations: 438.9 kB / 0.9519 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.8959, allocations: 8.719 kB / 0.9519 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.943e-05/0.896, allocations: 9.406 kB / 0.952 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.836e-05/0.896, allocations: 174.6 kB / 0.9521 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.8961, allocations: 12.34 kB / 0.9521 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.8961, allocations: 9.062 kB / 0.9521 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.8962, allocations: 52.33 kB / 0.9522 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.066e-06/0.8962, allocations: 4.172 kB / 0.9522 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.8962, allocations: 8.938 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.8963, allocations: 0.8438 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.209e-05/0.8963, allocations: 21.23 kB / 0.9522 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.8968, allocations: 355 kB / 0.9526 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.279e-05/0.8969, allocations: 33.61 kB / 0.9526 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.925e-05/0.8969, allocations: 26.53 kB / 0.9526 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.8969, allocations: 1.5 kB / 0.9526 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/0.8971, allocations: 79.34 kB / 0.9527 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.8971, allocations: 0 / 0.9527 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002424/0.8973, allocations: 105.9 kB / 0.9528 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.8974, allocations: 56.61 kB / 0.9529 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.117e-05/0.8975, allocations: 122.7 kB / 0.953 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.8975, allocations: 29.7 kB / 0.953 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.8975, allocations: 92.56 kB / 0.9531 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.8976, allocations: 18.08 kB / 0.9531 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.89e-05/0.8977, allocations: 48.75 kB / 0.9531 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.274e-05/0.8977, allocations: 320.3 kB / 0.9535 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.8979, allocations: 60.2 kB / 0.9535 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.898, allocations: 99.77 kB / 0.9536 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.8982, allocations: 157.2 kB / 0.9538 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.8982, allocations: 0 / 0.9538 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004122/0.8986, allocations: 270.4 kB / 0.954 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.659e-05/0.8987, allocations: 69.27 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.8987, allocations: 0.9688 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.8987, allocations: 2.031 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.28e-05/0.8987, allocations: 2.75 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.8987, allocations: 1.219 kB / 0.9541 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.8991, allocations: 55.41 kB / 0.9541 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.8992, allocations: 17.08 kB / 0.9542 GB, free: 4.793 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.614e-05/0.8992, allocations: 127.4 kB / 0.9543 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.493e-05/0.8993, allocations: 14.36 kB / 0.9543 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.8993, allocations: 9.281 kB / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.8993, allocations: 1.188 kB / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.8993, allocations: 0 / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.8993, allocations: 1.25 kB / 0.9543 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.972e-05/0.8994, allocations: 185.3 kB / 0.9545 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.8994, allocations: 4 kB / 0.9545 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.708e-06/0.8995, allocations: 1.406 kB / 0.9545 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.8995, allocations: 0 / 0.9545 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.8995, allocations: 5.438 kB / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.8995, allocations: 1.406 kB / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8995, allocations: 0 / 0.9545 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.8996, allocations: 112.8 kB / 0.9546 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.231e-05/0.8996, allocations: 82.48 kB / 0.9547 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.8997, allocations: 5.656 kB / 0.9547 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.132e-05/0.8997, allocations: 3.984 kB / 0.9547 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.8997, allocations: 5 kB / 0.9547 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.8998, allocations: 6.406 kB / 0.9547 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.555e-05/0.8998, allocations: 94.3 kB / 0.9548 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8998, allocations: 0 / 0.9548 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002475/0.9001, allocations: 28.12 kB / 0.9548 GB, free: 4.133 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.0001495/0.9002, allocations: 102.6 kB / 0.9549 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003423/0.9006, allocations: 253 kB / 0.9552 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9006, allocations: 0.9688 kB / 0.9552 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.33e-05/0.9006, allocations: 32.67 kB / 0.9552 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.9009, allocations: 12.53 kB / 0.9552 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003013/0.9012, allocations: 182.1 kB / 0.9554 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000111/0.9013, allocations: 0.6848 MB / 0.956 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.957e-05/0.9013, allocations: 7.75 kB / 0.956 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.395e-05/0.9014, allocations: 19.61 kB / 0.9561 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of SimCode: time 2.01e-07/0.9014, allocations: 0 / 0.9561 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of Templates: time 0.003999/0.9054, allocations: 1.778 MB / 0.9578 GB, free: 2.027 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/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