Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.562/1.562, allocations: 249.5 MB / 257 MB, free: 6.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00119/0.00119, allocations: 187.8 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.3 MB / 0.5671 GB, free: 15.8 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008942/0.0008942, allocations: 95.62 kB / 0.6714 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.584e-05/1.585e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2461, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8272/1.073, allocations: 131.6 MB / 1.014 GB, free: 6.094 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/1.074, allocations: 68.03 kB / 1.014 GB, free: 6.059 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002444/1.076, allocations: 0.9135 MB / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.593e-06/1.076, allocations: 0 / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.392e-06/1.076, allocations: 0 / 1.015 GB, free: 5.227 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004487/1.077, allocations: 345.9 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.501e-05/1.077, allocations: 12.03 kB / 1.015 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/1.077, allocations: 7.906 kB / 1.015 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001567/1.077, allocations: 174.2 kB / 1.015 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/1.077, allocations: 4 kB / 1.015 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/1.077, allocations: 0 / 1.015 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.605e-05/1.077, allocations: 26.42 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.301e-05/1.077, allocations: 52.55 kB / 1.015 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/1.077, allocations: 0 / 1.015 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/1.077, allocations: 0 / 1.015 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/1.077, allocations: 4 kB / 1.015 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004031/1.078, allocations: 255.7 kB / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.173e-05/1.078, allocations: 41.02 kB / 1.016 GB, free: 4.23 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.391e-05/1.078, allocations: 16.3 kB / 1.016 GB, free: 4.215 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/1.078, allocations: 6.625 kB / 1.016 GB, free: 4.211 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001172/1.078, allocations: 72.36 kB / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/1.078, allocations: 4 kB / 1.016 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001547/1.078, allocations: 64.44 kB / 1.016 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/1.078, allocations: 55.47 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.764e-05/1.078, allocations: 111.8 kB / 1.016 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/1.078, allocations: 25.7 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.182e-05/1.078, allocations: 83.58 kB / 1.016 GB, free: 3.781 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.948e-05/1.078, allocations: 11.66 kB / 1.016 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/1.078, allocations: 0 / 1.016 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002105/1.079, allocations: 326 kB / 1.016 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.018e-05/1.079, allocations: 11.12 kB / 1.016 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.537e-05/1.079, allocations: 36.77 kB / 1.016 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.751e-05/1.079, allocations: 11.17 kB / 1.016 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/1.079, allocations: 0 / 1.016 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001059/1.079, allocations: 75.62 kB / 1.016 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/1.079, allocations: 8.062 kB / 1.017 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/1.079, allocations: 4 kB / 1.017 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/1.079, allocations: 192 / 1.017 GB, free: 3.312 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.409e-05/1.079, allocations: 4 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/1.079, allocations: 3.938 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.025e-05/1.079, allocations: 15.98 kB / 1.017 GB, free: 3.289 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/1.079, allocations: 0 / 1.017 GB, free: 3.289 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,xor1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 9.799e-05/1.079, allocations: 119.5 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/1.079, allocations: 15.09 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/1.079, allocations: 11.8 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/1.079, allocations: 0 / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/1.079, allocations: 0.6875 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/1.079, allocations: 7.984 kB / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/1.079, allocations: 152.6 kB / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.079, allocations: 0 / 1.017 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.17e-05/1.079, allocations: 3.984 kB / 1.017 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.239e-06/1.079, allocations: 5.875 kB / 1.017 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/1.079, allocations: 0 / 1.017 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/1.079, allocations: 4 kB / 1.017 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.079, allocations: 0 / 1.017 GB, free: 2.945 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000122/1.08, allocations: 95.42 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.423e-05/1.08, allocations: 81.06 kB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/1.08, allocations: 3.562 kB / 1.017 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.324e-05/1.08, allocations: 19.97 kB / 1.017 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.216e-05/1.08, allocations: 11.98 kB / 1.017 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-06/1.08, allocations: 7.938 kB / 1.017 GB, free: 2.707 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.671e-05/1.08, allocations: 85.59 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.71e-07/1.08, allocations: 4 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001753/1.08, allocations: 8 kB / 1.017 GB, free: 2.617 MB / 0.6355 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 ($whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,xor1.y) * Number of discrete 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.0001488/1.08, allocations: 102 kB / 1.017 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001183/1.08, allocations: 43.8 kB / 1.017 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/1.08, allocations: 4.125 kB / 1.017 GB, free: 2.477 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.648e-05/1.08, allocations: 23.19 kB / 1.017 GB, free: 2.457 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/1.081, allocations: 13.36 kB / 1.017 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002483/1.081, allocations: 89.06 kB / 1.017 GB, free: 2.344 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/1.081, allocations: 0.6885 MB / 1.018 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.78e-05/1.081, allocations: 15.84 kB / 1.018 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.779e-05/1.081, allocations: 11.44 kB / 1.018 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/1.081, allocations: 0 / 1.018 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of Templates: time 0.002705/1.084, allocations: 0.7219 MB / 1.019 GB, free: 0.8984 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Xor.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Xor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches