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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 108 kB / 15.6 MB, free: 132 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.00155/0.00155, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.696/2.696, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 71.62 kB / 0.8992 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3055, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001786/0.3073, allocations: 0.782 MB / 1.054 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00122/0.3086, allocations: 1.162 MB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.603e-05/0.3086, allocations: 0 / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.577e-05/0.3087, allocations: 3.938 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.345e-05/0.3087, allocations: 15.84 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004124/0.3092, allocations: 134.4 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.3093, allocations: 131.8 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.434e-05/0.3094, allocations: 15.98 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.301e-05/0.3095, allocations: 59.83 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.133e-05/0.3096, allocations: 43.83 kB / 1.055 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.3096, allocations: 12 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.837e-05/0.3097, allocations: 27.98 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.3097, allocations: 15.91 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.015e-05/0.3098, allocations: 51.78 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001511/0.3099, allocations: 112 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3099, allocations: 0 / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3099, allocations: 0 / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.31, allocations: 0 / 1.055 GB, free: 5.688 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.0005511/0.3105, allocations: 428.9 kB / 1.056 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.3105, allocations: 12.62 kB / 1.056 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.679e-05/0.3106, allocations: 34.73 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.3106, allocations: 12.84 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.08e-05/0.3107, allocations: 172.3 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3107, allocations: 4.375 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.3108, allocations: 4.375 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002415/0.311, allocations: 78.2 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.395e-06/0.311, allocations: 7.938 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.311, allocations: 7.938 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3111, allocations: 0 / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002818/0.3113, allocations: 67.92 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000376/0.3117, allocations: 332.6 kB / 1.057 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.3119, allocations: 54.53 kB / 1.057 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.3121, allocations: 44.86 kB / 1.057 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.3121, allocations: 0 / 1.057 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002473/0.3123, allocations: 95.34 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.3124, allocations: 3.938 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005476/0.3129, allocations: 165.7 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.3129, allocations: 63.33 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.751e-05/0.313, allocations: 121.7 kB / 1.057 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.3131, allocations: 29.7 kB / 1.057 GB, free: 3.766 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.285e-05/0.3131, allocations: 100 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.3131, allocations: 15.81 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.425e-05/0.3132, allocations: 37.7 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.105e-05/0.3133, allocations: 318.8 kB / 1.058 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.3135, allocations: 68.02 kB / 1.058 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.3137, allocations: 78.52 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.3141, allocations: 152.2 kB / 1.058 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3141, allocations: 4.078 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004809/0.3146, allocations: 207.2 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.906e-05/0.3146, allocations: 37.69 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3146, allocations: 4.062 kB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.3146, allocations: 4 kB / 1.058 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.3147, allocations: 19.98 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3148, allocations: 0 / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.315, allocations: 43.84 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.315, allocations: 4 kB / 1.058 GB, free: 2.633 MB / 0.8106 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.741e-05/0.3151, allocations: 121.8 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.3151, allocations: 7.906 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.699e-05/0.3152, allocations: 16.36 kB / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3152, allocations: 0 / 1.058 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3152, allocations: 3.938 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3152, allocations: 3.984 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.3153, allocations: 185.6 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3153, allocations: 0 / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.893e-05/0.3154, allocations: 19.97 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3154, allocations: 0 / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3154, allocations: 4 kB / 1.058 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3154, allocations: 4 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3154, allocations: 0 / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003594/0.3158, allocations: 152.9 kB / 1.059 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.934e-05/0.3158, allocations: 77.11 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.3159, allocations: 7.938 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.178e-05/0.316, allocations: 11.98 kB / 1.059 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/0.316, allocations: 11.98 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.858e-06/0.316, allocations: 4.125 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.553e-05/0.3161, allocations: 99.2 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3161, allocations: 0 / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002562/0.3163, allocations: 20 kB / 1.059 GB, free: 1.797 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: 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.0006217/0.317, allocations: 0.6943 MB / 1.06 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004434/0.3174, allocations: 199.2 kB / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3174, allocations: 0 / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.3176, allocations: 43.97 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001936/0.3178, allocations: 19.86 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00193/0.3197, allocations: 1.622 MB / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.3199, allocations: 0.6905 MB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.487e-05/0.32, allocations: 4 kB / 1.062 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.32, allocations: 31.42 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.32, allocations: 0 / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/0.4205, allocations: 2.635 MB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.773/8.194, allocations: 4.062 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Switch.fmu > 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