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.008973/0.008973, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.002079/0.002079, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.424/1.424, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.84/2.84, allocations: 461.8 MB / 0.7348 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001523, allocations: 62.97 kB / 0.8991 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2802, allocations: 157.4 MB / 1.053 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002062/0.2823, allocations: 0.7528 MB / 1.053 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001678/0.284, allocations: 1.303 MB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.792e-05/0.2841, allocations: 0 / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.973e-05/0.2841, allocations: 3.938 kB / 1.055 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.111e-05/0.2842, allocations: 15.92 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008246/0.2851, allocations: 296.7 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.2853, allocations: 219.6 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2854, allocations: 12.19 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.2856, allocations: 91.8 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.2858, allocations: 71.77 kB / 1.055 GB, free: 5.527 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.2858, allocations: 16 kB / 1.055 GB, free: 5.512 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.73e-05/0.2859, allocations: 27.98 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.286, allocations: 11.98 kB / 1.056 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.2861, allocations: 75.73 kB / 1.056 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.2863, allocations: 159.9 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2863, allocations: 4 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.72e-07/0.2863, allocations: 0 / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.2863, allocations: 0 / 1.056 GB, free: 5.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.000594/0.2869, allocations: 0.4885 MB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.2869, allocations: 15.97 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.531e-05/0.287, allocations: 12.84 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.2871, allocations: 172.3 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.2872, allocations: 12.38 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.2872, allocations: 16.38 kB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.2874, allocations: 62.23 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2874, allocations: 7.922 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.2874, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.2874, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.505e-05/0.2875, allocations: 19.98 kB / 1.057 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.2881, allocations: 428.3 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.313e-05/0.2881, allocations: 30.58 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.049e-05/0.2882, allocations: 24.94 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.2882, allocations: 0 / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.2884, allocations: 103.2 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.2884, allocations: 4 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003287/0.2888, allocations: 137.5 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.2888, allocations: 55.41 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.2889, allocations: 129.8 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.289, allocations: 29.7 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.016e-05/0.2891, allocations: 112 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.519e-05/0.2891, allocations: 15.88 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001297/0.2892, allocations: 69.67 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.2894, allocations: 326.8 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002075/0.2896, allocations: 87.95 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002191/0.2898, allocations: 135.6 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.2901, allocations: 232.4 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2901, allocations: 384 / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006037/0.2907, allocations: 382.5 kB / 1.059 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.828e-05/0.2908, allocations: 97.09 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2908, allocations: 3.938 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2908, allocations: 7.938 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.861e-05/0.2909, allocations: 11.98 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2909, allocations: 0 / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005083/0.2914, allocations: 83.88 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-05/0.2915, allocations: 23.98 kB / 1.059 GB, free: 1.621 MB / 0.8106 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.0001318/0.2916, allocations: 133.7 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.804e-05/0.2916, allocations: 7.906 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.85e-05/0.2917, allocations: 8.375 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2917, allocations: 0 / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.2917, allocations: 4 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2917, allocations: 4 kB / 1.059 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.2919, allocations: 197.5 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2919, allocations: 0 / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.166e-05/0.2919, allocations: 0 / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2919, allocations: 0 / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.098e-06/0.2919, allocations: 4 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.2919, allocations: 7.984 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2919, allocations: 0 / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.2921, allocations: 136.9 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.112e-05/0.2922, allocations: 88.95 kB / 1.059 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.2922, allocations: 11.98 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.374e-05/0.2922, allocations: 0 / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.2923, allocations: 7.984 kB / 1.06 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2923, allocations: 8 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.234e-05/0.2924, allocations: 96.67 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2924, allocations: 3.938 kB / 1.06 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000291/0.2927, allocations: 44 kB / 1.06 GB, free: 0.7773 MB / 0.8106 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.0001639/0.2928, allocations: 111.2 kB / 1.06 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004852/0.2933, allocations: 370 kB / 1.06 GB, free: 268 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2934, allocations: 0 / 1.06 GB, free: 268 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.362e-05/0.2934, allocations: 39.92 kB / 1.06 GB, free: 228 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002635/0.2937, allocations: 22.75 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004429/0.2942, allocations: 230.3 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.2944, allocations: 0.6926 MB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.2945, allocations: 19.44 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2945, allocations: 3.938 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of Templates: time 0.003832/0.2983, allocations: 1.869 MB / 1.063 GB, free: 13.35 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