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.LogicalSwitch.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.LogicalSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.419/1.419, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0012/0.0012, allocations: 185.7 kB / 326.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.0008846/0.0008841, allocations: 90.42 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000368/0.000368, allocations: 13.78 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2382, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1752/0.4134, allocations: 131.5 MB / 1.028 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.4138, allocations: 71.95 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003432/0.4172, allocations: 1.154 MB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.895e-06/0.4172, allocations: 0 / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.475e-05/0.4173, allocations: 8 kB / 1.03 GB, free: 11.04 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005918/0.4179, allocations: 403 kB / 1.03 GB, free: 10.6 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4179, allocations: 8.031 kB / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.422e-05/0.418, allocations: 7.906 kB / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.4181, allocations: 186.8 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/0.4182, allocations: 3.984 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.4182, allocations: 4 kB / 1.03 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.4184, allocations: 61.67 kB / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.4184, allocations: 0 / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.4184, allocations: 4 kB / 1.03 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.4184, allocations: 4 kB / 1.03 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.04e-05/0.4185, allocations: 31.92 kB / 1.03 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.4191, allocations: 304.8 kB / 1.031 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.4192, allocations: 54.5 kB / 1.031 GB, free: 9.836 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.4192, allocations: 4 kB / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.4195, allocations: 79.41 kB / 1.031 GB, free: 9.742 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.4195, allocations: 0 / 1.031 GB, free: 9.742 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0002873/0.4198, allocations: 117.5 kB / 1.031 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.4198, allocations: 59.52 kB / 1.031 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.42, allocations: 121.1 kB / 1.031 GB, free: 9.426 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.42, allocations: 33.7 kB / 1.031 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.4201, allocations: 92.12 kB / 1.031 GB, free: 9.293 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.4201, allocations: 15.81 kB / 1.031 GB, free: 9.277 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-06/0.4201, allocations: 4 kB / 1.031 GB, free: 9.273 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4202, allocations: 318.8 kB / 1.032 GB, free: 8.953 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.479e-05/0.4203, allocations: 23.98 kB / 1.032 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.08e-05/0.4204, allocations: 43.42 kB / 1.032 GB, free: 8.875 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.365e-05/0.4204, allocations: 27.94 kB / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.4204, allocations: 0 / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001513/0.4206, allocations: 105.8 kB / 1.032 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.4206, allocations: 6.656 kB / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4206, allocations: 0 / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.4207, allocations: 7.984 kB / 1.032 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.229e-05/0.4207, allocations: 4.094 kB / 1.032 GB, free: 8.723 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.4207, allocations: 11.88 kB / 1.032 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.4209, allocations: 27.94 kB / 1.032 GB, free: 8.684 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.4209, allocations: 8 kB / 1.032 GB, free: 8.676 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 0.0001073/0.421, allocations: 125.8 kB / 1.032 GB, free: 8.543 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.558e-05/0.421, allocations: 7.906 kB / 1.032 GB, free: 8.535 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.24e-05/0.4211, allocations: 8.375 kB / 1.032 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-06/0.4211, allocations: 4 kB / 1.032 GB, free: 8.527 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4211, allocations: 4 kB / 1.032 GB, free: 8.523 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.4211, allocations: 0 / 1.032 GB, free: 8.523 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.4213, allocations: 197.6 kB / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.4213, allocations: 0 / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.097e-06/0.4213, allocations: 0 / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.4213, allocations: 0 / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.4213, allocations: 7.984 kB / 1.032 GB, free: 8.273 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.4213, allocations: 4 kB / 1.032 GB, free: 8.27 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.4213, allocations: 3.984 kB / 1.032 GB, free: 8.266 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001667/0.4215, allocations: 128.9 kB / 1.032 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.58e-05/0.4216, allocations: 81.11 kB / 1.032 GB, free: 8.023 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.4216, allocations: 0 / 1.032 GB, free: 8.023 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.4217, allocations: 19.97 kB / 1.032 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.4218, allocations: 15.98 kB / 1.032 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.4218, allocations: 4 kB / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.045e-05/0.4219, allocations: 103.3 kB / 1.032 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4219, allocations: 0 / 1.032 GB, free: 7.883 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001964/0.4221, allocations: 16 kB / 1.032 GB, free: 7.867 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001645/0.4222, allocations: 113.4 kB / 1.033 GB, free: 7.746 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001517/0.4224, allocations: 55.92 kB / 1.033 GB, free: 7.691 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4224, allocations: 4 kB / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 7.256e-05/0.4225, allocations: 44.33 kB / 1.033 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.4227, allocations: 19.94 kB / 1.033 GB, free: 7.625 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004097/0.4231, allocations: 203.5 kB / 1.033 GB, free: 7.395 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.4234, allocations: 0.7004 MB / 1.034 GB, free: 6.668 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.307e-05/0.4235, allocations: 4.562 kB / 1.034 GB, free: 6.66 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.262e-05/0.4235, allocations: 15.44 kB / 1.034 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of SimCode: time 2.4e-07/0.4235, allocations: 0 / 1.034 GB, free: 6.648 MB / 0.6823 GB Notification: Performance of Templates: time 0.003432/0.427, allocations: 1.037 MB / 1.035 GB, free: 5.625 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_LogicalSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.LogicalSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches