Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 106.5 kB / 16.41 MB, free: 5.977 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.001255/0.001255, allocations: 186 kB / 17.34 MB, free: 5.586 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.426/1.426, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.649/2.649, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001435, allocations: 71.89 kB / 1.055 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8368/0.8382, allocations: 157.4 MB / 1.208 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002222/0.8405, allocations: 0.7857 MB / 1.209 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001647/0.8422, allocations: 1.151 MB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.941e-05/0.8423, allocations: 0 / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.818e-05/0.8423, allocations: 3.938 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.8424, allocations: 19.86 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.8431, allocations: 143.2 kB / 1.211 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002218/0.8433, allocations: 135.8 kB / 1.211 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.8434, allocations: 19.89 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.8436, allocations: 51.89 kB / 1.211 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.8437, allocations: 55.8 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.8437, allocations: 12 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.802e-05/0.8438, allocations: 23.98 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.683e-05/0.8439, allocations: 11.94 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.964e-05/0.8439, allocations: 43.84 kB / 1.211 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.8441, allocations: 123.6 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8442, allocations: 0 / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8442, allocations: 4 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.8442, allocations: 0 / 1.211 GB, free: 10.98 MB / 0.9356 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.0006802/0.8449, allocations: 422.7 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.8449, allocations: 8.031 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.119e-05/0.845, allocations: 12.84 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.8451, allocations: 180.2 kB / 1.212 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.8451, allocations: 4.359 kB / 1.212 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.624e-05/0.8452, allocations: 12.38 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.8454, allocations: 78.2 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.8455, allocations: 192 / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.8455, allocations: 3.938 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.8455, allocations: 4 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003044/0.8458, allocations: 63.92 kB / 1.212 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004652/0.8463, allocations: 336.7 kB / 1.212 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.8465, allocations: 54.53 kB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.8467, allocations: 44.91 kB / 1.212 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.8467, allocations: 4 kB / 1.212 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003131/0.847, allocations: 99.28 kB / 1.212 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 3.437e-06/0.847, allocations: 0 / 1.212 GB, free: 9.512 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0006169/0.8476, allocations: 165.4 kB / 1.212 GB, free: 9.344 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.8477, allocations: 51.41 kB / 1.212 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.8478, allocations: 122 kB / 1.213 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.974e-05/0.8478, allocations: 37.69 kB / 1.213 GB, free: 9.105 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.663e-05/0.8479, allocations: 92.05 kB / 1.213 GB, free: 9.012 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/0.8479, allocations: 15.81 kB / 1.213 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.76e-05/0.848, allocations: 29.7 kB / 1.213 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.8481, allocations: 326.8 kB / 1.213 GB, free: 8.633 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002161/0.8483, allocations: 59.94 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.8486, allocations: 86.41 kB / 1.213 GB, free: 8.48 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.8489, allocations: 144.2 kB / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.849, allocations: 0 / 1.213 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005297/0.8495, allocations: 215.2 kB / 1.214 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.8495, allocations: 37.7 kB / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.8495, allocations: 0 / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.8496, allocations: 0 / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.8497, allocations: 23.91 kB / 1.214 GB, free: 8.035 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.8497, allocations: 4.062 kB / 1.214 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.85, allocations: 35.95 kB / 1.214 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.85, allocations: 8 kB / 1.214 GB, free: 7.988 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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 9.892e-05/0.8501, allocations: 133.7 kB / 1.214 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.8501, allocations: 3.906 kB / 1.214 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.564e-05/0.8502, allocations: 8.375 kB / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.8502, allocations: 0 / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.8502, allocations: 0 / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.8502, allocations: 0 / 1.214 GB, free: 7.832 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.8503, allocations: 190 kB / 1.214 GB, free: 7.598 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.8503, allocations: 3.984 kB / 1.214 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.8504, allocations: 19.98 kB / 1.214 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.8505, allocations: 3.984 kB / 1.214 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.948e-06/0.8505, allocations: 8 kB / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.8505, allocations: 0 / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.8505, allocations: 0 / 1.214 GB, free: 7.562 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000388/0.8509, allocations: 156.8 kB / 1.214 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.8509, allocations: 81.02 kB / 1.214 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.309e-05/0.851, allocations: 4 kB / 1.214 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.648e-05/0.8511, allocations: 19.91 kB / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.174e-05/0.8511, allocations: 4 kB / 1.214 GB, free: 7.266 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.8511, allocations: 4 kB / 1.214 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.522e-05/0.8512, allocations: 94.77 kB / 1.214 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8512, allocations: 0 / 1.214 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002284/0.8514, allocations: 31.98 kB / 1.214 GB, free: 7.141 MB / 0.9356 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,$whenCondition2,booPul.y) * 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 (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.000191/0.8516, allocations: 103.2 kB / 1.214 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004902/0.8521, allocations: 191.2 kB / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.8521, allocations: 0 / 1.215 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001873/0.8523, allocations: 52.08 kB / 1.215 GB, free: 6.781 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.8526, allocations: 23.91 kB / 1.215 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/0.853, allocations: 187.7 kB / 1.215 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002213/0.8532, allocations: 0.6846 MB / 1.216 GB, free: 5.832 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.885e-05/0.8533, allocations: 11.44 kB / 1.216 GB, free: 5.82 MB / 0.9356 GB Notification: Performance of SimCode: time 2.11e-07/0.8533, allocations: 4 kB / 1.216 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of Templates: time 0.002979/0.8563, allocations: 1.312 MB / 1.217 GB, free: 4.523 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches