Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001469/0.001469, allocations: 104.5 kB / 15.99 MB, free: 6.348 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.001463/0.001463, allocations: 195.6 kB / 16.91 MB, free: 6.184 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.369/1.369, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.53/2.53, allocations: 469.8 MB / 0.7427 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 64.12 kB / 0.9087 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2842, allocations: 159.1 MB / 1.064 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001951/0.2861, allocations: 0.8352 MB / 1.065 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2876, allocations: 1.162 MB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.016e-05/0.2876, allocations: 4 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.351e-05/0.2877, allocations: 3.938 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.76e-05/0.2878, allocations: 11.92 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004334/0.2882, allocations: 119.7 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.2884, allocations: 131.8 kB / 1.066 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.699e-05/0.2885, allocations: 19.97 kB / 1.066 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.867e-05/0.2886, allocations: 51.84 kB / 1.066 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.386e-05/0.2887, allocations: 47.88 kB / 1.066 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.2887, allocations: 8 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.217e-05/0.2888, allocations: 23.98 kB / 1.067 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.632e-05/0.2888, allocations: 19.92 kB / 1.067 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.376e-05/0.2889, allocations: 47.84 kB / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.289, allocations: 79.81 kB / 1.067 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.289, allocations: 4 kB / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.473e-06/0.289, allocations: 0 / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.289, allocations: 0 / 1.067 GB, free: 12.53 MB / 0.8419 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.0006483/0.2897, allocations: 425.2 kB / 1.067 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.2897, allocations: 8.031 kB / 1.067 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.999e-05/0.2898, allocations: 16.78 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.2899, allocations: 176.2 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.2899, allocations: 4.375 kB / 1.067 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.024e-05/0.2899, allocations: 8.375 kB / 1.067 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.2902, allocations: 86.12 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2902, allocations: 4.172 kB / 1.067 GB, free: 11.72 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.2902, allocations: 3.938 kB / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.2903, allocations: 0 / 1.067 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.2905, allocations: 71.92 kB / 1.067 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/0.291, allocations: 328.7 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.2912, allocations: 62.53 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.2914, allocations: 40.92 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.2914, allocations: 3.984 kB / 1.068 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002737/0.2917, allocations: 87.36 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.2917, allocations: 4 kB / 1.068 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0005706/0.2923, allocations: 169.4 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.2923, allocations: 51.41 kB / 1.068 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.2924, allocations: 121.5 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.2925, allocations: 37.7 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.372e-05/0.2926, allocations: 96.03 kB / 1.068 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.2926, allocations: 15.75 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.136e-05/0.2927, allocations: 33.7 kB / 1.068 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.2928, allocations: 322.8 kB / 1.069 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.293, allocations: 55.95 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.2932, allocations: 86.77 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.2936, allocations: 144.1 kB / 1.069 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2936, allocations: 8 kB / 1.069 GB, free: 9.859 MB / 0.8419 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005184/0.2941, allocations: 215.2 kB / 1.069 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.869e-05/0.2942, allocations: 33.7 kB / 1.069 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2942, allocations: 4 kB / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.2942, allocations: 0 / 1.069 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.2944, allocations: 15.98 kB / 1.069 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.2944, allocations: 11.98 kB / 1.069 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.2946, allocations: 35.95 kB / 1.069 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.253e-05/0.2946, allocations: 8 kB / 1.069 GB, free: 9.523 MB / 0.8419 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.0001095/0.2948, allocations: 123.5 kB / 1.069 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.687e-05/0.2948, allocations: 8 kB / 1.069 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.2948, allocations: 16.31 kB / 1.069 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.2948, allocations: 4 kB / 1.069 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.2948, allocations: 0 / 1.069 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.2948, allocations: 3.938 kB / 1.069 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.295, allocations: 177.6 kB / 1.07 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.295, allocations: 3.984 kB / 1.07 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.2951, allocations: 15.98 kB / 1.07 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.2951, allocations: 0 / 1.07 GB, free: 9.121 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.2952, allocations: 4 kB / 1.07 GB, free: 9.117 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2952, allocations: 4 kB / 1.07 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2952, allocations: 0 / 1.07 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003765/0.2955, allocations: 156.8 kB / 1.07 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.22e-05/0.2956, allocations: 77.11 kB / 1.07 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.2956, allocations: 0 / 1.07 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.512e-05/0.2957, allocations: 19.97 kB / 1.07 GB, free: 8.828 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.2958, allocations: 8 kB / 1.07 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.2958, allocations: 0 / 1.07 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.671e-05/0.2958, allocations: 99.27 kB / 1.07 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2959, allocations: 0 / 1.07 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002149/0.2961, allocations: 27.98 kB / 1.07 GB, free: 8.695 MB / 0.8419 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.0001843/0.2963, allocations: 99.38 kB / 1.07 GB, free: 8.59 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004981/0.2968, allocations: 199.2 kB / 1.07 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2968, allocations: 0 / 1.07 GB, free: 8.383 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001723/0.297, allocations: 47.95 kB / 1.07 GB, free: 8.336 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.2972, allocations: 23.94 kB / 1.07 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003731/0.2976, allocations: 217.5 kB / 1.071 GB, free: 8.07 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.2979, allocations: 0.6846 MB / 1.071 GB, free: 7.359 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.2979, allocations: 7.438 kB / 1.071 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of SimCode: time 3.01e-07/0.2979, allocations: 4 kB / 1.071 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of Templates: time 0.003002/0.3009, allocations: 1.318 MB / 1.073 GB, free: 6.043 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches