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.001122/0.001122, allocations: 100.1 kB / 15.88 MB, free: 8 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.002079/0.002079, allocations: 197.8 kB / 16.79 MB, free: 6.828 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.396/1.396, allocations: 222.9 MB / 240.5 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.69/2.69, allocations: 461.8 MB / 0.7348 GB, free: 14.19 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 70.11 kB / 0.8991 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2872, allocations: 157.4 MB / 1.053 GB, free: 8.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002301/0.2896, allocations: 0.8487 MB / 1.054 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001544/0.2911, allocations: 1.174 MB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.607e-05/0.2912, allocations: 0 / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.968e-05/0.2913, allocations: 3.984 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.833e-05/0.2914, allocations: 15.88 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000458/0.2918, allocations: 118.5 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.292, allocations: 111.8 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.2921, allocations: 15.98 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.2923, allocations: 43.84 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.217e-05/0.2924, allocations: 51.81 kB / 1.055 GB, free: 5.891 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.2924, allocations: 4 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.619e-05/0.2925, allocations: 19.98 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.891e-05/0.2925, allocations: 19.92 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.221e-05/0.2926, allocations: 35.84 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.2927, allocations: 83.83 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2928, allocations: 0 / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.62e-07/0.2928, allocations: 0 / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.2928, allocations: 0 / 1.055 GB, free: 5.73 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.0006723/0.2934, allocations: 429.1 kB / 1.056 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.2935, allocations: 11.97 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.26e-05/0.2936, allocations: 20.83 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.2937, allocations: 168.3 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.2937, allocations: 384 / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.2937, allocations: 12.38 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002719/0.294, allocations: 78.14 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.294, allocations: 192 / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.508e-05/0.2941, allocations: 7.875 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.2941, allocations: 4 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/0.2944, allocations: 71.91 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.2949, allocations: 332.6 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.2951, allocations: 62.47 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.2952, allocations: 36.92 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.2953, allocations: 8 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003088/0.2956, allocations: 91.34 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.713e-06/0.2956, allocations: 4 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005946/0.2962, allocations: 165.6 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.2963, allocations: 55.41 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.299e-05/0.2964, allocations: 125.4 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2964, allocations: 33.7 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.826e-05/0.2965, allocations: 96.03 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.2965, allocations: 19.75 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.137e-05/0.2966, allocations: 29.7 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2967, allocations: 322.8 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.2969, allocations: 59.95 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002104/0.2971, allocations: 82.52 kB / 1.057 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.2975, allocations: 144.2 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2975, allocations: 4 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000531/0.298, allocations: 207.3 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.2981, allocations: 41.69 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2981, allocations: 3.984 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2981, allocations: 0 / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.2983, allocations: 15.98 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.2983, allocations: 4.062 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.2985, allocations: 43.84 kB / 1.058 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.2986, allocations: 8 kB / 1.058 GB, free: 2.719 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 0.0001169/0.2987, allocations: 125.8 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.594e-05/0.2987, allocations: 11.84 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.986e-05/0.2987, allocations: 8.359 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.2987, allocations: 4 kB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2988, allocations: 0 / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2988, allocations: 3.984 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001502/0.2989, allocations: 185.6 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.2989, allocations: 3.938 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.299, allocations: 15.97 kB / 1.058 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.299, allocations: 4 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.2991, allocations: 4 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.2991, allocations: 0 / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.2991, allocations: 0 / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.2995, allocations: 149 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.2995, allocations: 85.02 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.2995, allocations: 0 / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.955e-05/0.2996, allocations: 16.17 kB / 1.059 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.976e-05/0.2997, allocations: 11.92 kB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.2997, allocations: 8 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.16e-05/0.2998, allocations: 95.27 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2998, allocations: 0 / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002245/0.3, allocations: 24 kB / 1.059 GB, free: 1.883 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.0001746/0.3002, allocations: 103.2 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004759/0.3007, allocations: 195.2 kB / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3007, allocations: 0 / 1.059 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.3008, allocations: 43.97 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002278/0.3011, allocations: 19.92 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003763/0.3015, allocations: 209.5 kB / 1.059 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002371/0.3017, allocations: 0.6901 MB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.632e-05/0.3018, allocations: 15.44 kB / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of SimCode: time 2.4e-07/0.3018, allocations: 0 / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of Templates: time 0.002905/0.3047, allocations: 1.305 MB / 1.061 GB, free: 15.24 MB / 0.8262 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