Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007957/0.0007996, allocations: 98.88 kB / 16.02 MB, free: 76 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.0009659/0.000966, allocations: 182.5 kB / 16.92 MB, free: 6.918 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.457/1.457, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.802/2.802, allocations: 462.6 MB / 0.737 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003668/0.0003667, allocations: 12.09 kB / 0.9034 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.328, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001059/0.3292, allocations: 437.5 kB / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002005/0.3312, allocations: 1.291 MB / 1.061 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.526e-05/0.3313, allocations: 7.938 kB / 1.061 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.788e-05/0.3313, allocations: 3.938 kB / 1.061 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.3314, allocations: 11.86 kB / 1.061 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000982/0.3324, allocations: 284.1 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000294/0.3327, allocations: 227.6 kB / 1.062 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.3329, allocations: 12.19 kB / 1.062 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.3331, allocations: 87.8 kB / 1.062 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.3332, allocations: 67.83 kB / 1.062 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.185e-05/0.3333, allocations: 12 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001092/0.3334, allocations: 31.92 kB / 1.062 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.697e-05/0.3334, allocations: 11.92 kB / 1.062 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.3336, allocations: 105.4 kB / 1.062 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.3338, allocations: 155.9 kB / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3338, allocations: 0 / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.976e-06/0.3338, allocations: 0 / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.3339, allocations: 0 / 1.062 GB, free: 2.238 MB / 0.8106 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.0006559/0.3345, allocations: 452.4 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.3346, allocations: 11.97 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.742e-05/0.3347, allocations: 16.84 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001546/0.3348, allocations: 176.2 kB / 1.063 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.3349, allocations: 8.375 kB / 1.063 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.335, allocations: 20.36 kB / 1.063 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001545/0.3351, allocations: 62.23 kB / 1.063 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3351, allocations: 3.938 kB / 1.063 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3351, allocations: 0 / 1.063 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.3352, allocations: 0 / 1.063 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.391e-05/0.3352, allocations: 27.91 kB / 1.063 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000635/0.3359, allocations: 416.4 kB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.118e-05/0.336, allocations: 34.56 kB / 1.063 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.81e-05/0.336, allocations: 20.86 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.788e-06/0.336, allocations: 3.938 kB / 1.063 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.3362, allocations: 103.4 kB / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.713e-06/0.3362, allocations: 0 / 1.063 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003721/0.3366, allocations: 141.5 kB / 1.063 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.3367, allocations: 55.48 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.3368, allocations: 140.4 kB / 1.064 GB, free: 380 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.3369, allocations: 29.7 kB / 1.064 GB, free: 344 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.192e-05/0.337, allocations: 100.1 kB / 1.064 GB, free: 240 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.337, allocations: 19.72 kB / 1.064 GB, free: 220 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.24e-05/0.3371, allocations: 29.7 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3372, allocations: 326.8 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.3374, allocations: 87.89 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.3377, allocations: 143.3 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.338, allocations: 240.1 kB / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.338, allocations: 0 / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006313/0.3387, allocations: 384.3 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.664e-05/0.3387, allocations: 101.1 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3388, allocations: 0 / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.757e-05/0.3388, allocations: 4 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.704e-05/0.3388, allocations: 192 / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.3388, allocations: 8 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000625/0.3395, allocations: 119.7 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.601e-05/0.3395, allocations: 15.98 kB / 1.065 GB, free: 14.67 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.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 (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.0001566/0.3397, allocations: 133.7 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.283e-05/0.3397, allocations: 11.91 kB / 1.065 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.728e-05/0.3398, allocations: 12.38 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3398, allocations: 3.984 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.3398, allocations: 0 / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.3398, allocations: 0 / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.34, allocations: 185.6 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.34, allocations: 4 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.435e-05/0.34, allocations: 3.984 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.34, allocations: 0 / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.34, allocations: 8 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.34, allocations: 4.375 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3401, allocations: 0 / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002293/0.3403, allocations: 140.8 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.044e-05/0.3404, allocations: 88.94 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.3404, allocations: 4 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.813e-05/0.3404, allocations: 4 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.3405, allocations: 11.92 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.3405, allocations: 4 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.705e-05/0.3406, allocations: 106.1 kB / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3406, allocations: 0 / 1.066 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002854/0.3409, allocations: 43.98 kB / 1.066 GB, free: 13.82 MB / 0.8262 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 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,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 (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.00018/0.3411, allocations: 99.25 kB / 1.066 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005088/0.3416, allocations: 369.9 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3416, allocations: 384 / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.849e-05/0.3417, allocations: 51.91 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002923/0.342, allocations: 19.98 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004699/0.3425, allocations: 241.2 kB / 1.067 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.3428, allocations: 0.6926 MB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.977e-05/0.3428, allocations: 11.44 kB / 1.067 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.3428, allocations: 0 / 1.067 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of Templates: time 0.004611/0.3475, allocations: 1.862 MB / 1.069 GB, free: 10.4 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches