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.0009971/0.0009971, allocations: 98.88 kB / 16.02 MB, free: 76 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.001384/0.001384, allocations: 183.7 kB / 16.92 MB, free: 6.77 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.443/1.443, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.716/2.716, allocations: 462.7 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.000349, allocations: 11.59 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3137, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.0009454/0.3147, allocations: 0.5117 MB / 1.06 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001402/0.3161, allocations: 1.17 MB / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.3161, allocations: 0 / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.3161, allocations: 0 / 1.061 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.378e-05/0.3162, allocations: 15.86 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.3166, allocations: 119 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.3168, allocations: 115.7 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.798e-05/0.3169, allocations: 11.98 kB / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.425e-05/0.317, allocations: 39.91 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.818e-05/0.3171, allocations: 47.81 kB / 1.061 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.3171, allocations: 12 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.067e-05/0.3171, allocations: 15.98 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.22e-05/0.3172, allocations: 15.92 kB / 1.061 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.695e-05/0.3173, allocations: 57.56 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.3174, allocations: 83.8 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3174, allocations: 3.938 kB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3174, allocations: 4 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.947e-06/0.3174, allocations: 0 / 1.061 GB, free: 2.738 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.0005874/0.318, allocations: 413.2 kB / 1.062 GB, free: 2.277 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.318, allocations: 12.03 kB / 1.062 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.3181, allocations: 8.844 kB / 1.062 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.3182, allocations: 183 kB / 1.062 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/0.3182, allocations: 8.375 kB / 1.062 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.3183, allocations: 4.375 kB / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.3185, allocations: 90.2 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.3186, allocations: 192 / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.3186, allocations: 3.938 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3186, allocations: 7.938 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.3189, allocations: 95.86 kB / 1.062 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004403/0.3194, allocations: 336.6 kB / 1.063 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.3196, allocations: 54.55 kB / 1.063 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3198, allocations: 60.91 kB / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.56e-05/0.3198, allocations: 0 / 1.063 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000296/0.3201, allocations: 111.3 kB / 1.063 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.3201, allocations: 0 / 1.063 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006517/0.3208, allocations: 193.8 kB / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.3208, allocations: 55.41 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.3209, allocations: 126 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.321, allocations: 25.7 kB / 1.063 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.621e-05/0.321, allocations: 92.14 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.3211, allocations: 23.8 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.936e-05/0.3211, allocations: 17.72 kB / 1.063 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3212, allocations: 326.8 kB / 1.064 GB, free: 316 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/0.3215, allocations: 75.83 kB / 1.064 GB, free: 240 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.3217, allocations: 94.52 kB / 1.064 GB, free: 136 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/0.3221, allocations: 160.3 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3222, allocations: 0 / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005586/0.3227, allocations: 239.1 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.978e-05/0.3228, allocations: 41.69 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3228, allocations: 128 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3228, allocations: 4 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.3229, allocations: 24.05 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.323, allocations: 0 / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.3232, allocations: 59.94 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.043e-05/0.3233, allocations: 4.078 kB / 1.064 GB, free: 15.57 MB / 0.8262 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 9.94e-05/0.3234, allocations: 121.8 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.3234, allocations: 7.906 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.109e-05/0.3234, allocations: 16.36 kB / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3234, allocations: 0 / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3234, allocations: 0 / 1.064 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3234, allocations: 3.984 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000135/0.3236, allocations: 185.6 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3236, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.3237, allocations: 31.84 kB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3237, allocations: 0 / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.3237, allocations: 4 kB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3237, allocations: 0 / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3237, allocations: 0 / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004189/0.3242, allocations: 180.9 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.544e-05/0.3242, allocations: 81.02 kB / 1.065 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.3242, allocations: 4 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.962e-05/0.3243, allocations: 11.98 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.102e-05/0.3244, allocations: 11.98 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.3244, allocations: 4 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.03e-05/0.3245, allocations: 98.77 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3245, allocations: 4 kB / 1.065 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002207/0.3247, allocations: 20 kB / 1.065 GB, free: 14.71 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: 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.000178/0.3249, allocations: 115.1 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005215/0.3254, allocations: 211.4 kB / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3254, allocations: 0 / 1.065 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002169/0.3256, allocations: 64.16 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.3259, allocations: 22.77 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000376/0.3263, allocations: 212.3 kB / 1.066 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.3265, allocations: 0.6864 MB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/0.3266, allocations: 15.42 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3266, allocations: 0 / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.002766/0.3294, allocations: 1.282 MB / 1.068 GB, free: 12.04 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