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.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.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.001099/0.001099, allocations: 99.7 kB / 15.05 MB, free: 1.105 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: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.676/2.676, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003463/0.0003464, allocations: 15.98 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.881/0.8813, allocations: 153.6 MB / 1.021 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001102/0.8825, allocations: 0.4949 MB / 1.021 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.8839, allocations: 1.113 MB / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.155e-05/0.884, allocations: 0 / 1.022 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.707e-05/0.884, allocations: 7.922 kB / 1.022 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.106e-05/0.8841, allocations: 15.92 kB / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004834/0.8846, allocations: 114.8 kB / 1.023 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.8847, allocations: 67.91 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.669e-05/0.8848, allocations: 11.97 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.8849, allocations: 43.91 kB / 1.023 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.129e-05/0.885, allocations: 47.75 kB / 1.023 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.8851, allocations: 8 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.421e-05/0.8851, allocations: 19.98 kB / 1.023 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.876e-05/0.8852, allocations: 3.984 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.147e-05/0.8852, allocations: 41.64 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.8854, allocations: 83.8 kB / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.8854, allocations: 0 / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.924e-06/0.8854, allocations: 0 / 1.023 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.8854, allocations: 0 / 1.023 GB, free: 15.04 MB / 0.7794 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.0006535/0.8861, allocations: 418.8 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.8861, allocations: 15.98 kB / 1.023 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/0.8862, allocations: 15.91 kB / 1.023 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.8863, allocations: 167 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.8863, allocations: 4 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.8863, allocations: 7.953 kB / 1.023 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.8866, allocations: 101.6 kB / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.8866, allocations: 0 / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.8867, allocations: 0 / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.8867, allocations: 0 / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.887, allocations: 91.92 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004902/0.8875, allocations: 328.7 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.8877, allocations: 74.47 kB / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.8878, allocations: 0 / 1.024 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002677/0.888, allocations: 107.4 kB / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.888, allocations: 0 / 1.024 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006412/0.8887, allocations: 193.4 kB / 1.024 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.235e-05/0.8887, allocations: 63.41 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.8889, allocations: 128.1 kB / 1.024 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.8889, allocations: 25.7 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.889, allocations: 88.14 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.386e-05/0.889, allocations: 23.8 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.433e-05/0.889, allocations: 0 / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.8892, allocations: 326.7 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.8894, allocations: 71.94 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.8896, allocations: 98.45 kB / 1.025 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002188/0.8898, allocations: 93.67 kB / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.8898, allocations: 0 / 1.025 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005422/0.8904, allocations: 243.2 kB / 1.025 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.8905, allocations: 33.69 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.8905, allocations: 4 kB / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.8905, allocations: 0 / 1.025 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.8906, allocations: 23.92 kB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.8906, allocations: 0 / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002706/0.8909, allocations: 67.84 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.535e-05/0.891, allocations: 4 kB / 1.026 GB, free: 12.03 MB / 0.7794 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,$PRE.booPul.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001247/0.8911, allocations: 125.8 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.375e-05/0.8911, allocations: 4 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.76e-05/0.8912, allocations: 16.36 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.8912, allocations: 4 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.8912, allocations: 0 / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.257e-06/0.8912, allocations: 0 / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.8913, allocations: 185.5 kB / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.8913, allocations: 0 / 1.026 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.8915, allocations: 23.97 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.8915, allocations: 320 / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.8915, allocations: 8 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.8915, allocations: 4 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.8915, allocations: 3.938 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003846/0.8919, allocations: 169 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.332e-05/0.8919, allocations: 84.97 kB / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.892, allocations: 0 / 1.026 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.041e-05/0.8921, allocations: 23.97 kB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.8921, allocations: 7.984 kB / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.8921, allocations: 0 / 1.026 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.192e-05/0.8922, allocations: 99.27 kB / 1.026 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.8922, allocations: 0 / 1.026 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002093/0.8924, allocations: 20 kB / 1.026 GB, free: 11.17 MB / 0.7794 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 (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.0001798/0.8926, allocations: 107.2 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000489/0.8931, allocations: 211.2 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.8931, allocations: 8.125 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.8933, allocations: 55.91 kB / 1.027 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001724/0.8935, allocations: 12.08 kB / 1.027 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003435/0.8938, allocations: 182.6 kB / 1.027 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.8941, allocations: 0.6887 MB / 1.028 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.884e-05/0.8941, allocations: 8.188 kB / 1.028 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.6e-05/0.8942, allocations: 7.438 kB / 1.028 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.8942, allocations: 4 kB / 1.028 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of Templates: time 0.003925/0.8981, allocations: 1.34 MB / 1.029 GB, free: 8.5 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches