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.001299/0.001299, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001538/0.001538, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.483/2.483, allocations: 390.2 MB / 0.6653 GB, free: 2.977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003233/0.0003236, allocations: 16 kB / 0.8145 GB, free: 14.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8808/0.8811, allocations: 142.3 MB / 0.9535 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Xor): time 0.0009961/0.8822, allocations: 377.6 kB / 0.9539 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.8837, allocations: 1.135 MB / 0.955 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.156e-05/0.8837, allocations: 0 / 0.955 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.8838, allocations: 0 / 0.955 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.19e-05/0.8839, allocations: 10.47 kB / 0.955 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006827/0.8845, allocations: 198.6 kB / 0.9552 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.8847, allocations: 82.72 kB / 0.9553 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.8848, allocations: 12.3 kB / 0.9553 GB, free: 6.91 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.8849, allocations: 59.47 kB / 0.9553 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.8851, allocations: 41.75 kB / 0.9554 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.8851, allocations: 8.469 kB / 0.9554 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.064e-05/0.8852, allocations: 29.5 kB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.181e-05/0.8852, allocations: 3.188 kB / 0.9554 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.944e-05/0.8853, allocations: 41.39 kB / 0.9555 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.8854, allocations: 104.4 kB / 0.9556 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.8855, allocations: 4 kB / 0.9556 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.454e-06/0.8855, allocations: 0 / 0.9556 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.8855, allocations: 0 / 0.9556 GB, free: 6.723 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.0004517/0.8859, allocations: 412.7 kB / 0.956 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.886, allocations: 8.688 kB / 0.956 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.75e-05/0.8861, allocations: 19.95 kB / 0.956 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.8862, allocations: 165.4 kB / 0.9561 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.8862, allocations: 4.938 kB / 0.9561 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.637e-05/0.8862, allocations: 12.97 kB / 0.9562 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.8864, allocations: 55.05 kB / 0.9562 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.8864, allocations: 3.984 kB / 0.9562 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.8864, allocations: 1.031 kB / 0.9562 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.8864, allocations: 0 / 0.9562 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.243e-05/0.8865, allocations: 20.97 kB / 0.9562 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005369/0.887, allocations: 356.2 kB / 0.9566 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.854e-05/0.8871, allocations: 41.02 kB / 0.9566 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.8872, allocations: 0 / 0.9566 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/0.8873, allocations: 88.56 kB / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.8874, allocations: 0 / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003156/0.8877, allocations: 104.2 kB / 0.9568 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.8877, allocations: 53.62 kB / 0.9569 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.8878, allocations: 117.9 kB / 0.957 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.8879, allocations: 38.17 kB / 0.957 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.048e-05/0.888, allocations: 92.77 kB / 0.9571 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.888, allocations: 10.52 kB / 0.9571 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.888, allocations: 7.188 kB / 0.9571 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.367e-05/0.8881, allocations: 317 kB / 0.9574 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.8882, allocations: 59.28 kB / 0.9575 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.8884, allocations: 98.38 kB / 0.9576 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.8886, allocations: 114.3 kB / 0.9577 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.8886, allocations: 0 / 0.9577 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004231/0.889, allocations: 258.3 kB / 0.9579 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.266e-05/0.8891, allocations: 68.77 kB / 0.958 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.8891, allocations: 1.5 kB / 0.958 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.8891, allocations: 10.02 kB / 0.958 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.848e-05/0.8891, allocations: 2.938 kB / 0.958 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.8892, allocations: 5.406 kB / 0.958 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004463/0.8896, allocations: 87.77 kB / 0.9581 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/0.8897, allocations: 11.81 kB / 0.9581 GB, free: 4.328 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,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,xor1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.8898, allocations: 128.6 kB / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.8898, allocations: 3.469 kB / 0.9582 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.8898, allocations: 12.31 kB / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.8898, allocations: 1.531 kB / 0.9582 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.8899, allocations: 7.953 kB / 0.9582 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.8899, allocations: 1.031 kB / 0.9582 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.89, allocations: 177.6 kB / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.89, allocations: 0 / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.696e-06/0.89, allocations: 1.469 kB / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.89, allocations: 0 / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.89, allocations: 1.531 kB / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.8901, allocations: 1.469 kB / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.8901, allocations: 0 / 0.9584 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.8902, allocations: 127.6 kB / 0.9585 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.351e-05/0.8903, allocations: 83.7 kB / 0.9586 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.8903, allocations: 3.984 kB / 0.9586 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.982e-05/0.8903, allocations: 1.219 kB / 0.9586 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.349e-05/0.8904, allocations: 12.58 kB / 0.9586 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.996e-06/0.8904, allocations: 2.5 kB / 0.9586 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.419e-05/0.8904, allocations: 94.19 kB / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8905, allocations: 0 / 0.9587 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002521/0.8907, allocations: 27.81 kB / 0.9588 GB, free: 3.668 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002246/0.8909, allocations: 106.6 kB / 0.9589 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003652/0.8913, allocations: 244.7 kB / 0.9591 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.8913, allocations: 0 / 0.9591 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.83e-05/0.8914, allocations: 33.67 kB / 0.9591 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.8916, allocations: 10.86 kB / 0.9591 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003931/0.892, allocations: 171.2 kB / 0.9593 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.8922, allocations: 0.6905 MB / 0.96 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.187e-05/0.8922, allocations: 11.89 kB / 0.96 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.972e-05/0.8923, allocations: 11.84 kB / 0.96 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8923, allocations: 0 / 0.96 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of Templates: time 0.004821/0.8971, allocations: 1.703 MB / 0.9617 GB, free: 1.617 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches