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.001136/0.001136, allocations: 108 kB / 15.6 MB, free: 132 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.001243/0.001243, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.452/1.452, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.475/2.475, allocations: 390.2 MB / 0.6646 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 63.91 kB / 0.8125 GB, free: 14.48 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8764/0.8777, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.002096/0.8799, allocations: 0.6569 MB / 0.9502 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001516/0.8814, allocations: 1.186 MB / 0.9514 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.223e-05/0.8815, allocations: 1.531 kB / 0.9514 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.622e-05/0.8815, allocations: 7.922 kB / 0.9514 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.393e-05/0.8816, allocations: 8.875 kB / 0.9514 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006738/0.8823, allocations: 206.5 kB / 0.9516 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002407/0.8825, allocations: 193.6 kB / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.8827, allocations: 9.297 kB / 0.9518 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.8828, allocations: 68.42 kB / 0.9519 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.8829, allocations: 53.86 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.477e-05/0.8829, allocations: 15.06 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.883, allocations: 30.52 kB / 0.952 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.007e-05/0.8831, allocations: 7.25 kB / 0.952 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.478e-05/0.8832, allocations: 61.31 kB / 0.952 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.8834, allocations: 146.4 kB / 0.9522 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.8834, allocations: 4 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.404e-06/0.8834, allocations: 1.562 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.734e-06/0.8834, allocations: 0 / 0.9522 GB, free: 7.137 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.0006/0.884, allocations: 438.9 kB / 0.9526 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.8841, allocations: 8.562 kB / 0.9526 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.553e-05/0.8842, allocations: 8.438 kB / 0.9526 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.8844, allocations: 182.8 kB / 0.9528 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.8844, allocations: 5.656 kB / 0.9528 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.237e-05/0.8844, allocations: 8.875 kB / 0.9528 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.8846, allocations: 55.95 kB / 0.9528 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.8846, allocations: 192 / 0.9528 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.8846, allocations: 5.469 kB / 0.9529 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.8847, allocations: 0 / 0.9529 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.467e-05/0.8847, allocations: 20.48 kB / 0.9529 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.8853, allocations: 351.4 kB / 0.9532 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.8854, allocations: 37.83 kB / 0.9532 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.865e-05/0.8854, allocations: 19.09 kB / 0.9533 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.8854, allocations: 0 / 0.9533 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002518/0.8857, allocations: 89.05 kB / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.8857, allocations: 0 / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003134/0.886, allocations: 104.9 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.8861, allocations: 56.48 kB / 0.9535 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.8862, allocations: 123.2 kB / 0.9536 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.074e-05/0.8863, allocations: 28.92 kB / 0.9536 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.197e-05/0.8863, allocations: 93.67 kB / 0.9537 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.8864, allocations: 17.92 kB / 0.9538 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.8865, allocations: 48.91 kB / 0.9538 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.861e-05/0.8866, allocations: 319.9 kB / 0.9541 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.8867, allocations: 64.02 kB / 0.9542 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.8869, allocations: 92.33 kB / 0.9543 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.8871, allocations: 165.3 kB / 0.9544 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.8871, allocations: 0 / 0.9544 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004459/0.8876, allocations: 266.8 kB / 0.9547 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.399e-05/0.8876, allocations: 68.45 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.8876, allocations: 1.375 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.8877, allocations: 2.531 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.94e-05/0.8877, allocations: 6.344 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.8877, allocations: 1.25 kB / 0.9547 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003913/0.8881, allocations: 59.91 kB / 0.9548 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.8881, allocations: 13.27 kB / 0.9548 GB, free: 4.641 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 0.0001047/0.8883, allocations: 124.3 kB / 0.9549 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.8883, allocations: 11.02 kB / 0.9549 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.8883, allocations: 9.406 kB / 0.955 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.8883, allocations: 0.9062 kB / 0.955 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.8883, allocations: 1.156 kB / 0.955 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.8883, allocations: 0 / 0.955 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.8885, allocations: 185.7 kB / 0.9551 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.8885, allocations: 4 kB / 0.9551 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.051e-05/0.8885, allocations: 5.125 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.8885, allocations: 1.344 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.8885, allocations: 1.219 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.8885, allocations: 3.938 kB / 0.9551 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.8885, allocations: 0 / 0.9551 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.8887, allocations: 112.8 kB / 0.9553 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.468e-05/0.8887, allocations: 82.47 kB / 0.9553 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.8888, allocations: 6.156 kB / 0.9553 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.039e-05/0.8888, allocations: 3.984 kB / 0.9553 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.8888, allocations: 8.094 kB / 0.9553 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-06/0.8889, allocations: 3.312 kB / 0.9554 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.293e-05/0.8889, allocations: 94.89 kB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8889, allocations: 0 / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002603/0.8892, allocations: 27.72 kB / 0.9555 GB, free: 3.984 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.0001891/0.8894, allocations: 115.2 kB / 0.9556 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003408/0.8897, allocations: 253.5 kB / 0.9558 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.8897, allocations: 0 / 0.9558 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.399e-05/0.8898, allocations: 28.31 kB / 0.9558 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.89, allocations: 18.48 kB / 0.9559 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003917/0.8904, allocations: 164.6 kB / 0.956 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.8906, allocations: 0.69 MB / 0.9567 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.996e-05/0.8906, allocations: 12.73 kB / 0.9567 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.263e-05/0.8907, allocations: 11.06 kB / 0.9567 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of SimCode: time 1.8e-07/0.8907, allocations: 0 / 0.9567 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of Templates: time 0.004855/0.8955, allocations: 1.858 MB / 0.9585 GB, free: 1.84 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