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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 173.3 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9443/0.9443, allocations: 177.1 MB / 203.4 MB, free: 5.664 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.036/2.036, allocations: 429.5 MB / 0.6732 GB, free: 4.055 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.344e-06/2.344e-06, allocations: 0 / 0.8782 GB, free: 6.285 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.136e-05/3.37e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.281 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001579/0.001613, allocations: 0.8058 MB / 0.879 GB, free: 5.504 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.003128, allocations: 1.201 MB / 0.8802 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.53e-05/0.003203, allocations: 0 / 0.8802 GB, free: 4.293 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 4.839e-05/0.003252, allocations: 7.875 kB / 0.8802 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.003357, allocations: 13.06 kB / 0.8802 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006151/0.003972, allocations: 134.9 kB / 0.8803 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.00419, allocations: 131.7 kB / 0.8805 GB, free: 4.016 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.00433, allocations: 11.98 kB / 0.8805 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001575/0.004488, allocations: 71.81 kB / 0.8806 GB, free: 3.934 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.004605, allocations: 43.88 kB / 0.8806 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.004637, allocations: 8 kB / 0.8806 GB, free: 3.883 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 8.515e-05/0.004722, allocations: 27.98 kB / 0.8806 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 3.458e-05/0.004757, allocations: 11.97 kB / 0.8806 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.446e-05/0.004821, allocations: 36.52 kB / 0.8807 GB, free: 3.809 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.005047, allocations: 109.2 kB / 0.8808 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.005051, allocations: 0 / 0.8808 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.082e-06/0.005052, allocations: 0 / 0.8808 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.00506, allocations: 0 / 0.8808 GB, free: 3.703 MB / 0.8386 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.0007081/0.005768, allocations: 439.5 kB / 0.8812 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.005826, allocations: 12.03 kB / 0.8812 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.818e-05/0.005904, allocations: 20.81 kB / 0.8812 GB, free: 3.199 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.006019, allocations: 112.6 kB / 0.8813 GB, free: 3.062 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.006036, allocations: 4.375 kB / 0.8813 GB, free: 3.059 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.186e-05/0.006057, allocations: 8.375 kB / 0.8813 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.006263, allocations: 70.92 kB / 0.8814 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.006274, allocations: 192 / 0.8814 GB, free: 2.973 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.006291, allocations: 8.359 kB / 0.8814 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.006304, allocations: 4.375 kB / 0.8814 GB, free: 2.961 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.25e-05/0.006347, allocations: 11.92 kB / 0.8814 GB, free: 2.949 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004115/0.006758, allocations: 315.6 kB / 0.8817 GB, free: 2.605 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.263e-05/0.006821, allocations: 31.06 kB / 0.8818 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.158e-05/0.006853, allocations: 15.69 kB / 0.8818 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.011e-05/0.006873, allocations: 96 / 0.8818 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000115/0.006988, allocations: 84.97 kB / 0.8819 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.834e-06/0.00699, allocations: 0 / 0.8819 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002129/0.007203, allocations: 77.62 kB / 0.8819 GB, free: 2.363 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.466e-05/0.007237, allocations: 55.41 kB / 0.882 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.139e-05/0.007329, allocations: 181.9 kB / 0.8822 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.007349, allocations: 29.7 kB / 0.8822 GB, free: 2.066 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.007407, allocations: 146.8 kB / 0.8823 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.592e-05/0.007423, allocations: 7.906 kB / 0.8823 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-05/0.007475, allocations: 43.36 kB / 0.8824 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.007594, allocations: 0.4923 MB / 0.8829 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.988e-05/0.007673, allocations: 61.62 kB / 0.8829 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.54e-05/0.007749, allocations: 84.73 kB / 0.883 GB, free: 1.188 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.074e-05/0.00784, allocations: 88.75 kB / 0.8831 GB, free: 1.082 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.007842, allocations: 4 kB / 0.8831 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002194/0.008061, allocations: 193.1 kB / 0.8833 GB, free: 0.8711 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.008096, allocations: 37.7 kB / 0.8833 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.008102, allocations: 0 / 0.8833 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.008115, allocations: 4.062 kB / 0.8833 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000102/0.008217, allocations: 19.98 kB / 0.8833 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.008223, allocations: 0 / 0.8833 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.843e-05/0.008311, allocations: 27.91 kB / 0.8834 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.008326, allocations: 4 kB / 0.8834 GB, free: 0.7734 MB / 0.8386 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 7.896e-05/0.008405, allocations: 168.6 kB / 0.8835 GB, free: 0.5977 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.27e-05/0.008417, allocations: 11.89 kB / 0.8835 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.582e-05/0.008443, allocations: 8.438 kB / 0.8835 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.008445, allocations: 4 kB / 0.8835 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.008449, allocations: 4 kB / 0.8836 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.008452, allocations: 0 / 0.8836 GB, free: 0.5703 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.281e-05/0.008545, allocations: 132.6 kB / 0.8837 GB, free: 416 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.008547, allocations: 0 / 0.8837 GB, free: 416 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.111e-05/0.008588, allocations: 15.94 kB / 0.8837 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.00859, allocations: 0 / 0.8837 GB, free: 400 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.0086, allocations: 7.922 kB / 0.8837 GB, free: 392 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.008601, allocations: 0 / 0.8837 GB, free: 392 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.008602, allocations: 0 / 0.8837 GB, free: 392 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/0.008719, allocations: 104.4 kB / 0.8838 GB, free: 264 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.283e-05/0.008732, allocations: 15.95 kB / 0.8838 GB, free: 248 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.008745, allocations: 3.938 kB / 0.8838 GB, free: 244 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.486e-05/0.00877, allocations: 7.984 kB / 0.8838 GB, free: 236 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.256e-05/0.008813, allocations: 11.98 kB / 0.8838 GB, free: 224 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.008818, allocations: 3.938 kB / 0.8838 GB, free: 220 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.658e-05/0.008865, allocations: 142.5 kB / 0.884 GB, free: 80 kB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.008865, allocations: 0 / 0.884 GB, free: 80 kB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001483/0.009013, allocations: 20 kB / 0.884 GB, free: 60 kB / 0.8386 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.0001764/0.00919, allocations: 103.2 kB / 0.8841 GB, free: 15.95 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002006/0.00939, allocations: 152.8 kB / 0.8842 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.009392, allocations: 0 / 0.8842 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.822e-05/0.00944, allocations: 31.8 kB / 0.8843 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.009613, allocations: 16.06 kB / 0.8843 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003303/0.009943, allocations: 161.9 kB / 0.8844 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.526e-05/0.009978, allocations: 68.33 kB / 0.8845 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.629e-05/0.01, allocations: 4 kB / 0.8845 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.01004, allocations: 12.5 kB / 0.8845 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of SimCode: time 8.92e-07/0.01004, allocations: 0 / 0.8845 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of Templates: time 0.003881/0.01392, allocations: 1.89 MB / 0.8864 GB, free: 13.59 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.390385260805488]