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.Switch.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.Switch,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.Switch") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,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.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 251.9 MB / 266.9 MB, free: 10.97 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.001153/0.001153, allocations: 188.1 kB / 326.5 MB, free: 2.199 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.075/2.075, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0008733/0.0008731, allocations: 100.3 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003416, allocations: 15.31 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2423, allocations: 106.3 MB / 0.9001 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1803/0.4227, allocations: 131.7 MB / 1.029 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002532/0.423, allocations: 71.95 kB / 1.029 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003153/0.4262, allocations: 1.11 MB / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.903e-06/0.4262, allocations: 0 / 1.03 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.4262, allocations: 4 kB / 1.03 GB, free: 10.77 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000569/0.4268, allocations: 395.1 kB / 1.03 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.4268, allocations: 8.031 kB / 1.03 GB, free: 10.32 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.4269, allocations: 11.91 kB / 1.03 GB, free: 10.31 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.427, allocations: 186.7 kB / 1.03 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.4271, allocations: 8 kB / 1.03 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.4271, allocations: 3.938 kB / 1.03 GB, free: 10.08 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.4274, allocations: 89.64 kB / 1.031 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.4274, allocations: 0 / 1.031 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.4274, allocations: 0 / 1.031 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.4274, allocations: 8 kB / 1.031 GB, free: 9.977 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.4277, allocations: 95.92 kB / 1.031 GB, free: 9.883 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004767/0.4282, allocations: 288.8 kB / 1.031 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.4285, allocations: 74.53 kB / 1.031 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.4285, allocations: 0 / 1.031 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.4288, allocations: 103.4 kB / 1.031 GB, free: 9.355 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 1.232e-06/0.4288, allocations: 0 / 1.031 GB, free: 9.355 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0005775/0.4294, allocations: 185.5 kB / 1.031 GB, free: 9.168 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.4294, allocations: 51.41 kB / 1.031 GB, free: 9.105 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.108e-05/0.4295, allocations: 116.9 kB / 1.031 GB, free: 8.984 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.4296, allocations: 29.7 kB / 1.031 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.3e-05/0.4296, allocations: 92.12 kB / 1.032 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.4297, allocations: 19.81 kB / 1.032 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.213e-06/0.4297, allocations: 4 kB / 1.032 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.4298, allocations: 318.8 kB / 1.032 GB, free: 8.512 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.43, allocations: 47.97 kB / 1.032 GB, free: 8.465 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.4301, allocations: 61.67 kB / 1.032 GB, free: 8.398 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.4303, allocations: 55.89 kB / 1.032 GB, free: 8.344 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.113e-06/0.4303, allocations: 0 / 1.032 GB, free: 8.344 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003462/0.4307, allocations: 141.5 kB / 1.032 GB, free: 8.199 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.4307, allocations: 4 kB / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4307, allocations: 0 / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.4307, allocations: 0 / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.4309, allocations: 31.95 kB / 1.032 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.4309, allocations: 3.938 kB / 1.032 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.431, allocations: 23.97 kB / 1.032 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.431, allocations: 11.95 kB / 1.032 GB, free: 8.125 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.007e-05/0.4311, allocations: 113.8 kB / 1.032 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/0.4311, allocations: 7.906 kB / 1.032 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.865e-05/0.4312, allocations: 16.67 kB / 1.032 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.4312, allocations: 0 / 1.032 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4312, allocations: 0 / 1.032 GB, free: 7.98 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.4312, allocations: 4 kB / 1.032 GB, free: 7.977 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.4314, allocations: 177.6 kB / 1.033 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4314, allocations: 7.922 kB / 1.033 GB, free: 7.746 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.4315, allocations: 31.97 kB / 1.033 GB, free: 7.715 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.4315, allocations: 0 / 1.033 GB, free: 7.715 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.4315, allocations: 0 / 1.033 GB, free: 7.715 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4315, allocations: 4 kB / 1.033 GB, free: 7.711 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.4316, allocations: 0 / 1.033 GB, free: 7.711 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.4319, allocations: 172.8 kB / 1.033 GB, free: 7.523 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.432, allocations: 81.02 kB / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.432, allocations: 0 / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.4321, allocations: 27.97 kB / 1.033 GB, free: 7.398 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.4322, allocations: 11.98 kB / 1.033 GB, free: 7.387 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.4322, allocations: 4 kB / 1.033 GB, free: 7.383 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.037e-05/0.4323, allocations: 91.27 kB / 1.033 GB, free: 7.293 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4323, allocations: 0 / 1.033 GB, free: 7.293 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001964/0.4325, allocations: 16 kB / 1.033 GB, free: 7.277 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: 3 ($whenCondition1,booPul.y,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001468/0.4326, allocations: 99.25 kB / 1.033 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00037/0.433, allocations: 111.9 kB / 1.033 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.433, allocations: 0 / 1.033 GB, free: 7.059 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.4332, allocations: 55.95 kB / 1.033 GB, free: 7.004 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001873/0.4334, allocations: 25.39 kB / 1.033 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/0.4338, allocations: 182.4 kB / 1.033 GB, free: 6.777 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.434, allocations: 0.6965 MB / 1.034 GB, free: 6.055 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.031e-05/0.4341, allocations: 4.188 kB / 1.034 GB, free: 6.047 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.4341, allocations: 7.438 kB / 1.034 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of SimCode: time 2.11e-07/0.4341, allocations: 0 / 1.034 GB, free: 6.039 MB / 0.6823 GB Notification: Performance of Templates: time 0.002934/0.4371, allocations: 0.8245 MB / 1.035 GB, free: 5.23 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches