Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_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.001297/0.001297, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001435/0.001436, allocations: 195.1 kB / 16.14 MB, free: 6.656 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.213/1.213, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.397/2.397, allocations: 461.8 MB / 0.7342 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.84 kB / 0.8985 GB, free: 37.01 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2687, allocations: 157.4 MB / 1.052 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001869/0.2706, allocations: 0.8897 MB / 1.053 GB, free: 7.363 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001453/0.272, allocations: 1.326 MB / 1.054 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.973e-05/0.2721, allocations: 0 / 1.054 GB, free: 6.023 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.2722, allocations: 7.875 kB / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.386e-05/0.2722, allocations: 27.84 kB / 1.054 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006881/0.2729, allocations: 298.2 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002132/0.2731, allocations: 255.5 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.2733, allocations: 45.38 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.2734, allocations: 99.8 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.2735, allocations: 91.62 kB / 1.055 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.287e-05/0.2735, allocations: 16 kB / 1.055 GB, free: 5.211 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.648e-05/0.2736, allocations: 31.98 kB / 1.055 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.424e-05/0.2737, allocations: 19.86 kB / 1.055 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.2738, allocations: 95.66 kB / 1.055 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.274, allocations: 259.5 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2741, allocations: 0 / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.21e-07/0.2741, allocations: 0 / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.2741, allocations: 0 / 1.056 GB, free: 4.812 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006058/0.2747, allocations: 0.521 MB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.2747, allocations: 11.97 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.735e-05/0.2748, allocations: 42.73 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.483e-05/0.2748, allocations: 20.75 kB / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.275, allocations: 185.4 kB / 1.056 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.275, allocations: 24.12 kB / 1.056 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.631e-05/0.2751, allocations: 20 kB / 1.056 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.2752, allocations: 85.66 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.2752, allocations: 0 / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.2753, allocations: 3.984 kB / 1.056 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.2753, allocations: 4 kB / 1.056 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.212e-05/0.2754, allocations: 47.98 kB / 1.056 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006207/0.276, allocations: 0.4923 MB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.2762, allocations: 70.56 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.44e-05/0.2763, allocations: 28.91 kB / 1.057 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.2763, allocations: 4 kB / 1.057 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001806/0.2765, allocations: 115.2 kB / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.2765, allocations: 0 / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003357/0.2768, allocations: 173.5 kB / 1.057 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.2769, allocations: 55.41 kB / 1.057 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.277, allocations: 160.1 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.098e-05/0.2771, allocations: 33.7 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.423e-05/0.2772, allocations: 112 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.2772, allocations: 39.53 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.2773, allocations: 73.67 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2774, allocations: 326.8 kB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.2776, allocations: 95.94 kB / 1.058 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.2778, allocations: 138.8 kB / 1.058 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002731/0.2781, allocations: 256.5 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2781, allocations: 0 / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005948/0.2787, allocations: 407.6 kB / 1.059 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 6.204e-05/0.2788, allocations: 101.1 kB / 1.059 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2788, allocations: 3.984 kB / 1.059 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2788, allocations: 7.984 kB / 1.059 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.863e-05/0.2789, allocations: 11.94 kB / 1.059 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.2789, allocations: 4 kB / 1.059 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004659/0.2794, allocations: 91.92 kB / 1.059 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.2794, allocations: 15.98 kB / 1.059 GB, free: 0.7422 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: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001121/0.2795, allocations: 133.8 kB / 1.059 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.029e-05/0.2796, allocations: 15.75 kB / 1.059 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.231e-05/0.2796, allocations: 20.83 kB / 1.059 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2796, allocations: 0 / 1.059 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2796, allocations: 4 kB / 1.059 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2796, allocations: 0 / 1.059 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/0.2798, allocations: 213.6 kB / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.2798, allocations: 0 / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.479e-05/0.2798, allocations: 15.92 kB / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2799, allocations: 0 / 1.06 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.2799, allocations: 8 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2799, allocations: 0 / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2799, allocations: 0 / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002039/0.2801, allocations: 164.8 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.526e-05/0.2802, allocations: 93.16 kB / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2e-05/0.2802, allocations: 7.922 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.292e-05/0.2802, allocations: 8 kB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.285e-05/0.2803, allocations: 7.984 kB / 1.06 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.2803, allocations: 8 kB / 1.06 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.733e-05/0.2803, allocations: 116.3 kB / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2804, allocations: 0 / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002525/0.2806, allocations: 59.84 kB / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0004848/0.2811, allocations: 0.7092 MB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004598/0.2816, allocations: 382.1 kB / 1.061 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2816, allocations: 384 / 1.061 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.553e-05/0.2817, allocations: 55.92 kB / 1.061 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.2819, allocations: 29.45 kB / 1.061 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/0.2844, allocations: 2.256 MB / 1.063 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.2846, allocations: 0.7048 MB / 1.064 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.907e-05/0.2847, allocations: 16.64 kB / 1.064 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.348e-05/0.2847, allocations: 39.42 kB / 1.064 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of SimCode: time 1.91e-07/0.2847, allocations: 0 / 1.064 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1685/0.4532, allocations: 3.941 MB / 1.068 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002446/0.4535, allocations: 213.2 kB / 1.068 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.769/2.222, allocations: 0.5 kB / 1.068 GB, free: 7.316 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches